ephphatha
9e76cd4ab7
Use object pointer for pcursobj
4 years ago
Gleb Mazovetskiy
8ca71272b8
Load all CEL as CL2
...
Convert CEL files to CL2 at load time. CL2 format is more efficient and is about as fast to render.
CEL vs CL2 sizes, on dLvl 5: https://gist.github.com/glebm/9bbdd76962abcd4fd2405ecd3379af97
Memory:
* Peak memory (while loading): -300 KiB
* Memory in-game (dLvl5): -700 KiB
* RG99 binary size: -15 KiB (1333096 -> 1317192)
Performance on rg99:
* On average, -1 FPS in town.
* Same FPS in dungeon (20 FPS on dLvl 1).
4 years ago
Anders Jenbo
a7be622aa3
Clean up naming of event handler
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
Gleb Mazovetskiy
8e9c9e0238
Reduced the size of `OwnedCelSprite*` by 8 bytes
...
`OwnedCelSpriteWithFrameHeight`: 40 -> 32
4 years ago
Gleb Mazovetskiy
2386fd12a9
Fix a few warnings
4 years ago
staphen
b349e29058
Correctly indicate when scroll can be used on virtual gamepad
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
staphen
ef9ae41f6a
Fix item graphics on potion buttons for virtual gamepad
4 years ago
ephphatha
64a2c41b2c
Set clang-tidy config for MethodCase option
...
Previously this was falling back to FunctionCase, leading to inconsistent casing of class methods throughout the codebase. Applied to Item as an example.
4 years ago
Anders Jenbo
dc706e8ed5
Use HoldItem for determining if an item is held
...
This cleans up a bit of code and solves a few edge cases where an item
could be lost, the game be unresponsive, or miss fire an event during
lag cause of the cursor not reflecting the currently held item.
4 years ago
staphen
6a30cd3950
Add gamepad support for stash
4 years ago
Anders Jenbo
9226f1435c
Clean up PotionButtonRenderer
4 years ago
Anders Jenbo
a48f89007d
Implement stash
4 years ago
Gleb Mazovetskiy
7fede6c4cb
Clean up owned/unowned CelSprite ambiguity
...
Makes `CelSprite` unowned and adds a new `OwnedCelSprite` class for
owned sprites.
This clarifies ownership and makes the code cleaner in a number of
places.
Additionally, because the `CelSprite` class is now tiny (1 less
pointer), we can pass it by-value instead of by-reference, removing a
pointer indirection in the rendering functions.
4 years ago
obligaron
234a053863
Change Missiles Array to std::list
4 years ago
Anders Jenbo
2e0a73e967
Disable stand button when in town
...
Fixes #3290
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
Gleb Mazovetskiy
c57644970f
Move `UiFlags` and `UiPanels` into their own files
...
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
staphen
e2408bc6bc
[Virtual Gamepad] Set primary action button graphic to apply in char panel when applying stat points for level up
4 years ago
staphen
85f0e7b8c3
Add button for standing still to attack
4 years ago
Anders Jenbo
609414fd69
[touch] Indicate level up in a touch friendly way
4 years ago
staphen
ccd8f114f8
[Virtual Gamepad] Add menu panel to top-right corner
4 years ago
Anders Jenbo
396aa449d2
[touch] Update button faces
4 years ago
Anders Jenbo
488acf0eba
[touch] Fix some button faces
4 years ago
Anders Jenbo
284f0347cc
[touch] Add additional button faces
...
Apply color correciton
4 years ago
Anders Jenbo
8042bf1ab9
[gamepad] Render joystick on top of buttons
4 years ago
staphen
06801789e2
Move potion buttons to the left side
4 years ago
staphen
271740a2bc
Fix case for blank virtual gamepad potion buttons
5 years ago
staphen
d220129ddc
Only render the virtual gamepad when the game is running
5 years ago
staphen
b8950877c5
Add buttons for using potions from belt
5 years ago
staphen
1142d2ee7b
Hardware rendering for the virtual gamepad
5 years ago
staphen
471a435209
Organize virtual gamepad button graphics into frames
5 years ago
staphen
60492ef954
Add proper graphics for gamepad
5 years ago
staphen
599b29d825
Add renderer for displaying virtual gamepad on screen
5 years ago