Nice WIP, I especially like the sprites, animations and effects. As you say, it is far from done, such as the lack of actual hotness of the lava :- ). I also like that the AI uses the same controls as the player,
In regards to staying inside the view, I think the AI mostly have issues with staying inside the view when it has high hspeed, such as when it is chasing after a power-up. I think that if you let the limit of when it begins going the other way depend on its hspeed (similar to what you do with vspeed and k_jetpack in line 19), possibly multiplied by a constant factor to make it count more, it would be better at staying inside the view even when it has high hspeed. About avoiding the lava instead of chasing the power-up, I think you are already doing the right thing by letting it depend on vspeed. You may need to multiply that vspeed with a greater constant factor if it sometimes dives into the laving when chasing power-ups. Determining and calibrating a good constant factor may require some testing.
About the bomb avoidance, I think it may be interesting to let it depend on hspeed as well, and also let it differentiate more about which direction to go in depending on which side the player is of the bomb; for instance, if both the player and the bomb is on the left side, and the bomb is to the left of the player, the player should go right, not left to avoid it. There is also missing an instance_exists before the accessing of the bomb instance, since the bomb instance may not exist.
About the game in general, it would be very nice to have some information about the controls, it took me some searching to find out that 'z' is used for shooting. I also wonder if it would be a good idea to implement some sort of limits or indestructible walls at the top and the side, just to avoid the player and AI from going out there.
|