23 lines
305 B
Markdown
23 lines
305 B
Markdown
ui system
|
|
game system
|
|
|
|
seperated
|
|
|
|
simple, minimalistic solution
|
|
|
|
mousepressed = window.mousepressed(self, function(self,x, y, button)
|
|
end)
|
|
|
|
draw = window.draw(self, function (self)
|
|
end)
|
|
|
|
update
|
|
|
|
- game
|
|
+ screen
|
|
+ items
|
|
+ log
|
|
|
|
- node
|
|
+ x, y, width, height,
|
|
+ draw, update, mousepressed
|