~alect/secret-santa-jam-2022

05752205b0419504fa9b142fa82c0d8cca9efbef — alectroemel 1 year, 4 months ago 00f7d56
add game over state
2 files changed, 12 insertions(+), 0 deletions(-)

A assets/game-over.aseprite
A src/game-over.janet
A assets/game-over.aseprite => assets/game-over.aseprite +0 -0
A src/game-over.janet => src/game-over.janet +12 -0
@@ 0,0 1,12 @@
(use craft-bin)
(use ./entities)

(def-system draw-picture
  {[[picture]] [:picture]}
  (clear-background 0x32313bff)
  (draw-texture (picture :texture) 0 0 white))

(crafty-gamestate :game-over
   (set-exit-key :space)
   (create-game-over-picture world)
   (register-system world draw-picture))