Browse Source

Display a background with a text

master
Olivier DOSSMANN 3 years ago
parent
commit
514baf9508
5 changed files with 22 additions and 0 deletions
  1. BIN
      assets/Pond_in_Proteus.png
  2. BIN
      assets/Pond_in_Proteus_1024-800.png
  3. +8
    -0
      conf.lua
  4. +2
    -0
      main.lua
  5. +12
    -0
      menu.moon

BIN
assets/Pond_in_Proteus.png View File

Before After
Width: 1920  |  Height: 1080  |  Size: 146 KiB

BIN
assets/Pond_in_Proteus_1024-800.png View File

Before After
Width: 1024  |  Height: 800  |  Size: 150 KiB

+ 8
- 0
conf.lua View File

@ -0,0 +1,8 @@
-- Set windows size and add a title
function love.conf(t)
t.title = "Menu displayer"
t.version = "0.10.2"
t.window.height = 800
t.window.width = 1024
t.window.resizable = true
end

+ 2
- 0
main.lua View File

@ -0,0 +1,2 @@
require 'moonscript'
require 'menu'

+ 12
- 0
menu.moon View File

@ -0,0 +1,12 @@
homeBackground = nil
-- Load elements. What did you expect?!
love.load = (arg) ->
homeBackground = love.graphics.newImage "assets/Pond_in_Proteus_1024-800.png"
-- Display Hello World
love.draw = ->
--love.graphics.print "Hello World!", 400, 300
love.graphics.draw homeBackground, 0, 0
love.graphics.print "Hello World!", love.graphics.getWidth() / 2, love.graphics.getHeight() / 2

Loading…
Cancel
Save