initial commit

This commit is contained in:
Jayden Khan 2026-05-20 17:49:54 -07:00
parent 356a38a302
commit bd4b2f2345
6 changed files with 65 additions and 0 deletions

10
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,10 @@
{
"Lua.workspace.library": [
"${addons}/love2d/module/library"
],
"Lua.runtime.version": "LuaJIT",
"Lua.runtime.special": {
"love.filesystem.load": "loadfile"
},
"Lua.workspace.checkThirdParty": false
}

11
conf.lua Normal file
View File

@ -0,0 +1,11 @@
-- conf.lua
function love.conf(t)
t.window.title = "engine"
t.window.width = 1024
t.window.height = 680
t.window.resizable = true
t.window.minwidth = 640
t.window.minheight = 480
t.version = "11.4"
t.console = true -- shows console output on Windows
end

27
editor/ui.lua Normal file
View File

@ -0,0 +1,27 @@
local ui = {}
ui.theme = {
bg = {0.13, 0.13, 0.14},
panel = {0.17, 0.17, 0.19},
border = {0.28, 0.28, 0.30},
borderwidth = 3,
text = {0.90, 0.90, 0.90},
text_dim = {0.50, 0.50, 0.55},
accent = {0.27, 0.52, 0.90},
hover = {0.22, 0.22, 0.25},
active = {0.20, 0.40, 0.75},
}
function ui.panel(x, y, w, h)
love.graphics.setColor(ui.theme.panel)
love.graphics.rectangle("fill", x, y, w, h)
love.graphics.setColor(ui.theme.border)
love.graphics.setLineWidth(ui.theme.borderwidth)
love.graphics.rectangle("line", x, y, w, h)
end
function ui.button()
end
return ui

13
main.lua Normal file
View File

@ -0,0 +1,13 @@
local ui = require("editor.ui")
function love.load()
end
function love.update(dt)
end
function love.draw()
ui.panel(50,50,50,50)
end

2
run.bat Normal file
View File

@ -0,0 +1,2 @@
@echo off
love .

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
love .