First steps with lovedos.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
# LoveDOS-Dungeon-Crawler
|
# LoveDOS-Dungeon-Crawler
|
||||||
|
|
||||||
A dungeon crawler game made with LoveDOS for the DOSember Game Jam https://itch.io/jam/dosember-game-jam
|
A dungeon crawler game made with LoveDOS for the DOSember Game Jam https://itch.io/jam/dosember-game-jam
|
||||||
|
|
||||||
|
## Assets used
|
||||||
|
|
||||||
|
- [Click.wav by frosty ham](https://opengameart.org/content/click-0)
|
||||||
|
- [B&W Ornamental Cursor by qubodup](https://opengameart.org/content/bw-ornamental-cursor-19x19)
|
||||||
|
- [Dogs of Cyberspace by congusbongus](https://modarchive.org/index.php?request=view_by_moduleid&query=207032)
|
||||||
|
|||||||
BIN
bgm/dogs.wav
Normal file
BIN
bgm/dogs.wav
Normal file
Binary file not shown.
BIN
imgs/bckg.png
Normal file
BIN
imgs/bckg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
imgs/pointer.png
Normal file
BIN
imgs/pointer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 347 B |
46
main.lua
Normal file
46
main.lua
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
---@diagnostic disable: undefined-global
|
||||||
|
Mousex = 0
|
||||||
|
Mousey = 0
|
||||||
|
Cursor = nil
|
||||||
|
Bgm = nil
|
||||||
|
Click = nil
|
||||||
|
Bckg = nil
|
||||||
|
|
||||||
|
|
||||||
|
function love.load()
|
||||||
|
Cursor = love.graphics.newImage('imgs/pointer.png')
|
||||||
|
Bckg = love.graphics.newImage('imgs/bckg.png')
|
||||||
|
|
||||||
|
|
||||||
|
Bgm = love.audio.newSource('bgm/dogs.wav')
|
||||||
|
Bgm:setLooping(true)
|
||||||
|
Bgm:play()
|
||||||
|
|
||||||
|
Click = love.audio.newSource('snd/click.wav')
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function love.draw()
|
||||||
|
love.graphics.draw(Bckg, 0, 0)
|
||||||
|
love.graphics.draw(Cursor, Mousex , Mousey)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function love.keypressed(key)
|
||||||
|
if key == "escape" then
|
||||||
|
love.event.quit()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function love.mousemoved(x, y)
|
||||||
|
Mousex = x
|
||||||
|
Mousey = y
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function love.mousepressed(x, y, button)
|
||||||
|
if button == 1 then
|
||||||
|
Click:play()
|
||||||
|
end
|
||||||
|
end
|
||||||
BIN
snd/click.wav
Normal file
BIN
snd/click.wav
Normal file
Binary file not shown.
Reference in New Issue
Block a user