Skip to content

Repository files navigation

Hero vs Goblin 2D Game

A simple 2D fighting game where you play as a hero battling a goblin.

How to Play

  1. Install the required dependencies:

    pip install -r requirements.txt
    
  2. Run the game:

    python game.py
    

Controls

  • Move Left: Left Arrow Key
  • Move Right: Right Arrow Key
  • Attack: Spacebar

Game Mechanics

  • The hero (green rectangle) moves left and right using arrow keys
  • Press spacebar to attack
  • The goblin (red rectangle) moves automatically and attacks when close
  • Both characters have health bars above them
  • The first to reduce the other's health to 0 wins

Features

  • Simple 2D graphics
  • Basic combat system
  • Health bars for both characters
  • Attack ranges visualization
  • Automatic goblin AI

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages