69 lines
1.5 KiB
Lua
69 lines
1.5 KiB
Lua
-- s = Sprite("HelloWorldDemo/HelloWorld.png");
|
|
-- s.SetEffects(ImageEffects(100,-100,400,400));
|
|
-- f = Font("Hello World Font renderer");
|
|
-- f.SetPos(Vector(20,-150));
|
|
|
|
-- runProcess(function()
|
|
-- local isserver = false
|
|
-- local isclient = false
|
|
-- while true do
|
|
--
|
|
-- if(input.Press(string.byte('S'))) then
|
|
-- isserver = true
|
|
-- server = Server()
|
|
-- end
|
|
-- if(input.Press(string.byte('C'))) then
|
|
-- isclient = true
|
|
-- client = Client()
|
|
-- end
|
|
--
|
|
-- if(isserver) then
|
|
-- server.Poll()
|
|
-- end
|
|
-- if(isclient) then
|
|
-- client.Poll()
|
|
-- end
|
|
--
|
|
-- update()
|
|
-- end
|
|
-- end)
|
|
|
|
main.SetResolutionDisplay(true);
|
|
runProcess(function()
|
|
while true do
|
|
|
|
if(input.Press(VK_F11)) then
|
|
ReloadShaders("C:\\PROJECTS\\WickedEngine\\WickedEngine\\shaders\\")
|
|
end
|
|
|
|
if(input.Press(VK_F10)) then
|
|
s = SoundEffect("C:\\PROJECTS\\DXProject\\DXProject\\sound\\1.wav")
|
|
s.Play()
|
|
end
|
|
|
|
if(input.Press(VK_F4)) then
|
|
main.GetActiveComponent().SetPreferredThreadingCount(2);
|
|
end
|
|
if(input.Press(VK_F5)) then
|
|
main.GetActiveComponent().SetPreferredThreadingCount(3);
|
|
end
|
|
if(input.Press(VK_F6)) then
|
|
main.GetActiveComponent().SetPreferredThreadingCount(4);
|
|
end
|
|
|
|
if(input.Press(VK_F7)) then
|
|
runProcess(function()
|
|
local row = 16
|
|
for i = 1, row do
|
|
for j = 1, row do
|
|
LoadModel("../models/Stormtrooper/model.wimf",matrix.Translation(Vector(i*2-row,0,j*2-row)));
|
|
waitSeconds(0.05)
|
|
end
|
|
end
|
|
end)
|
|
end
|
|
|
|
|
|
update()
|
|
end
|
|
end) |