diff --git a/README.md b/README.md index 79e903f..2a8f4bf 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # LoveDOS-Dungeon-Crawler -A dungeon crawler game made with LoveDOS for the DOSember Game Jam https://itch.io/jam/dosember-game-jam \ No newline at end of file +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) +- [] diff --git a/bgm/dogs.wav b/bgm/dogs.wav new file mode 100644 index 0000000..add4a69 Binary files /dev/null and b/bgm/dogs.wav differ diff --git a/imgs/bckg.png b/imgs/bckg.png new file mode 100644 index 0000000..b137ed2 Binary files /dev/null and b/imgs/bckg.png differ diff --git a/imgs/pointer.png b/imgs/pointer.png new file mode 100644 index 0000000..58c7c82 Binary files /dev/null and b/imgs/pointer.png differ diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..5bf8aaf --- /dev/null +++ b/main.lua @@ -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 diff --git a/snd/click.wav b/snd/click.wav new file mode 100644 index 0000000..732985a Binary files /dev/null and b/snd/click.wav differ