General code refactoring
In this update not much has changed gameplay wise other than one of my friends has started to develop a level which he wants to be really hard but idk if it is hard yet, guess we'll find out when he finishes (his level is level 4) but that aside, this update entails just a really big fix to how the code would run.
Originally, the code would do a lot of coupling between the child and parent as well as run on a lot of promises and understanding that you can run if this condition is met and wait for that condition, so very unstable and made the code really huge, I mean just for LOADING 4 levels we were looking at like 50 lines of code but now I just a much simpler way via signals which allows me to send a message from the child to the parent without coupling which is much more efficient taking the code down from 50 lines to about 8 lines to load a level so big changes. Next to do with the main coupling error the level scenes would often consult the parent to receive a sibling, the player, so it could detect if the player collided but now instead I just test if something has entered the area of the buttons and flags and evaluate if its the player or not so overall the code is much nicer and cleaner now, other than that not much has changed but thank you for reading this till its end, 'till next time,
Bailey.
Get Platformer 2.0
Platformer 2.0
Status | In development |
Author | Itsbailey X3525 |
Genre | Platformer |
Tags | 2D, Animation, browser, Godot, html, Pixel Art, Sound effects |
Languages | English |
More posts
- Info regarding game development56 days ago
- Minor update59 days ago
- Yet another huge updateJun 23, 2024
- Huge updateJun 21, 2024
- Game released to the appstore!Jun 17, 2024
- Mobile menu fix and level 4Jun 13, 2024
- Level 3 finishedJun 13, 2024
- UI overhaulJun 10, 2024
- General changesJun 09, 2024
- Game saving.Jun 09, 2024
Comments
Log in with itch.io to leave a comment.
my arm hurts from writing all that