Skip to content

Phaser.js game, now deployed & live! Play with Keyboard or Controller ๐ŸŽฎ

Notifications You must be signed in to change notification settings

Kisokumar/galaxy-quest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Galaxy-Quest! ๐Ÿ›ธ

A game built with Phaser.JS!
Play It! . Report Bug ยท Request Feature

๐Ÿ’ปย  Technologies used

Reactโ€ƒ Tailwindโ€ƒ Viteโ€ƒ JSโ€ƒ Vercelโ€ƒ PostCSSโ€ƒ

demo.mov

๐Ÿš€ About

Collect stars for fuel and ammo, shoot the meteors and avoid getting hit by them.

๐Ÿ“ Features

  • Transition to React

  • Transition to Tailwind CSS

  • FreePlay Mode

  • Two Player Mode

  • Contextual game over scene (messages of how you died/ won)

  • Create components(volume slider, controls page, banner)

  • Code seperation & OOP ( easier to build two player mode and other game features )

  • Use localStorage to keep track of users highest score and update it live

  • Use localStorage to keep track of users mute sound preference

  • Game Music and SFX for all scenes & events

  • Shoot Lasers & destroy meteors

  • Single Player Mode

โš™๏ธ Installation

Make sure you have node, git and npm installed before beginning.

๐Ÿ“œ Install Dependencies:

git clone https://github.com/Kisokumar/galaxy-quest
cd galaxy-quest

npm i

๐Ÿ’ป Usage (devserver & deployment)

Make sure you have completed installation in the section above.

๐Ÿ“œ Run a devserver :

npm run dev

๐Ÿ“œ Build locally & preview:

npm run build
npm run preview

๐Ÿ“œ Script to build & deploy (github pages):

#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# navigate into the build output directory
cd dist

# place .nojekyll to bypass Jekyll processing
echo > .nojekyll

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git checkout -B main
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git main

# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:username/repo.git main:gh-pages

cd -

Source for the script above: Vite Docs

About

Phaser.js game, now deployed & live! Play with Keyboard or Controller ๐ŸŽฎ

Resources

Stars

Watchers

Forks