Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/t2ne/energy-guardian

Phaser 3 built game that places the player in the role of a Guardian. In a future threatened by pollution you must restore the planetโ€™s energy balance.
https://github.com/t2ne/energy-guardian

github-pages-deployment javascript phaser phaser3

Last synced: about 1 month ago
JSON representation

Phaser 3 built game that places the player in the role of a Guardian. In a future threatened by pollution you must restore the planetโ€™s energy balance.

Awesome Lists containing this project

README

        

# Energy Guardian Adventure ๐ŸŽฎ

A dynamic 2D action game built with Phaser 3 where players collect renewable energy while avoiding obstacles. Take on the role of an Energy Guardian and help restore the environment across multiple challenging levels.

## ๐Ÿ“ Website

This project can also be played in my website: https://t2ne.github.io/energy-guardian/

## ๐ŸŒŸ Features

- **Multiple Levels**: Progress through 4 unique environments with increasing difficulty
- **Dynamic Combat**: Use fireballs to destroy obstacles and collect energy
- **Responsive Controls**: Keyboard arrows for movement and mouse clicks for attacks
- **Mobile Support**: Optional on-screen joystick for touch devices
- **Progress System**: Unlock new levels as you complete challenges
- **Audio System**: Dynamic sound effects and background music with adjustable volumes
- **Pause System**: Fully functional pause menu with game state preservation

## ๐ŸŽฏ Gameplay

- Move your character using arrow keys or the on-screen joystick
- Click to shoot fireballs at obstacles
- Collect energy by destroying obstacles
- Reach the energy goal before time runs out
- Avoid collisions with obstacles to maintain lives
- Complete levels to unlock new challenges

## ๐Ÿ› ๏ธ Technical Features

- Built with Phaser 3 game framework
- Sprite-based animations with proper origin handling
- Collision detection and physics system
- Local storage for game progress and settings
- Responsive design that adapts to screen size
- Custom audio management system
- Scene management for different game states

## ๐ŸŽจ Game Scenes

- **PreloadScene**: Handles asset loading with progress bar
- **StartScene**: Main menu with game options
- **LevelSelectScene**: Level selection interface
- **GameScene**: Main gameplay environment
- **PauseScene**: In-game pause menu
- **GameOverScene**: End game state
- **LevelCompleteScene**: Level completion celebration

## ๐ŸŽต Audio

The game features multiple audio tracks:
- Level-specific background music
- Sound effects for actions (shooting, collecting, etc.)
- Ambient background music for menus
- Volume controls for music, effects, and ambient sound

## โš™๏ธ Installation

1. Clone the repository:
```bash
git clone https://github.com/t8ne/energy-guardian.git
```

2. Install XAMPP (Windows) or MAMP (macOS) and run it

3. Open the file at:
```bash
localhost/your/file/directory/index.html
```

## ๐ŸŽฎ Controls

- **Arrow Keys**: Move character
- **Mouse Click**: Shoot fireball
- **ESC**: Pause game
- **S**: Quit to level select (when paused)

## ๐Ÿ”ง Configuration

The game includes several configurable options:
- Difficulty levels (Easy, Medium, Hard)
- Sound volumes (Music, Effects, Ambient)
- Optional touch controls (Joystick toggle)
- Custom player hitbox and movement speed

## ๐ŸŒ Browser Support

Tested and working on:
- Chrome
- Firefox
- Safari
- Edge

## ๐Ÿ“ฑ Mobile Support

- Responsive design
- Touch controls
- Optional on-screen joystick
- Orientation support

## ๐Ÿ™‹โ€โ™‚๏ธ Author

@t2ne - Me

## ๐ŸŽ“ Academic Project

This game was developed as part of an academic project, demonstrating the implementation of game development concepts using modern web technologies.