Commit Graph

139 Commits

Author SHA1 Message Date
Collin Smith
22251f560a Improved entity over detection
Improved entity over detection
Added entity highlighting, however my technique is washing out the image too much
2019-03-10 03:35:25 -07:00
Collin Smith
0d56f2456e Added ability to drop items
Added ability to drop items (no support for pickup yet)
Added ITM entity type
Added debug and bounds checking for non-zone entities
2019-03-10 03:14:13 -07:00
Collin Smith
77c851a5ce Added support for invisible entities
Added support for invisible entities, e.g., placeholders for actual entities
Added some logging for unknown DS1 objects (when no backing id can be found)
2019-03-09 17:12:27 -08:00
Collin Smith
d818d97900 Removed virtual MPQ file support
Removed virtual MPQ file support -- was for previous version where I was making fake assets
Other minor changes
See #8 on some MPQ read issues I've noticed
2019-03-09 16:14:30 -08:00
Collin Smith
1090bdc42d Changed readme header 2019-03-09 00:21:52 -08:00
Collin Smith
06804443fc Refactored naming to Riiablo
Copied over code and fixed some core design issues (much more to come)
Leaving in old code still for now in case some bugs were introduced
Re-designed most of the UI to be far more dynamic in its scaling
Added detection for the android soft keyboard and some UI elements will now actively display above it
Cleanup of old files (not including the old code-base)
Fixed item code 0x53 which was mislabeled
Rewrote Entity class to remove Vector3 dependency and add support for indexed fields
Console cvar completion no longer cares about character case
Added TINT_ID blend mode to add the current color to the image (will use later to highlight entities)
Added very basic controller support (namely splash and main menu)
Redesigned CharacterPreview to be a watered-down player entity instead of a completely separate code-base
Added AnimationWrapper and EntityWrapper classes to assist with adding game elements to Stage
Lots more undocumented changes
2019-03-09 00:16:44 -08:00
Collin Smith
fa15a81bf6 Minor changes 2019-03-05 21:22:26 -08:00
Collin Smith
c52d4aa4b6 Hacked together footstep sounds 2019-03-05 17:31:34 -08:00
Collin Smith
87e95ad1aa Added support for entity animation chaining 2019-03-05 14:57:25 -08:00
Collin Smith
5540c6436c Centered NPC dialog text as good as I can without rewriting TextArea 2019-03-05 13:36:56 -08:00
Collin Smith
e5418464fa Fixed issue with font glyph sizes
Fixed issue with font glyph sizes being slightly too short
I think this was a fix for when there was no padding between glyphs -- no adverse changes apparent yet
2019-03-05 13:14:45 -08:00
Collin Smith
64bf1723aa Documenting bug with coordinate projection 2019-03-05 13:09:42 -08:00
Collin Smith
cb977678ea Fixed issue with viewbuffer algorithm rendering more than we need to 2019-03-05 02:12:57 -08:00
Collin Smith
1d6fac1b52 Disabled mobile panel debugging 2019-03-05 02:00:35 -08:00
Collin Smith
f4f1924343 Added support for COF layer transforms
Added support for COF layer transforms (transparency, luminance blending, etc)
Added tint to Animation.Layer
Refactored Animation API a bit to make common use-case easier
Refactored colors order, added transparency colors
2019-03-05 01:55:39 -08:00
Collin Smith
6e341253c7 Fix for movement on mobile not exiting dialogs/menus 2019-03-04 23:54:33 -08:00
Collin Smith
f55ecf6b75 Added hacky entity interaction support on mobile
Added hacky entity interaction support on mobile
Repurposing automap button for interact button until suitable replacement found
2019-03-04 22:40:42 -08:00
Collin Smith
92c5c2e53f Adding notes on different audio channel support
Each audio channel should have it's own volume level and support on-the-fly changes
2019-03-04 22:05:31 -08:00
Collin Smith
9386ba4e8f Added support for stoppable audio streams
Changed audio system design to support audio instances backed by either a Sound or Music instance
Made NpcDialogBox the owner of the audio it's playing to ensure proper disposal
2019-03-04 21:58:38 -08:00
Collin Smith
2569fbb185 Lowered text start position a bit 2019-03-04 21:13:15 -08:00
Collin Smith
4f0e4f0ccb Replaced font references with a single reference 2019-03-04 21:11:53 -08:00
Collin Smith
b8ba0f17b8 Added flags for NPC menu items 2019-03-04 19:34:35 -08:00
Collin Smith
aba07a0dca Created speech.txt table to map sound id to string tbl key
Created speech.txt table to map sound id to string tbl key
Added more generic Files.loadInternal to load internal tables
2019-03-04 18:59:38 -08:00
Collin Smith
815f390f6c Added NPC dialog box support
Added NPC dialog box support
Added customized implementation of LibGDX scrollpane
Adjusted MapListener to cancel dialog and ignore input temporarily
Changed padding of BorderedPaletteIndexedDrawable
Adjusted BorderedPaletteIndexedDrawable background bounds to be slightly smaller than border bounds
Added fontformal11 to Diablo.font
2019-03-04 16:24:45 -08:00
Collin Smith
0a382d10b5 Added bordered drawable 2019-03-04 01:16:22 -08:00
Collin Smith
7adf37f091 Changed GL clear color to black (from blue) 2019-03-04 00:03:18 -08:00
Collin Smith
4f6966b900 Defined colors for item backgrounds 2019-03-03 23:57:28 -08:00
Collin Smith
32d1761e77 Updated to use newer TextField implementation 2019-03-03 21:19:54 -08:00
Collin Smith
5c76e939ab Implemented proper I18N lookup of names
Implemented proper I18N lookup of names using string TBL
Added StringTBLs.lookup(String)
Added namestr column to ItemEntry
2019-03-03 20:56:28 -08:00
Collin Smith
42d4f7f4dd Adjusted background offsets for neck, rring, lring 2019-03-03 17:52:52 -08:00
Collin Smith
0ce15351ed Disabled bounds and path debugging by default 2019-03-03 17:45:56 -08:00
Collin Smith
38242c6b7a Performance optimizations with MapRenderer
Performance optimizations with MapRenderer to roofs, shadows and wall layers
Extended min zoom level to GameScreen
2019-03-03 17:30:45 -08:00
Collin Smith
c657c1e3e0 Added support for item details label
Added support for item details label
Changed constructor of ItemGrid to GameScreen from Player
2019-03-03 17:11:10 -08:00
Collin Smith
fc35851f0f Added some extra debugging for GameScreen hit check 2019-03-03 15:34:08 -08:00
Collin Smith
78edbb2899 Fixed issue with MapListener touchability and different panels
MapListener will only receive input if nothing touchable is hit
2019-03-03 15:26:29 -08:00
Collin Smith
b23eb9c30b Fixed gloves background image offset 2019-03-03 04:42:58 -08:00
Collin Smith
c80a57ab09 Fixed some NpcMenu behavior with the cancellation callback
Attempted change on cancel callback behavior -- only called when upnav
Introduced some parent functions in NpcMenu to help with determining submenus
Changed menus to NpcMenu (I don't imagine the need for the generalization right now)
2019-03-03 02:29:26 -08:00
Collin Smith
008730d2c9 Added NPC menus
Added NPC menus with submenu support
Fixed issue with cursor movement stopping when touching certain actors
Changed some debug fonts to use consolas12
Changed MapListener implementation to work using client updates instead of InputListener
Fixed MapListener input flow with menus and entity targeting
Introduced Entity.getLabelOffset to replace setting label position manually per implementation
2019-03-03 02:11:43 -08:00
Collin Smith
162862771c NPCs will now stop when interacted with and look at player 2019-03-02 14:40:53 -08:00
Collin Smith
d23b151149 MapListener will no longer react if cursor is over a stage component 2019-03-02 14:30:52 -08:00
Collin Smith
0bba0ccb16 Fixed label world to screen coords
Added MapRenderer.projectScaled which is the same as Camera.project, except uses camera viewport width and height
Labels will now output using screen coordinates and clamp to window bounds
2019-03-02 03:29:17 -08:00
Collin Smith
9102c4ba19 Disabled some debugging on unselectable entities 2019-03-02 03:11:35 -08:00
Collin Smith
a656ae4182 Committing notes on how to handle tree tiles 2019-03-02 02:04:55 -08:00
Collin Smith
42c6073261 Added cache for entire viewbuffer when rendering entities
Added cache for entire viewbuffer when rendering entities to avoid calculating them twice
2019-03-02 01:48:52 -08:00
Collin Smith
eaabd43669 Improved Animation bounds calculation and debugging 2019-03-02 01:06:50 -08:00
Collin Smith
4d7b37e386 Disabled player weapon state debugging 2019-03-01 23:31:21 -08:00
Collin Smith
d3dbdb06bd Greatly improved MapRenderer and implemented basic entity interaction
MapRenderer will now renderer more closely to the game itself
Background layer and foreground layers are now interwoven so entities will render behind correct objects,walls,etc
Shadow abstracted from animation rendering to render separately
Animation class now maintains a box that is representative of all its current layers (COF bbox is inaccurate)
Added getBox(int) to DC and began process to change implementation behavior of how animation boxes should be retrieved
Added className to Entity and Map.Zon to constituent classes
Changed how Labels are implemented in Entity
Added drawShadow method to Entity
Fixed Entity BBox checking to check for more accurate Animation BBox
Added Entity interaction range and interaction methods
Updated Entity API in Monster and StaticEntity
Added some i18n support
Added Waypoint support to StaticEntity
Fixed DS1 shadow layer
Added support for default orientation to DS1.Cell
Changed visibility of Map.Zone.map and Map.Zone.level
Added copyShadows to Map.Preset
Added Map.flags methods to retrieve flags of a specified subtile in world-space
Added MapGraphPath.isEmpty
Implemented Label support to MapListener and GameScreen
Added entity target support to MapListener
Implemented improved MapListener API to GameScreen
Added interact support to AI
Added basic greeting to Npc AI on interaction
2019-03-01 23:26:47 -08:00
Collin Smith
7ec02be171 Changed play(String,boolean) behavior to return id of audio file, 0 if not found 2019-03-01 23:05:52 -08:00
Collin Smith
ca9c9be8df Disabled GL depth test 2019-03-01 23:04:59 -08:00
Collin Smith
cb39a53ee8 Added consolas12 2019-03-01 23:04:25 -08:00