jdoleary / Stealth_em_up

Top Down Stealth Game

Home Page:stealth-em-up.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stealth_em_up

Live Url

/game.html?volume=1.0&level=bank_1

or

https://stealth-em-up.jordanoleary.me/game.html?volume=1.0&level=bank_1

How to run

./local_server_for_testing.bat

Todo

  • raycasting problem is due to the offset, but the offset is necessary to properly sort the points

Optimize:

  • Anything that doesn't need to have its objective x and y calculated independently should be a part of a parent sprite. Then the sprite's xy is calculated and all the children aren't.
  • Increase the usuable size of maps by turning off .visible for cells not in view?

Notes:

  • SpriteBatch is a super charged display object container

  • Setting the CacheAsBitmap flag makes a display object's content (children) be rendered to a texture, and then that texture is drawn. With CacheAsBitmap on, children's rotation (for example) is excluded.

  • Drag code is updated in CodePractice repo.

  • You can use different gameLoops for different game states.

Terms:

  • LOS Line of Sight (fog of war)
    • The starburst is what is used to calculate the LOS shade
  • True Point is the point that the ray is sent to, but the end of the raycast may go beyond it

About

Top Down Stealth Game

stealth-em-up.vercel.app


Languages

Language:JavaScript 97.0%Language:HTML 2.8%Language:CSS 0.2%Language:PHP 0.0%Language:Batchfile 0.0%