@@ 1,37 @@
+function love.load()
+ -- Scale up pixel art without blurriness
+ love.graphics.setDefaultFilter("nearest", "nearest", 1)
+
+ textures = {
+ ["zoomer"] = love.graphics.newImage("textures/zoomer.png"),
+ ["asphalt"] = love.graphics.newImage("textures/asphalt.png")
+ }
+
+ player = {
+ ["x"] = 0,
+ ["y"] = 0
+ }
+end
+
+function love.update(dt)
+ if love.keyboard.isDown("w") and not love.keyboard.isDown("s") then
+ player.y = player.y - (200 * dt)
+ elseif love.keyboard.isDown("s") then
+ player.y = player.y + (200 * dt)
+ end
+ if love.keyboard.isDown("a") and not love.keyboard.isDown("d") then
+ player.x = player.x - (200 * dt)
+ elseif love.keyboard.isDown("d") then
+ player.x = player.x + (200 * dt)
+ end
+end
+
+function love.draw()
+ for y=1, love.graphics.getHeight(), 80 do
+ for x=1, love.graphics.getWidth(), 80 do
+ love.graphics.draw(textures.asphalt, x, y, 0, 10)
+ end
+ end
+
+ love.graphics.draw(textures.zoomer, player.x, player.y, 0, 3)
+end