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/.
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.
There is a prerequisite called Node.js 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.
-
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.
-
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. Usecd
to move back in the directory. -
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
ornpm install
. This will install the packages needed to run the game and is essential. -
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