Skip to content

Commit

Permalink
a game
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed Dec 6, 2014
1 parent cd750d3 commit e8890b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lovekit
*.lua
!maps/*.lua
6 changes: 4 additions & 2 deletions game.moon
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@


class Game
new: =>
@viewport = EffectViewport scale: GAME_CONFIG.scale

draw: =>
@viewport\apply!
love.graphics.print "hello world", 10, 10

update: (dt) =>
@viewport\pop!

update: (dt) =>

{ :Game }
2 changes: 2 additions & 0 deletions main.moon
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if pcall(-> require"inotify")

{graphics: g} = love

import Game from require "game"

export DEBUG = false

load_font = (img, chars)->
Expand Down

0 comments on commit e8890b0

Please sign in to comment.