Skip to content

rrari84/SpaceDonation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Collection Game 🚀🌌

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.

Game Overview 🎮

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!

Features

  • 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.

Demo

image

Built With

  • Phaser.js - A JavaScript framework for building games.
  • HTML/CSS - For layout and styling.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

  • Node.js (optional) if you want to run a local development server.
  • Basic knowledge of HTML, CSS, and JavaScript.

Installation

  1. Clone the repository:

    git clone https://github.com/rrari84/SpaceDonation
  2. Navigate to the project directory:

    cd space-collection-game
  3. Open index.html in a web browser, or use a local server (see below).

Running a Local Server

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.

Gameplay Instructions

  1. Controls: Use the arrow keys to move the spaceship around the screen.
  2. Objective: Collect as many space items as possible before time runs out.
  3. Scoring: Each item collected adds points to your score.

Customization

To customize the game:

  • Modify assets for new images or sounds.
  • Edit game.js for gameplay mechanics.
  • Adjust the CSS styles in index.html for layout and colors.

Contributing

We welcome contributions! To contribute:

  1. Fork the project.
  2. Create a branch (git checkout -b feature/new-feature).
  3. Commit your changes (git commit -m 'Add a new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Areeba Rahu
Fatima Tausif Nuha Kadak

Email: [email protected]

Acknowledgments

  • Phaser.js documentation and community for inspiration.
  • Free resources from Opengameart for assets.
  • Free resources from Kenney for assets.

About

A non-profit space game to collect debris in order to donate to charities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors