A simple browser-based space-themed game where players control a spaceship to collect items in space. The more items you collect, the higher your score! Built using Phaser.js for fast, fun game development. This game is designed with a space-inspired theme and is intended to be a fun way to raise awareness for a charity donation initiative.
In this game, you control a spaceship and aim to collect items scattered across space. Each item you collect contributes points to your score, symbolizing donations to a charity cause. Play to achieve high scores, and consider real-world donations to support a meaningful cause!
- Simple Controls: Use arrow keys to navigate the spaceship.
- Responsive Design: The game is accessible on desktop and mobile.
- Space Theme: Experience the thrill of space exploration while collecting items.
- Phaser.js - A JavaScript framework for building games.
- HTML/CSS - For layout and styling.
To get a local copy up and running, follow these simple steps.
- Node.js (optional) if you want to run a local development server.
- Basic knowledge of HTML, CSS, and JavaScript.
-
Clone the repository:
git clone https://github.com/rrari84/SpaceDonation
-
Navigate to the project directory:
cd space-collection-game -
Open
index.htmlin a web browser, or use a local server (see below).
To run the game on a local server, you can use a simple Python server:
-
Python 3.x:
python -m http.server
-
Python 2.x:
python -m SimpleHTTPServer
Then, open your browser and go to http://localhost:8000.
- Controls: Use the arrow keys to move the spaceship around the screen.
- Objective: Collect as many space items as possible before time runs out.
- Scoring: Each item collected adds points to your score.
To customize the game:
- Modify assets for new images or sounds.
- Edit
game.jsfor gameplay mechanics. - Adjust the CSS styles in
index.htmlfor layout and colors.
We welcome contributions! To contribute:
- Fork the project.
- Create a branch (
git checkout -b feature/new-feature). - Commit your changes (
git commit -m 'Add a new feature'). - Push to the branch (
git push origin feature/new-feature). - Open a pull request.
Distributed under the MIT License. See LICENSE for more information.
Areeba Rahu
Fatima Tausif
Nuha Kadak
Email: [email protected]
- Phaser.js documentation and community for inspiration.
- Free resources from Opengameart for assets.
- Free resources from Kenney for assets.