Giter Club home page Giter Club logo

collect-and-conquer's Introduction

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! ๐ŸŽ‰

collect-and-conquer's People

Contributors

nidup avatar pierallard avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pierallard

collect-and-conquer's Issues

ES6

There is a lof of missing functions with ES5...
Maybe we should go to ES6 to do some functional programming more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.