sionleroux / cr1ckt

There is more than 1 bug in this game and some of them are intentional! 🦗 Entry for the 2021 Game Off jam.

Home Page:https://sinisterstuf.itch.io/cr1ckt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get the screen to follow the cricket

Thesryn opened this issue · comments

So that I can try to make a big level.
The visible screen can maybe be the same size as what a level is now, or a little smaller
It might be cool to level that is 4 or 8 times the size

Ok, this requires implementing an independent camera, I haven't done that before, I'll read up about it first

  • Draw everything of the world, cricket, - background, entities to a separate "off-screen" Ebiten image.
  • Take a sub-image of that with dimensions of screen size and position half screen size minus from current cricket location
  • Draw the blackness onto that
  • Draw that onto the screen