Commit Graph

655 Commits

Author SHA1 Message Date
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
58df4878a2 Integrated PositionComponent assignment into entity creation 2019-11-02 14:01:30 -07:00
50fa387a16 Added method to create an entity with a specified classname 2019-11-02 13:41:35 -07:00
45059dfb32 Added debug rendering for selectable bounds 2019-11-02 13:30:24 -07:00
fe39cda390 Refactor renamed BoxComponent to BBoxComponent 2019-11-02 13:11:50 -07:00
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
2aa689a598 Added debug rendering of entity state 2019-11-01 16:55:50 -07:00
3af22bd04e Added MapComponent to entity 2019-11-01 14:55:37 -07:00
9c898976bc Refactored ds1 references from ObjectComponent and MonsterComponent to MapComponent 2019-11-01 14:49:09 -07:00
b7778c4398 Added MonsterComponent and support for dynamic entities 2019-11-01 14:46:20 -07:00
6be326e362 Removed debug messages 2019-11-01 14:18:41 -07:00
02347dc66a Backported separate draw call to roofs (will render on top of wall/ent layer) 2019-11-01 14:02:44 -07:00
88d829a82f Added support for poppads
Added support for poppads
Moved drawRoofs to separate draw method (named drawForeground)
Renamed previous drawForeground method to drawMiddleground
2019-10-31 16:51:59 -07:00
6ea1b919d9 Disabled debug on AnimationLoaderSystem 2019-10-31 16:04:00 -07:00
090389a80c Implemented ecs render system
Added RenderSystem which is essentially MapRenderer using IsometricCamera and ecs entities
Added builder method for IsometricCamera to perform aggregate operations
Improved Animation getKeyFrameIndex to return a valid result for an uninit animation
Added various components
Added support for Animation#updateBox in AnimationLoaderSystem
Added AnimationSystem to update animation frames
Added ObjectSystem to initialize Object entities
Created Engine subclass which will be used to create Riiablo-specific entities with preconfig components
Hacked Riiablo.engine2 which will eventually replace Riiablo.engine when completed
2019-10-31 02:12:08 -07:00
0a9b4c5b8e Minor bugfixes
Removed redundant method call from drawDebugSpecial
Fixed issue where resizing MapRenderer was not forcing update
2019-10-27 23:30:02 -07:00
0c4c4a5fb1 Fixed issue with camera toScreen coordinates applying pixel offset at incorrect time
Fixed issue with camera toScreen coordinates applying pixel offset at incorrect time
Added debug render of iso boundary rect
2019-10-24 00:32:43 -07:00
43c9f14799 Temp fix to hide labels under certain circumstances on mobile before that gets flushed out 2019-10-22 22:35:34 -07:00
019257511d Changes resulting from #62 2019-10-22 22:27:04 -07:00
c2883766f6 Added support for previewing DT1 tiles 2019-10-22 21:53:51 -07:00
104042471f Fixed issue on android where audio doesn't play on the same frame it's loaded
Fixed issue on android where audio doesn't play on the same frame it's loaded
SFX audio that doesn't play will remain deferred until subsequent frame
Small optimization with audio instance creation
2019-10-20 22:53:54 -07:00
4e374c946d Set conditional for debug rendering to improve performance on mobile 2019-10-20 17:15:35 -07:00
7b70ff819b Removed possible vector for errors by calling reset in constructor to set initial values
Removed possible vector for errors by calling reset in constructor to set initial values
I do not expect issues here, but this component is complex enough to warrant it
2019-10-20 17:02:02 -07:00
a596c88a1f Added transform field
Added transform field
Changed component implementation to use cloning/copying of a default array
2019-10-20 16:57:11 -07:00
c394ed178e Added annotation type DependsOn to try and document system dependencies 2019-10-20 16:48:02 -07:00
69b607324e Implemented system priorities and created SystemPriority to store them 2019-10-20 16:41:53 -07:00
c09160230f Changed byte fields to int fields
Changed byte fields to int fields -- space/performance change negligible and improves readability
2019-10-20 15:24:16 -07:00
1a8738fc93 Added support for async audio loading and playing on subsequent frames 2019-10-20 01:36:34 -07:00
d6105d9f9a Improved isometric camera API
Documented isometric camera API
Implemented pix and tile offsets instead of just offset
Made pix and tile offsets private -- pix offset set via offset and tile offset set automatically
toTile50 may be deprecated in the future if I cannot find a use for it (tile offset may have superseded it)
2019-10-19 15:04:41 -07:00
1d6365dcbe Implemented asset streaming to remove much of the hitching
Implemented asset streaming to remove much of the hitching
Added millis to asset manager update function to load as much as possible
2019-10-19 02:04:11 -07:00
354419dafd Fixed iso position tracking by using Tile50 2019-10-17 16:59:11 -07:00
dfbf132063 Fixed translation issue for mouse movement caused by not applying offset 2019-10-17 16:52:43 -07:00
04ebeb1a61 Added wrld field to track cursor tile position
Added wrld field to track cursor tile position
Added 0.5f offset to world tile position to account for camera offset
2019-10-17 16:23:24 -07:00
4f5852b35a Removed 'near' field 2019-10-17 16:20:48 -07:00
7ca9e73941 Added private default constructor to enforce non-instantiation 2019-10-17 16:17:18 -07:00
d2eb8bca07 Fixed variable name 2019-10-17 02:02:25 -07:00
cb1b53d390 Started rewriting engine using ECS
Added COF/animation related components and systems for streaming assets
Added additional factory method to Animation for empty constructor
2019-10-17 02:01:09 -07:00
113d765d84 Extended width of COF layers widget slightly 2019-10-13 22:47:13 -07:00
51c6f6c1bc Fixes issue with COF layers widget not setting width correctly and displaying ellipsis 2019-10-13 22:45:30 -07:00
9ca8cab493 Fixed issues caused by changes to Scene2D API 2019-10-13 22:36:09 -07:00
ef0b641fae Added some controls to disable debug rendering 2019-10-06 05:54:13 -07:00
88ae4c496b Removed 'near' field and changed 'pos' to Tile50 2019-09-30 03:46:43 -07:00
08ed42663a Fixed grammatical error 2019-09-29 16:10:48 -07:00
d2b48b8119 Implemented slightly improved parser for TXTs (see #26) 2019-09-29 03:47:15 -07:00
28c6bd95dc Updated BinGenerationTool with support for validating the serialized bins against their source excels 2019-09-28 03:50:41 -07:00
0416c93abf Updated ClassUtils and fixed some minor warnings with Excel 2019-09-28 03:45:38 -07:00
761c6f8447 Implemented support for binary excel loading (see #26) 2019-09-28 03:35:07 -07:00
3fe5d9bc58 Fixed issue with Components column within MonStats2 2019-09-25 01:46:21 -07:00
814925d76c Added annotation field to allow bin generator to ignore certain columns 2019-09-23 17:42:40 -07:00
d9b701901d Added var to force using txt instead of bin for benchmarking later on 2019-09-23 17:20:16 -07:00