-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
27 lines (23 loc) · 744 Bytes
/
main.lua
File metadata and controls
27 lines (23 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
loadtexture("asset/title_elyoko.png")
loadplanetexture("title_elyoko.png") -- use loaded texture for create plane textured model
require("lib.towers")
require("lib.math")
--towers_add(10,0,0)
--towers_add(40,0,0)
loadmodel("asset/huki.glb")
camerasetpos(0,2,-10)
function help_message(x,y)
text("wasd / left gamepag stick for move ",x,y,20,color(255,255,255))
text("arrow / mouse / right gamepad stick for rotate camera",x,y+18,20,color(255,255,255))
end
function ELYOKO2D()
local x,y = mouse()
rect(3,3,990,60,color(0,0,0))
help_message(23,10)
circle(x,y,5,color(255,255,255))
end
function ELYOKO3D()
towers_draw()
drawmodel("title_elyoko.png",0,6,10,torad(90),0,torad(180),0.25)
drawmodel("huki.glb",0,0,0,0,0,0,15)
end