Node represent any game object that needs to have some transform available in the game itself. Everything that you see in the game is a Node, and some invisible things like the G.ROOM are also represented here.

类似与 Unity 中的 GameObject 概念,游戏中所有的物体都是 一个 node

Members of Node Class Description
ID ID tracker, every node has a unique ID
FRAME Frame tracker to aid in not doing too many extra calculations
ARGS
T Transform
CT Transform to use for collision detection
config
click_offset
hover_offset
create_on_pause
states visable / collide / focus / hover / click / drag / release_on
container
children
T Transform
x x position
y y position
w width
h height
r rotation
s scale
Methos of Node Class Description
init
draw_boundingrect DEBUG
draw
collides_with_point
set_offset 修改 click_offset 和 hover_offset
drag
can_drag
stop_drag
hover
stop_hover
put_focused_cursor
set_container
translate_container
remove 安全删除 Node 节点
fast_mid_dist 和另一个 Node 节点矩形中点的距离
release 类似纯虚函数,等待被重写
click 同上
animate 同上
update 同上

Notes