things are coming together Tons of stuff left to do tho
This commit is contained in:
parent
dcd7a20c14
commit
abf90042e7
38
.vscode/launch.json
vendored
Normal file
38
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Pure Lua",
|
||||||
|
"type": "lua",
|
||||||
|
"request": "launch",
|
||||||
|
"projectDir": "${workspaceRoot}",
|
||||||
|
"clientIndex": "1",
|
||||||
|
"program": "${workspaceRoot}/test.lua",
|
||||||
|
"luaexe": "C:/Program Files (x86)/Lua/5.1/lua.exe"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SimpleLua 2",
|
||||||
|
"type": "lua",
|
||||||
|
"request": "launch",
|
||||||
|
"projectDir": "${workspaceRoot}",
|
||||||
|
"clientIndex": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SimpleLua 3",
|
||||||
|
"type": "lua",
|
||||||
|
"request": "launch",
|
||||||
|
"projectDir": "${workspaceRoot}",
|
||||||
|
"clientIndex": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "lua",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Launch",
|
||||||
|
"projectDir": "${workspaceRoot}",
|
||||||
|
"program": "./love.exe",
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.classpath": true,
|
||||||
|
"**/.project": true,
|
||||||
|
"**/.settings": true,
|
||||||
|
"**/.factorypath": true
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
OpenAL32.dll
Normal file
BIN
OpenAL32.dll
Normal file
Binary file not shown.
66
Visual Novel/VNCore.lua
Normal file
66
Visual Novel/VNCore.lua
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
return {
|
||||||
|
init = function(frame, parseManager, multi)
|
||||||
|
frame.Visibility = 0
|
||||||
|
local workspace = frame:newImageLabel(nil,"Workspace", 0,0,0,0,0,0,1,1)
|
||||||
|
workspace.Color = Color.Green
|
||||||
|
local HUD = frame:newFullFrame("HUD")
|
||||||
|
local go = false
|
||||||
|
HUD.Visibility = 0
|
||||||
|
local handle = parseManager:load("init.dms")
|
||||||
|
handle:define{
|
||||||
|
sleep = thread.sleep
|
||||||
|
}
|
||||||
|
local chat = HUD:newTextLabel("","",0,0,0,0,.5/40,31/40,39/40,1/5)
|
||||||
|
local name = chat:newTextLabel("Name","Name",0,0,80,0,0,-1.165/5,0,1/5)
|
||||||
|
name.Visible = false
|
||||||
|
name:fitFont()
|
||||||
|
name:widthToTextSize()
|
||||||
|
name:setRoundness(6,6,180)
|
||||||
|
local disp = chat:newTextLabel("","",15/2,15/2,-15,-15,0,0,1,1)
|
||||||
|
disp.TextFormat = "left"
|
||||||
|
disp.Font = name.Font
|
||||||
|
disp.Visibility = 0
|
||||||
|
disp.BorderSize = 0
|
||||||
|
chat:setRoundness(15,15,180)
|
||||||
|
workspace:OnReleased(function(b,self)
|
||||||
|
if b == "l" then
|
||||||
|
go = true
|
||||||
|
else
|
||||||
|
HUD.Visible = not HUD.Visible
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
parseManager.print("\n"..handle:dump())
|
||||||
|
handle.__TEXT = function(text) -- change the default text stuff
|
||||||
|
local pan = false
|
||||||
|
local n,txt = text:match("([%w ]+):(.+)")
|
||||||
|
if n then
|
||||||
|
text = txt
|
||||||
|
name.text = n
|
||||||
|
name:widthToTextSize()
|
||||||
|
name.Visible = true
|
||||||
|
end
|
||||||
|
multi:newThread("UpdateText",function()
|
||||||
|
disp.text = ""
|
||||||
|
for i in text:gmatch(".") do
|
||||||
|
disp.text = disp.text .. i
|
||||||
|
thread.sleep(.05)
|
||||||
|
if go then disp.text = text go = false pan = true break end
|
||||||
|
end
|
||||||
|
pan = true
|
||||||
|
go = false
|
||||||
|
end)
|
||||||
|
thread.hold(function()
|
||||||
|
return pan
|
||||||
|
end)
|
||||||
|
pan = false
|
||||||
|
end
|
||||||
|
multi:newThread("Runner",function()
|
||||||
|
local active = true
|
||||||
|
while true do
|
||||||
|
thread.skip()
|
||||||
|
active = handle:think()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
return frame
|
||||||
|
end
|
||||||
|
}
|
||||||
@ -1,6 +1,12 @@
|
|||||||
ENTRY init
|
ENTRY init
|
||||||
[init]{
|
[init]{
|
||||||
"Hi!"
|
"Ryan: Hi!"
|
||||||
"hmm..."
|
"hmm..."
|
||||||
"wait!"
|
"wait!"
|
||||||
|
"Bob: What are you talking about?"
|
||||||
|
"Ryan: I forget tbh..."
|
||||||
|
"Bob: but you just told me how important this was!"
|
||||||
|
"Ryan: did I? Damn my memory is really bad..."
|
||||||
|
"Bob: maybe you should see a doctor."
|
||||||
|
"Ryan: That might be a good idea..."
|
||||||
}
|
}
|
||||||
@ -4,33 +4,10 @@ local bin = require("bin")
|
|||||||
GLOBAL,sThread = require("multi.integration.loveManager").init()
|
GLOBAL,sThread = require("multi.integration.loveManager").init()
|
||||||
require("GuiManager")
|
require("GuiManager")
|
||||||
require("parseManager")
|
require("parseManager")
|
||||||
local handle = parseManager:load("init.dms")
|
|
||||||
handle:define{
|
|
||||||
sleep = thread.sleep
|
|
||||||
}
|
|
||||||
local disp = gui:newTextLabel("","",0,0,200,100)
|
|
||||||
local go = false
|
|
||||||
disp:OnReleased(function()
|
|
||||||
go = true
|
|
||||||
end)
|
|
||||||
parseManager.print(handle:dump())
|
|
||||||
handle.__TEXT = function(text)
|
|
||||||
disp.text = text
|
|
||||||
thread.hold(function()
|
|
||||||
return go
|
|
||||||
end)
|
|
||||||
go = false
|
|
||||||
end
|
|
||||||
multi:newThread("Runner",function()
|
|
||||||
local active = true
|
|
||||||
while true do
|
|
||||||
thread.skip()
|
|
||||||
active = handle:think()
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
function love.update()
|
function love.update()
|
||||||
multi:uManager()
|
multi:uManager()
|
||||||
end
|
end
|
||||||
multi.OnError(function(...)
|
multi.OnError(function(...)
|
||||||
print(...)
|
print(...)
|
||||||
end)
|
end)
|
||||||
|
VNCore = require("VNCore").init(gui:newFullFrame("Main"), parseManager, multi)
|
||||||
|
|||||||
BIN
mpg123.dll
Normal file
BIN
mpg123.dll
Normal file
Binary file not shown.
BIN
msvcp120.dll
Normal file
BIN
msvcp120.dll
Normal file
Binary file not shown.
BIN
msvcr120.dll
Normal file
BIN
msvcr120.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user