Tydied Up; Massive Code Refactor
New code, who this.
I updated the code of the player from a single GD script file to a massive, 6 files and counting, finite state machine.
Going forward this will allow me to tweak or add to the movement and actions of the player without the need to rewrite everything or break something.
Next Goals
For next week, the goal is to add proper attacks, health bar and its relevant UI and a Goomba to the test level. Perhaps a working pause and start menu if I can properly manage my time.
New Controls
With the new code base, I updated the controls somewhat. You still move with the arrow keys, but now to pogo you must be pressing the down arrow and be some distance away from the floor, no more instant pogo.
To wall slide, now you must be on the air and “press into” the wall with the proper arrow key, no more attacking into walls to be attached.
Finally, I’m testing out a “knockback” jump where smacking a wall with “C” on the air will send the player flying on the opposite direction. This move is really bare bones and is mostly to experiment with an alternative lateral air movement control instead of just keeping the arrow keys pressed.
Files
Get Untitled Spear Game
Untitled Spear Game
A short 2D game made in Godot Engine
Status | In development |
Author | MrSicario |
Genre | Platformer |
Tags | 2D |
More posts
- Polish and Victory ConditionsJul 09, 2023
- So many new things my GUIJul 08, 2023
- More of a Dog, Less of a BugJul 02, 2023
- Tied UpJun 26, 2023
- Tidying UpJun 05, 2023
- Going SoloJun 03, 2023
Leave a comment
Log in with itch.io to leave a comment.