--- /dev/null
+-- assets.lua
+-- Asset storage
+
+-- You need a cuneiform font for this one
+IntroMessage = "\nπ©ππΌπ―ππΆπ¨π\nππ§π π²\nπ£π΅"
+
+local assets = {}
+
+AssetClass =
+{
+ Image = 1,
+ Font = 2,
+ AudioSource = 3,
+}
+
+local AssetTables = {}
+for k,v in pairs(AssetClass) do
+ table.insert(AssetTables, {})
+end
+
+function assets.store_font(name, path, font_size)
+ local new = love.graphics.newFont(path, font_size)
+ AssetTables[AssetClass.Font][name] = new
+end
+
+function assets.get_font(name)
+ return AssetTables[AssetClass.Font][name]
+end
+
+function assets.store_source(name, path, source_type)
+ AssetTables[AssetClass.AudioSource][name] = love.audio.newSource(path, source_type)
+end
+
+function assets.get_source(name)
+ return AssetTables[AssetClass.AudioSource][name]
+end
+
+assets.store_font("Cuneiform16", "assets/SantakkuM.ttf", 36)
+assets.store_source("intro", "assets/Intro.wav", "static")
+assets.store_source("transition1", "assets/transition1.wav", "static")
+
+return assets
--- /dev/null
+-- conf.lua
+-- All shared configuration options
+
+local config = {}
+
+-- Members of this table should conform to the config scheme described at https://www.love2d.org/wiki/Config_Files
+-- and will be automatically passed to Love in the callback below
+config.window =
+{
+ width = 800,
+ height = 600,
+ title = "title",
+ fullscreen = false
+}
+
+function love.conf(t)
+ for k,v in pairs(config.window) do
+ t.window[k] = v
+ end
+end
+
+return config
+-- main.lua
+
+local conf = require('conf')
+local assets = require('assets')
+
function love.load()
+ love.graphics.setFont(assets.get_font('Cuneiform16'))
+ love.audio.play(assets.get_source("intro"))
end
function love.update(delta_time)
end
function love.draw()
+ love.graphics.print(IntroMessage, math.floor((conf.window.width/16) * 1), math.floor((conf.window.height/16) * 1))
end