Code Monkey home page Code Monkey logo

freeways2's Introduction

TL;DR

Exploring the concepts behind the game freeways.

REFERENCE MATERIAL

https://pixijs.io/guides/ https://pixijs.download/release/docs/index.html https://pixijs.io/examples/

animatedSprite and spriteSheet https://pixijs.download/dev/docs/PIXI.AnimatedSprite.html

https://pixijs.io/examples/#/demos-advanced/collision-detection.js https://pixijs.io/examples/#/demos-advanced/mouse-trail.js https://pixijs.io/examples/#/graphics/dynamic.js

https://github.com/timohausmann/quadtree-ts/ <- https://timohausmann.github.io/quadtree-js/dynamic.html alternative https://github.com/CorentinTh/quadtree-js

https://github.com/getditto/dijkstra-calculator <- https://github.com/tcort/dijkstrajs https://github.com/ProfDeCube/dijkstrajs https://github.com/chen0040/js-graph-algorithms

https://github.com/pixijs/particle-emitter http://pixijs.io/particle-emitter/docs/

https://github.com/pixijs/sound

A* https://www.youtube.com/watch?v=pKnV6ViDpAI best path Dijkstra's Algorithm https://www.youtube.com/watch?v=iFdOKsw6x6A https://www.youtube.com/watch?v=GazC3A4OQTE

CREDITS

TODO

  • road segment drawing action and visuals

  • make cars move toward simple destinations

  • detect proximity of other cars ahead and stop

  • extrapolate graph from intersection of roads

  • apply Dijkstra shortest path and tag segments accordingly

  • add sources and destinations to the map

  • make cars spawn from sources (and not on top of other cars)

  • make cars die on destinations

  • new cars shouldn't spawn on top of other cars

  • draw origins and destinations with location name signs

  • avoid strokes over obstacle

  • aux vis: display connected roads

  • accelerate time

  • detect traffic jam

  • support ramps and multiple layers

  • add obstacles - passable (over water) and blocking (buildings)

  • basic undo support

  • delete closest road

  • delete orphan segments

  • merge close-enough vertices

  • reuse existing vertices at stroke start

  • basic event sounds

  • engine + environmental sounds

  • good looking cars

  • particle effects (smoke on new ramps, something on new roads or deletions, haze for new segments being driven?)

  • basic shadows between layers?

  • level editor

  • procedural level generation?

KNOWN BUGS

freeways2's People

Contributors

josepedrodias avatar

Watchers

 avatar James Cloos avatar  avatar

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.