Thank you Jesus Christ.
For all the life.
Stage
AlternatingSide
TurtleEntity
x
y
hp
crawl (boolean)
hurtmode
BirdEntity (arrayed)
x
y
flightmode
flightleft
destx
desty
MarkovMode
hp (value: 1)
TurtleEntity.mouseover: moveturtle = true
drawhitbox & scan BirdEntity array: flightmode = -30 (+1 animate to -1 = dead)
BirdEntity.move: near Turtle: flash turtle, flightmode = flee
While 1
Alg: When Draw bad bird = 1 :
AlternatingSide,
RandomX
Random Destx, Random Desty
Loop BirdEntity
If flightleft > 0:
If flightmode = Move:
Markov "Towards" Destx/Desty
Flightleft - 1
If flightleft = 0:
If flightmode = Laser:
Fire laser
Flightmode = flee
If flightmode = Move:
flightmode = laser
flightleft = X
End While
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment