Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (45 sloc) 1.169 kb
assert(love, "Run this inside Love")
inspect = dofile 'inspect.lua'
local Level = require('level')
local point = require('point')
love.physics.setMeter(32)
local level = Level.new{
"..........######.........",
"....1.....#..............",
"..........#.#............",
".....######.#......o.....",
"............#......o.....",
".....##..##.#............",
"......#..##.#........&...",
"......#..#....*...#......",
"...@.........*.*..#.##...",
"..............*..........",
".....#...#.......##.#....",
"...#...#...#........#....",
".....#...#...............",
"A.........B.........2....",
".*********.....E.........",
"D.........C..............",
["1"]={"This\nis a message",
dx=50, dy=0}, -- Delta from center of marker to top-left of box.
["2"]={"This is also a message",
dx=-200, dy=0},
enemies = {
"ABCD",
"BCDA",
"CDAB",
"DABC",
"E"
}
}
function love.load()
local font = love.graphics.newFont(12)
love.graphics.setFont(font)
math.randomseed(os.time())
end
function love.draw()
level:draw()
end
function love.update(dt)
level:update(dt)
end
Jump to Line
Something went wrong with that request. Please try again.