oh.o.h.o.h.o.h! A wizard hat simulator that creates hilarious magical spells by combining silly words!
oh.o.h.o.h.o.h! A wizard hat simulator that creates hilarious magical spells by combining silly words!
I finally understand why is C++ so hated by everyone.
Reformated player.hpp, created a base entity to later on add enemies.
For some reason that broke the sprite sheet code so i had to fix that too, i still don’t understand why it didn’t work initialy. I learned how to use a real debugger (Not just testing by printing to terminal) And i spent hours on fixing the problem with the sprite sheet. I learned how to write a little safer code.
This was a great learning experience, i hated it but loved it at the same time, i’m going to speed up the process to finish in time…
I finally added a weapon system ! I made it so you can set for each weapon a certain shooting delay, the weapon system is special, you must use your mouse to orient the weapon around the player and then press left click to shoot. For now, the projectiles are simple white circles.
Log in to leave a comment
New advancements ! I made a sprite sheet management class that basically retrieves each animation sequence into a list of list of animations sequences. I also cleaned up the code a bit, and changed the way player movement is managed. Finally i made a new system for player directions. I also changed the sprite sheet to another one : https://greenpixels.itch.io/pixel-art-assets-5
Log in to leave a comment
Finally, the collision system, is close to be finally done ! It took me some time because i tried to make it more complicated than what it really is !
Also started sprinting. It should be working but i don’t understand why, i guess that’s something for next time ! I loved making these changes i learned so much !
Next easy fix : temporarily set the sprite hitbox to a fixed position and size depending on this sprite.
And the collision hitbox (with collide tiles) Should be surrounding the legs only and nothing more !
Log in to leave a comment
I added a functional 2d camera, you can explore the map now !
Next -> Adding collisions and actually making something somewhat close to a map.
Log in to leave a comment
I finally added map rendering, i was kind of stressed out about using the tmxlite documentation because it seemed complicated and i never used a documentation to implement any type of functionality. Instead i used a class made as a template for SFML projects in the official tmxlite repo. its amazing because it just works and i finally have a map that renders in the background with layers ! Woohooo !
Next step -> Viewport movement and collisions !
Log in to leave a comment
I just added classes, my code is much more structured ! I’m still trying to understand how tmx lite works so i can start actually working on maps !
Log in to leave a comment
I just initialized the project, i will start by creating characters, work on their movement and start with some sort of UI.
Log in to leave a comment