Skip to content

Tareq-Ghassan/Pixel

Repository files navigation

Pixel

Description: Pixel is a 2D game built using the Flame engine. In this game, players collect fruits, avoid traps, and evade enemies that chase them. Inspired by classic platformers like Mario, Pixel provides a fun and challenging gaming experience.

Pixel

Features

  • Collectible Fruits: Gather fruits scattered throughout the levels to increase your score.
  • Traps: Avoid various traps that are strategically placed to challenge your reflexes and timing.
  • Enemies: Evade or defeat enemies that actively chase you.
  • Retro Graphics: Enjoy pixel art graphics that give a nostalgic feel to the game.
  • Sound Effects: Immersive sound effects to enhance the gaming experience.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Tareq-Ghassan/pixel-game.git
  2. Navigate to the project directory:

    cd pixel-game
  3. Get the dependencies:

    flutter pub get

Running the Game

  1. Connect your Android/iOS device or start an emulator.
  2. Run the game:
    flutter run

Game Controls

  • Move Left: Tap or hold the left side of the screen
  • Move Right: Tap or hold the right side of the screen
  • Jump: Tap the jump button on the screen
  • Collect Fruits: Move the character over fruits to collect them
  • Avoid Enemies: Evade enemies to stay alive
  • Avoid Traps: Jump or move away from traps to avoid them

Architecture

The game follows a simple architecture pattern:

  • Game Engine: Built using the Flame engine for smooth and efficient game development.
  • Components: Different components like player, enemies, fruits, and traps are managed separately for modularity.
  • Game Logic: Handles the rules and mechanics of the game, such as collision detection and scoring.

Contributing

Contributions are welcome! Please fork the repository and use a feature branch. Pull requests are warmly welcome.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

About

A basic Flutter Game Using Flame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages