Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magicoo51889/phaser-game
My A-Level Computer Science Project, made using Phaser 2/CE, and webpack. Designed to be a twist on the classic space invaders game!
https://github.com/magicoo51889/phaser-game
arcade-game cordova phaser phaser-2 phaser-ce phaser-game space-invaders webpack
Last synced: 15 days ago
JSON representation
My A-Level Computer Science Project, made using Phaser 2/CE, and webpack. Designed to be a twist on the classic space invaders game!
- Host: GitHub
- URL: https://github.com/magicoo51889/phaser-game
- Owner: Magicoo51889
- Created: 2022-08-20T01:33:47.000Z (about 2 years ago)
- Default Branch: Main
- Last Pushed: 2022-09-27T10:28:19.000Z (about 2 years ago)
- Last Synced: 2024-10-31T05:04:29.650Z (15 days ago)
- Topics: arcade-game, cordova, phaser, phaser-2, phaser-ce, phaser-game, space-invaders, webpack
- Language: JavaScript
- Homepage:
- Size: 11.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A-Level Project
### Introduction 🖥
This is a portfolio project for the A-Level practical course, and shows off what we can do in a given language. It focuses on our ability to create meaningful documentation and code. We have Gitbook pages to show our background thinking and preparation, and we have a GitHub repository to show the code. These two are linked into one GitHub repository accessible at https://github.com/Marling-CS-Projects/Jack-Foot-ALevel-Project. We have a Gitbook page for the project at https://marling-school.gitbook.io/jack-foot-project-2022-23/VXGCAnvrgxRbaVGYo22T/.---
### What have I done? âš™
I chose to create a game similar to space invaders, which I thought would have enough complexity and challenges to be able to make over a few months. I used Phaser 3 initially, but found there was a lack of documentation and reliable sources of code. Thus I switched to Phaser 2/CE which has been released for far longer and has more documentation available.Furthermore I've been updating my Gitbook page with the code and documentation, and adding more content. This is a running log of what I've done so far and helps me to keep track of what I've done and what I'm working on and what I've learned. It also allows me to plan out what I'm going to do next, with tests and checklists.
We're also using cycles like you would in industry such as the SCRUM methodology. This allows me to plan what I'm going to do that day, work on that piece of code, and then at the end of the day evaluate what I've done and what I need to do next. This is a great way to keep track of what I'm doing and what I need to do.
I hope to be able to use Cordova to allow the game to be run on mobile devices, but this is currently not a priority, and at the moment does not work. The 0.2.0 pre-release does not have cordova features built into it, so do not try using on a mobile device as it will simply not work.
---
### How to install and run the game? 💾
There is a prerequisite called [Node.js](https://nodejs.org/en/download) that you will need to install before starting the installation process. This is a package manager that allows you to be able to install the other packages needed for the game. During the installation wizard for node.js you will want to also select chocolatey if you are on a windows computer.1. First you will need to download the files from the 'releases' tab. The only version at the moment is the pre-release version designed for testing.
2. **Note that you will need to install the source code as a zip, which is one of the options given in each realease, and then unzip that before you do this step!** Install the files, and use your command line to find the root folder of the game (./). To do this type ``ls`` into the command line to identify files you're currently able to access, ``cd {filename}`` to move into the specified file, E.G. ``cd downloads`` will move you to the downloads folder on your computer. Use ``cd`` to move back in the directory.
3. Next once you reach the root folder (the one with src, package.json, and config.xml for example in), you will want to type ``npm i`` or ``npm install``. This will install the packages needed to run the game and is essential.
4. Finally type ``npm run dev``. This will start the local websever using webpack to launch the game in your browser.
**Note: If you have downloaded the game to your downloads folder on your C: drive then you can use this command to instantly run the game:** *cd downloads; cd phaser-game-pre-release-v0.2.0.1; npm i; npm run dev*