xy2_

true

Jan 9th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <true> final boss is probably base.asm, looking
  2. <true> yeah it looks like a pattern
  3. <true> simple state machine
  4. <true> grenade and lasers is dependent on idle time, and this value is decremented to determine what to do
  5. <true> grenade first, lasers second
  6. <true> if the boss walks then it increses this value, so it can throw grenades
  7. <true> otherwise if the boss doesn't walk it will only laser
  8. <true> I haven't seen the boss so hopefully this makes sense / is helpful to you?
  9. <xy2_> that's huge, thanks
  10. <xy2_> the laser is the important one, since it's unavoidable (you are stuck out of bounds)
  11. <true> it increments once per pass which is probably once per frame, so starting from end of laser which sets 30, it needs to move 20 frames before it can grenade again
  12. <true> it takes 30 frames from grenade before it lasers
  13. <true> of standing still
  14. <true> er, sorry, I might be wrong about that
  15. <true> let me look at the code a bit more
  16. <true> yeah sorry, it works differently for the state transitions
  17. <true> for timings I mean, the timers are set when states are changed
  18. <true> the boss spawms other enemies?
  19. <xy2_> y
  20. <xy2_> spiders
  21. <true> yeah I see that. looks like it does that first
  22. <true> looks like it can spawn fatzombie too
  23. <xy2_> yeah
  24. <xy2_> that's an important spawn, spiders are irrelevant
  25. <true> ok there is probably a way to manipulate it
  26. <true> let me find out
  27. <true> it might be determined on distance between player and boss though
  28. <true> can't find the label that is being jumped to
  29. <true> ah it is random, 1 in 8 it looks like
  30. <xy2_> how is it decided?
  31. <true> during spawn phase, it will spawn an enemy
  32. <true> if rand mod 8 is 0 I think it will spawn a fatzombie
  33. <true> haven't analyzed rand function yet
  34. <true> the random value returned by the function is not actually very random; whenever it is called it will return a deterministic value
  35. <true> there actually might be two parts - a random and a generator value
Advertisement
Add Comment
Please, Sign In to add comment