nidup / collect-and-conquer

Small RTS game - Akeneo Game Jam #4

Home Page:https://nidup.itch.io/collect-and-conquer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collect & Conquer: Blue Alert

Mini RTS game developed for the Akeneo Game Jam #4.

Playing with steering behaviors, stacked FSM, A* path finding and procedural map generation.

Image of GameJam

Demo

You can play to the demo here

Screenshots

Image of GameJam

Getting Started to Dev

Pre-requisites

You need to have docker installed

Build the dev image

docker build -t nidup/phaserjs .

Your image should appears in the list when typing,

docker images

Run the dev image

Run to mount local project code inside the container and bind ports

docker run --name phaserjs-ai-sandbox -v "$PWD":/usr/src/app -p 8080:8080 -d nidup/phaserjs

Your container should appears in the list when typing,

docker ps

Install / update project dependencies

docker exec -it phaserjs-ai-sandbox npm install

Running the project in dev mode:

Launch webpack server in watch mode,

docker exec -it phaserjs-ai-sandbox npm run dev

You can access your project in your browser,

http://localhost:8080/

Deploy in production

We deploy online version directly from our Github repository with https://pages.github.com/

Checkout the gh-page and rebase master on

git checkout gh-pages
git rebase master -i

Build the bundle.js

docker exec -it phaserjs-ai-sandbox npm run build

Commit then push the bundle.js

git add build/bundle.js
git commit
git push

Check the deployment

The game is available on the following website,

https://nidup.github.io/phaserjs-ai-sandbox/

Troubleshooting

Conflict. The container name "/phaserjs-ai-sandbox" is already in use by container

docker rm phaserjs-ai-sandbox

Utils

Connect in bash to the dev image

Run,

docker exec -it phaserjs-ai-sandbox bash

Your local files should be mounted in the container,

ls
Dockerfile  LICENSE  README.md	assets	bin  doc  index.html  lib  package.json  src  tsconfig.json  webpack.config.js

Resources

Steering Behavior

Finite State Machine

Assets

## Sounds

Thanks

  • @grena for dat game jam org! 🎉
  • @pierallard for procedural map generation! 🎉

About

Small RTS game - Akeneo Game Jam #4

https://nidup.itch.io/collect-and-conquer

License:MIT License


Languages

Language:JavaScript 94.6%Language:TypeScript 5.4%Language:HTML 0.0%