Tower defence game – ImpactJS

Live game:

https://windytower-game.herokuapp.com/

Code base:

https://github.com/yongbin999/impactjs_game

level/ main:

  • welmister background, collision
    layer entities — change zIndex then call sortentitiesdefer
    images – transparency
    get new font color and size/bold? – impact tool
    camera follow player center
    states – menu credits game game over
    timer for bonus
    text fading and flashing use alpha
    health bars
    scores and resources
    countdown wins
    level advancement by timmer and replays

player:

  • options for classes and bonuses
    different animation sprites
    in range detect closest monsters
    mouse click for movement and targets
    movement facing directions

tower:

  • change animation when clicked
    clickable entity change the display information on the buttons
    on collision minus health with monster

monster:

  • change animation when clicked
    built collision using distance to player
    play sound when attack

bullets:

  • bullets fly spawn entity
    sound
    rotate/flip
    kill() on collision with monster, set moving ignore map collision

Not done yet:

  • mouse:
    hide mouse cursor
    change mouse display on clickable stuff? —– not done draw mouse
    clicked target circle spawn? then kill after 1 second? —– not done
  • scoreboard
    create .min.js file — use the tool script
    hosting – no src files: imact & welmister

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s