Collin Smith
93be087793
Added static factory method to get or create a specified component for an entity
2019-11-12 01:55:54 -08:00
Collin Smith
58a011ab07
Refactored alpha and transform updates to components and systems
...
Removed generic update flags from CofComponent
Created AlphaUpdate and TransformUpdate components to store flags of layers that need updating
AnimationLoaderSystem no longer sets alpha and transform values and sets flags instead
Created AlphaUpdateSystem and TransformUpdateSystem to update animation layers
2019-11-12 01:31:50 -08:00
Collin Smith
5beafce761
Removed tile alignment from entity debug status text
2019-11-10 17:32:19 -08:00
Collin Smith
364775954c
Added support for setting animation speeds
2019-11-10 15:21:19 -08:00
Collin Smith
29f619fe1b
Added support for animation transformations / alphas
...
Added support for animation transformations / alphas
Changed CofComponent transformation field back to byte
Introduced update dirty flags in CofComponent to track transformation changes
2019-11-10 15:02:34 -08:00
Collin Smith
32b20d284e
Added run and walk speeds to VelocityComponent
...
Added run and walk speeds to VelocityComponent
Added RUNNING flag to tell if entity should use run or walk speed
2019-11-10 02:25:04 -08:00
Collin Smith
4ed6792996
Added physics system placeholder which manages velocity application on position
2019-11-10 01:56:23 -08:00
Collin Smith
caec8d7032
Small optimizations
2019-11-09 22:09:39 -08:00
Collin Smith
c270dbb7a3
Added PlayerComponent
...
Added PlayerComponent containing D2S reference
Added alpha array to CofComponent
2019-11-09 22:02:40 -08:00
Collin Smith
851cdc2aa5
Moved default angle to its own field
2019-11-09 21:52:11 -08:00
Collin Smith
41ff1997a4
Added support for angular velocity
...
Added target field to AngleComponent
Set default AngleComponent angles to PI/2
Changed AngleComponent angle fields to Vector2
Added support for angular velocity -- entities will no longer instantly update to target vector
2019-11-09 21:48:03 -08:00
Collin Smith
bac1c3c59c
Added AngleComponent to debug status text
2019-11-09 15:36:07 -08:00
Collin Smith
33ce6bf2c7
Added DirectionTool used to test com.riiablo.engine.Direction
2019-11-09 15:09:59 -08:00
Collin Smith
9201f63914
Added AngleSystem and refactored com.riiablo.entity.Direction as com.riiablo.engine.Direction
...
New direction class assumes angles are given using isometric coordinates (no longer uses pixel-aligned cartesian coordinates)
2019-11-09 14:53:26 -08:00
Collin Smith
8b2f671834
Added assertion that RenderSystem source entity has a position component
2019-11-08 16:03:56 -08:00
Collin Smith
f6b806bd59
Removed path debug fields (debugging now within PathDebugSystem)
2019-11-08 00:56:05 -08:00
Collin Smith
88a02f2306
Refactored Animation#setLooping and Animation#setClamp with Animation#setMode
2019-11-07 14:20:28 -08:00
Collin Smith
56e18a0b41
Refactored Animation#reset(COF) with Animation#setCOF(COF)
2019-11-07 14:06:07 -08:00
Collin Smith
ba03f5c269
Defined a custom BBox for waypoint pads to be more squared with tiles and slightly larger
2019-11-07 13:58:15 -08:00
Collin Smith
8c18e072dd
Moved boxComponent assignment from AnimationLoaderSystem to Engine entitity creation
2019-11-07 13:57:20 -08:00
Collin Smith
9c414c1065
Resetting AnimationComponent will reset underlying Animation
2019-11-07 13:44:08 -08:00
Collin Smith
581a1b4715
Replaced Animation with improved version
...
Added support for pooling Animation, Animation.Builder, Animation.Layer
Animation will now use only its managed BBox -- no more returning BBox of layers
Redefined animation states into Mode enum -- they were discrete
Replaced act methods with update
Animation builder now copies layers instead of setting the animation object layers reference to builder layers reference
2019-11-07 13:41:38 -08:00
Collin Smith
5361d80864
Closes #34
2019-11-06 13:13:04 -08:00
Collin Smith
223efec103
Exposed render bounds
2019-11-06 00:37:29 -08:00
Collin Smith
f3f91d5a85
Fixes issue where non-default zoomed client would display labels in incorrect location
2019-11-06 00:35:40 -08:00
Collin Smith
19ab19d4e0
Added support for invisible object entities
...
Objects tagged with no draw will no longer have CofComponent and AnimationComponent added and will have the INVISIBLE flag set
2019-11-05 15:42:44 -08:00
Collin Smith
0321d769bf
Refactored TextureRegion frames into DC
...
Refactored TextureRegion frames into DC
Implementation will be improved later
2019-11-05 13:47:33 -08:00
Collin Smith
df4a4d144e
Duplicated DC6 TextureRegion workaround into DCC
2019-11-05 13:05:56 -08:00
Collin Smith
1f9ca594ba
Added support for ds1 object paths
...
Added support for ds1 object paths
Added first debug system PathDebugSystem -- more features will be moved from RenderSystem
Added radius field to RenderSystem to track radius of overscan (used to clamp rendering of entities to fov)
2019-11-04 14:51:59 -08:00
Collin Smith
909e74c166
Adjustment to e9f7dc758e
for #43 to provide upper bound on width increase
...
font16 W was rendering an additional line of pixels from adjacent character -- this should prevent the character size increase if it extends into adjacent pixels
2019-11-04 03:03:24 -08:00
Collin Smith
6b41cee758
Improved support for debugging entities in RenderSystem
...
Improved support for debugging entities in RenderSystem
Moved Warp label down to center of bbox
2019-11-04 02:45:06 -08:00
Collin Smith
b8abe4f6f5
Added support for entity labels
2019-11-04 02:19:13 -08:00
Collin Smith
424ec57eb1
Refactored select code to SelectedSystem
2019-11-03 23:56:27 -08:00
Collin Smith
ff9350d0f9
Added support for object orderflag for RenderSystem
2019-11-03 20:44:01 -08:00
Collin Smith
9b46940b3a
Added support for highlighting animations when selected
2019-11-03 01:36:58 -07:00
Collin Smith
6fb76615ba
Added support for warp substs
2019-11-03 01:20:20 -07:00
Collin Smith
ad0aa06a5d
Refactored MapComponent into MapComponent and DS1Component to separate DS1 object references
2019-11-02 14:13:41 -07:00
Collin Smith
4d177f1b96
Amending last commit -- added WarpComponent
2019-11-02 14:12:46 -07:00
Collin Smith
27121b2076
Added partial support for level warp entities
2019-11-02 14:04:16 -07:00
Collin Smith
a7d120e8a8
Set IdSystem as a non processing system (should only need to run on add and remove, not every frame)
2019-11-02 14:03:15 -07:00
Collin Smith
58df4878a2
Integrated PositionComponent assignment into entity creation
2019-11-02 14:01:30 -07:00
Collin Smith
50fa387a16
Added method to create an entity with a specified classname
2019-11-02 13:41:35 -07:00
Collin Smith
45059dfb32
Added debug rendering for selectable bounds
2019-11-02 13:30:24 -07:00
Collin Smith
fe39cda390
Refactor renamed BoxComponent to BBoxComponent
2019-11-02 13:11:50 -07:00
Collin Smith
59e5edaca4
Added support for selectable entities
...
Added support for selectable entities (BoxComponent)
Added entity Flags class
Displays active flags for entities in debug mode
ObjectSystem changed to IteratingSystem setting SELECTABLE flag per mode
Added SelectableSystem to set SELECTABLE using primary Gdx.input pointer
2019-11-02 03:32:22 -07:00
Collin Smith
2aa689a598
Added debug rendering of entity state
2019-11-01 16:55:50 -07:00
Collin Smith
3af22bd04e
Added MapComponent to entity
2019-11-01 14:55:37 -07:00
Collin Smith
9c898976bc
Refactored ds1 references from ObjectComponent and MonsterComponent to MapComponent
2019-11-01 14:49:09 -07:00
Collin Smith
b7778c4398
Added MonsterComponent and support for dynamic entities
2019-11-01 14:46:20 -07:00
Collin Smith
6be326e362
Removed debug messages
2019-11-01 14:18:41 -07:00