Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class = require("src/30log")
- Renderer = require( "src/renderer" )
- World = require( "src/world" )
- Entity = require( "src/entity" )
- Game = {}
- Grass = require( "entities/world/grass" )
- function love.load()
- Game.world = World()
- Game.world:interpret(function(tile, x, y)
- if tile == 1 then
- print(tostring(x) .. ", " .. tostring(y))
- Game.world:addEntity(Grass(x, y))
- end
- end)
- end
- function love.draw()
- Renderer:render(Game.world)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement