/Metal-Slug

Metal Slug sprite 2D shooter game written in Java

Primary LanguageJava

Metal-Slug

The objective 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.

Metal Slug Video

Features

Player

  • Move two dimensionally around map

    • w - Up
    • a - Left
    • s - Crouch
    • d - Right
    • spacebar - Jump
  • Attack

    • j - Knife
    • k - Shoot bullets
    • l - Shoot grenades
  • Other

    • Victory animations
    • Periodic reload animations

Enemies

  • Units
    • Airship
    • Helicopter
    • Mecha Robot
    • Scientist
    • Tank
    • Reinforced Tank
    • UFO
    • Zombie Macro
  • Unique sound, projectile, and death animations for enemies

Other

  • Side scrolling map
  • Scoreboard
  • Player jump shoot
  • Player crouch shoot
  • Player shoot up
  • p - pause
  • o - resume

Development

The sound and image capability is powered by the EZ Graphics Library. The game is built on four classes.

  • Enemy
  • Initializer
  • Player
  • Projectile

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.