项目作者: nidup

项目描述 :
Small RTS game - Akeneo Game Jam #4
高级语言: JavaScript
项目地址: git://github.com/nidup/collect-and-conquer.git
创建时间: 2017-04-16T14:44:40Z
项目社区:https://github.com/nidup/collect-and-conquer

开源协议:MIT License

下载


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

  1. docker build -t nidup/phaserjs .

Your image should appears in the list when typing,

  1. docker images

Run the dev image

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

  1. 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,

  1. docker ps

Install / update project dependencies

  1. docker exec -it phaserjs-ai-sandbox npm install

Running the project in dev mode:

Launch webpack server in watch mode,

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

You can access your project in your browser,

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

  1. git checkout gh-pages
  2. git rebase master -i

Build the bundle.js

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

Commit then push the bundle.js

  1. git add build/bundle.js
  2. git commit
  3. git push

Check the deployment

The game is available on the following website,

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

Troubleshooting

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

  1. docker rm phaserjs-ai-sandbox

Utils

Connect in bash to the dev image

Run,

  1. docker exec -it phaserjs-ai-sandbox bash

Your local files should be mounted in the container,

  1. ls
  2. 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