Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/api/state.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Contributors outside of DragonRuby who also hold Copyright:
#Carlo Sefcek (Shatzune)

# State (`args.state`)

`args.state` is a property bag that can be used to hold state for your
Expand Down Expand Up @@ -36,7 +39,7 @@ def tick args
args.outputs.labels << {
x: 640,
y: 360,
text: "player's x, y: #{args.state.player.x}, #{args.state.player.x}",
text: "player's x, y: #{args.state.player.x}, #{args.state.player.y}",
anchor_x: 0.5,
anchor_y: 0.5
}
Expand Down