testing a ecs

This commit is contained in:
Hartmut Seichter 2020-11-24 23:54:49 +01:00
parent 47d28b4f1e
commit 8915080b64
20 changed files with 20419 additions and 101 deletions

View file

@ -14,10 +14,10 @@ w.visible = false
w.title = "pixwerx 0.1"
-- set size
--w.size = pw.size.new(640,480)
w.size = pw.size.new(640,480)
-- move window
--w.position = pw.point.new(100,100)
w.position = pw.point.new(100,100)
print("client size after resize: ",w.client_size.width,w.client_size.height)
@ -32,7 +32,6 @@ end
w.on_update = function(self)
pl:draw()
-- print("test on update",w.position.x,w.position.y,pw.time.now)
end
-- show all displays
@ -51,6 +50,11 @@ while w:update() do
w.fullscreen = not w.fullscreen
end
-- keycode for quit
if (pw.input.get().input_string == 'q') then
break;
end
-- just to check
if (pw.input:get().mouse_button == 1) then
print("elapsed",t.elapsed)