Devlog 4 - Local Multiplayer Groundwork
2024-04-07
The last two weeks have been a bit of a blur with everything I’ve worked on blending together.
Taking a look at my commits it seems I have worked on…
- A bunch of touch control improvements
- Added Input Buffer
- Additional characters
- Tons of character animation fixes (see mobile spritesheet issue)
- More player actions and attack states (rekkas!)
- Adding SFX (WIP)
- Lots of other misc fixes and experiments
and thats not including the things I’m currently working on.
As always I’ve grossly underestimated the scope of the project between input, controls, animations, audio, networking, etc.
However we must press on!
So, things I’m currently working on.
1. Continuously adding more character abilities and improving animations and sound effects.
I’ve tested FMOD but unfortunately there are no community plugins for Godot 4 that support web exports. Since I’m priortizing web exports for now I’ve only added simple SFX on character animations and on hit events. I plan to experiment with FMOD web exports in the future after other systems are done.
2. Handling multiple devices for local multiplayer.
Have tested with KBM, XBox, PS, Stick and Buttonbox controllers. Catching touch controls up will happen soon after.
At the moment I’m reworking the input buffer and player state machine to only respond to inputs from the assigned device. For now the input buffer assigns itself to the first device it receives an input from. Adding a settings menu to change this comes next.
While doing this I want to support device remappings using the InputMap and limiting input updates to the start physics update, keeping them 1 to 1 with input to physics.
In Godot I’ve only found 2 ways to implement multiple devices.
- Store all InputEvents from _input func that occur between physics frames and process them at the start of the physics update.
- Reference the InputMap to check what device button/axis is used for a specific action and poll that from Input object.
and thats where I currently am.
Files
Akashi (2D Fighting Game)
A simple 2D fighter demo.
More posts
- Devlog 3 - Minimal Mobile SupportMar 22, 2024
- Devlog 2 - Some AccessibilityMar 19, 2024
- Devlog 1 - Moving AroundMar 13, 2024
- Devlog 0 - Getting StartedMar 11, 2024
Leave a comment
Log in with itch.io to leave a comment.