Skip to content

u/viperld

In this archive from Jan 2020 to Jan 2020

1
posts
0
comments
0
media
4
score

2d boss state machine architecture

i’ve got a boss with states and phases. my basic idea is states as enums and tick methods, phases as enums and arrays of state sequences (as the GDQuest pro course more or less describes), and events as enums of interruptions (ex: hurt by player early jump to next phase). i’d have a goto_next_state(...

4 points1 comments
Open on Reddit

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.