The objective of the game is to destroy the enemies and reach the end of the map. Enemies have set health and also shoot projectiles at the user. There are 8 types of enemies which all have unique projectiles, sounds, and death animations. These include both land and flying units. Sprite animation and projectile explosion animations are also options.
w
- Upa
- Lefts
- Crouchd
- Rightspacebar
- Jumpj
- Knifek
- Shoot bulletsl
- Shoot grenadesp
- pauseo
- resumeThe sound and image capability is powered by the EZ Graphics Library. The game is built on four classes.
The Enemy class controls all functions and features relating to all enemies. The Initializer class controls background music, map generation, and the options screen. The Player class controls all actions involving the player such as collision, animation, and states. The Projectile class controls all projectiles for both the player and all enemies.
Source: https://github.com/nathancy/Metal-Slug
Video demo: https://www.youtube.com/watch?v=85yrW6rgm-s