So now, when killing a monster, they have a probability to drop one item (coin, ammo). The randomness is quite simple in this first implementation but i will polish this later because for example, i need to be sure that if some ammo are dropped, that the player has the right weapon for this type of ammo.

monsters are dropping an item when killed

As i said later, i prefer to implement now the basis and polish everything later.

Next step? Changing map with a door or a stair! But i know this will require lot more work that the last things i have shown.

I am progressing a lot these days in my Cthulhu game.
After implementing items drop, i added the code to manage ammo for shotgun, displaying it in the weapon bar, peeking ammo on the floor, decreasing ammo when shooting monsters, and running out of ammo with the shotgun. The font used to display it (the same as gold) is not perfect but this will do the job for the moment. Too many times i have focused on details but i think that i need to make progress on high level mechanisms and not trying to make everything perfect. This will be polished later.

demo for ammo management for Cthulhu game

My next goal is to implement dropping items from dead monsters.

So it took me lot of time to implement ranged attacks in the game. Mostly because it was difficult for me to work on the game. I have refactored a lot of things: the attack system was too much “close attacks” oriented and i just want only one attack system in the game.
I have also modified the rendering because there is a sprite for the bullet to handle with other sprites like hero or monsters.
The collision system i used for wall works great for bullet hits so this part was easy.
Indeed the most difficult things was to debug the code because it is not really possible to use unit tests to check each logic parts. I have implemented a feature to slow down the game speed in order to debug it like a step by step process in the real game.

The next step i have already started is item drop like coin and ammo.
to be continued !

I am currently working on range attack system, but first i need some artworks for shotgun.

Before, when working on graphics and animation, i just draw some sketchs on a sheet of paper, then from these picture, i vectorize it in Inscape. I export this svg as PNG and produce images and animation from this image in PyxelEdit. But i always face difficulties when rendering objects in different position for animation, even if my pixel sheets is 32×32 or 64×64.

I will try for the shotgun another approach: i will still do sketchs on the paper but skip Inkscape to produce a 3d model in blender. I have followed some nice tutorials on youtube from BornCG. With this model i will be able to see my object from different angle and i think this will help me to produce animation.

Continue reading

Well, i have worked a lot on the game but it is difficult to publish something relevant: I have worked on the game engine, on sprites management, do some libraries upgrade. I am also working a lot on Blender to facilitate portrait, sprites and animation design. Some few new animations for aviator
aviator_attack_machete_left#4_0.1_N

aviator_move_left#4_0.15_L

aviator_attack_machete_right#4_0.1_N

aviator_move_right#4_0.15_L