Commit Graph

123 Commits

Author SHA1 Message Date
Collin Smith
bc4f1f83b8 Fixed issue where preset objects weren't being loaded to correct location 2019-02-21 16:55:27 -08:00
Collin Smith
8cfe8f9090 NPC paths now show action index at points 2019-02-21 00:35:06 -08:00
Collin Smith
27976a3712 Repo cleanup 2019-02-21 00:20:31 -08:00
Collin Smith
c33e18d8a6 Disabled updateTask for Android
Disabled updateTask because it's causing Android to hang -- likely some concurrency issue?
2019-02-20 22:41:08 -08:00
Collin Smith
679984b9b5 Rewrote MapRenderer, added interpolated movement, and added path finding with collision detection
Removed gdx-ai dependency and replaced GraphPath with my own implementation
Refactored Entity.updatePath to Entity.setPath
Removed src position from path (first element is now first target)
MapPather works in real-time -- improvements to be made
Disabled updateTask in client to use update(float) entity method instead
Added floating point position support to MapRenderer camera
Rewrote MapRenderer with optimizations for 60%+ FPS improvement!
Fixed numerous performance hogs and made optimizations (more to come)
Fixed issue where render bounds was calculated before zoom applied
Frame time on Android (GN5) down from 25ms to 10ms
Frame time on PC seeing similar results (now 0.17ms from about 0.45)
Implemented gdx-ai path finder for testing
Repo cleanup
Added support for path finding metrics for debugging purposes
Disabled some Entity debug messages
Implemented path smoothing on generated paths
Created MapGraph.MapGraphPath
MapRenderer will now render path as lines between points
Entity will clear path once final target reached
Added angle and animation support to Entity pathing
Entities will now change to run animation and set direction to target angle
Implemented basic touchpad support with new movement system
Replaced MapRenderer and MapViewer and removed any existing dependencies
Removed code comments from older revisions
MapRenderer.drawDebug changes projection matrix automatically
Added debug support for path smoothing
Added back networking to player movements
Removed old MapPather and references
Deleted Entity.move() as it's now irrelevant
2019-02-20 21:44:30 -08:00
Collin Smith
46423e10f7 Disabled path finder movement (new branch)
Disabled path finder movement on this branch
Bug fixes to path finder along with distance limiter
Incorporated persistent path into MapViewer/Entity
2019-02-18 14:25:55 -08:00
Collin Smith
5cc2aa55c6 Integrated path finding into Entity
Integrated path finding into Entity
Changed API a bit to accommodate reusing GraphPath
Introduced DiagonalHeuristic -- will need better one later on to include all 16 directions
2019-02-18 01:23:26 -08:00
Collin Smith
9e0df071f2 Improved path finding algorithm to A* 2019-02-18 00:47:50 -08:00
Collin Smith
95d61fc4d7 Added extremely basic path-finding algorithm
Added extremely basic path-finding algorithm
Added accessor to Zone.flags
2019-02-17 18:50:14 -08:00
Collin Smith
98348bd652 Added support for BitmapFont symbol padding
Added padding to FontTBL.BitmapFont to fix issue where some symbols were bleeding adjacent symbols
2019-02-16 15:43:07 -08:00
Collin Smith
0676660f44 Added support for StaticEntity labels
Added support for StaticEntity labels
Refactored entity labels/names into Entity class -- needs optimization
Fixed issue where changing Label text wouldn't resize Label itself
Fixed issue where left padding on Label background Drawable was ignored
2019-02-16 15:34:36 -08:00
Collin Smith
1d1cf585b5 Disabled item bounds debug 2019-02-16 15:21:51 -08:00
Collin Smith
6337b86cf6 Added TODO note for customizing colors 2019-02-16 14:52:35 -08:00
Collin Smith
ece4016b7c Refactored color names
Refactored color names since they are used globally
2019-02-16 14:25:09 -08:00
Collin Smith
2ba6542728 Refactored modal color names
Refactored modal colors to say what transparency they are
Added modal background to EscapePanel
2019-02-16 14:19:03 -08:00
Collin Smith
3829c34c24 Added basic entity cursor focusing
Added basic entity cursor focusing using backing animation bounds and MapRenderer
Added background drawable support to Label widget
Improved ColorDrawable padding calculations such that min width/height is a sum of respective padding
Disabled some mouse debugging features in MapRenderer
2019-02-16 01:26:51 -08:00
Collin Smith
247e62ff2b Improved object order rendering
Made MapRenderer aware of entities and made them render behind walls better
Fixed issue where animations were playing too quickly
2019-02-15 21:11:59 -08:00
Collin Smith
3348098ace Added support for poppads
MapRenderer will now properly hide tiles whose mainIndexes intersect with current position poppads
Entity dirty components debug message will print string representation of flags instead of raw int
2019-02-15 15:55:45 -08:00
Collin Smith
c765da42c9 Updated MapBuilder screenshot 2019-02-15 02:11:56 -08:00
Collin Smith
1d781c5b8f Improved entity path debug rendering
Included reference to source DS1.Object in StaticEntity and Monster classes
Added reference to DS1.Path in DS1.Object owner (assumes 1 path per object)
Moved path debug rendering to Entity from MapRenderer
Added Entity.drawDebugPath(ShapeRenderer)
2019-02-15 02:09:17 -08:00
Collin Smith
dda1c4b47d Added debug rendering for DS1 paths
Added rendering of DS1 paths -- need to associate with NPC
2019-02-14 02:17:08 -08:00
Collin Smith
babde9ff6e Added dynamic (monster/npc) entities
Added Monster class generated from DS1 objects -- belong to Map Zones and render per-tile -- optimization needed
Refactored DS1 object generation to Entity class as static method to create type 1 or 2 entities
Updated screenshot with dynamic entities
Removed type from StaticEntity constructor (already included with Objects.Entry)
Added Excel classes for monstats and monstats2 -- optimizations can be made later
2019-02-13 17:41:55 -08:00
Collin Smith
103c0b4b0d Updated screenshot with static entities 2019-02-13 02:46:18 -08:00
Collin Smith
a0983e852c Added static entities
Added StaticEntity class generated from DS1 objects -- belong to Map Zones and render per-tile
Fixed paths for EntType OBJECT and MONSTER
2019-02-13 02:42:07 -08:00
Collin Smith
e5e6be00ce removed some unneccsary files 2019-02-12 02:25:40 -08:00
Collin Smith
a73e0539c3 removed some unnecessary files 2019-02-12 02:23:18 -08:00
Collin Smith
5d3f5dc4b6 Fixed chat box behavior
GameScreen now ignores hotkeys while chat box is open
Esc closes chat box
Closing chat box will now set text to empty string
Chat output TextArea will no longer block touch events (i.e., inventory management)
2019-02-11 01:44:39 -08:00
Collin Smith
6336ead864 Updated README 2019-02-10 02:42:20 -08:00
Collin Smith
6db614c633 Updated screenshot
Updated screenshot with disabled debugging
Removed some debug logging from entity
2019-02-10 02:30:53 -08:00
Collin Smith
c37ddea8d1 Added a bit of spacing adjacent to the buttons 2019-02-10 02:27:01 -08:00
Collin Smith
656f40742f Using mobile panel to open chat box will set keyboard focus 2019-02-10 02:21:35 -08:00
Collin Smith
07eab3a052 Disabled debug mode
Disabled debug mode -- not needed for foreseeable future
2019-02-10 02:18:48 -08:00
Collin Smith
b136b54b93 Re-ordered colormap indexes to match in-game
Changed greys to index 1,2 and removed gold and brown
2019-02-10 02:15:41 -08:00
Collin Smith
c5efbc13a1 Fixed single player character animations
Fixed issue with single player player entity creation by blocking some packets
Fixed issue with character colormap transforms not working as intended for 0x7
Small fix for in-game chat box printing enters -- need to block key commands while typing
Added padding to in-game chat box
Removed shift to not move in-town (was not working as intended anyways)
2019-02-10 02:08:56 -08:00
Collin Smith
22ebede88f Fixed bug with component flags
Fixed default components assignment, now 0 from -1
Changed to entity package
2019-02-09 16:03:01 -08:00
Collin Smith
40e6dda32a Fixed font metrics
Fixed many font metrics -- not perfect, but significantly better for layout
2019-02-09 03:49:26 -08:00
Collin Smith
86c4e6d8ef Added functional networking with multiple clients in a server rendered correctly
Fixed bug with Map.find(int) returning actual GridPoint -- now returns a copy
Added workaround for set(String) in Cvar when generic type is String
Transition to entity package with refinements
2019-02-08 20:56:04 -08:00
Collin Smith
e23532266f Added basic server event objects
Added very simple rendering of character "Tirant" position in another client
2019-02-05 02:14:18 -08:00
Collin Smith
22aaaa9536 Added bullets to README for server support 2019-02-03 02:53:51 -08:00
Collin Smith
49f1058566 Added basic server support (create/join games and chat)
Separated services into ChatServer, DedicatedServer and Sessions
Single player uses same code-base as DedicatedServer with a special loopback socket
Added SelectCharacterScreen2 copy -- will replace later on with more versatile SelectCharacterScreen impl
2019-02-03 02:47:08 -08:00
Collin Smith
a1e735031f Added server browser chat
Some work on in-game chat
Separated Server into multiple systems (will be easier to transition to distributed servers later)
Minor entity changes -- may transition to an ECS soon
2019-01-30 15:40:17 -08:00
Collin Smith
cb11853a26 Fixed compat with new Animation class API 2019-01-28 14:55:08 -08:00
Collin Smith
f7e6ef281c Implemented functioning weapon alternate 2019-01-26 00:05:29 -08:00
Collin Smith
e6e10705c5 Begin transition into entity3 package along with new Animation class 2019-01-25 17:01:35 -08:00
Collin Smith
8cea13273e Added LoginScreen
Implemented Textures texture for TextField cursor
2019-01-21 00:14:32 -08:00
Collin Smith
2197b2fb61 Changed access to modalBackground and cursorTexture to private (Textures class used instead) 2019-01-21 00:13:28 -08:00
Collin Smith
605bd6f7f2 Added Textures class to store some common solid color textures 2019-01-21 00:12:51 -08:00
Collin Smith
ab779a4fce Created Account class 2019-01-21 00:12:09 -08:00
Collin Smith
e0ed5b2cda Added tests
Fixed issue where JsonReader was closing socket when reading request packet
2019-01-21 00:11:24 -08:00
Collin Smith
70bd77eaae Added some key events (will need a bug fix to prevent propagation)
Added exited() to TabListener
Created TabAdapter impl of TabListener
Added fields and populated Create and Join panels
2019-01-17 22:37:32 -08:00