Timeline for SDL2 C++ How to make enemy move in random directions
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 27, 2020 at 7:55 | comment | added | Benjamin Danger Johnson | Adding a vector2 struct is definitely a good for keeping things organized and easier to develop. Adding breaks to the original switch should fix the original bug too. It looks like the result of switch on Rand was: Rand 0: x = x + 10 - 10, y = y + 10 - 10 (or x = x , y = y) Rand 1: x = x - 10 , y = y + 10 - 10 (or x -= 10, y = y) Rand 2: x = x , y = y + 10 - 10 (or x = x, y = y) Rand 3: x = x , y = y + 10 (or x = x, y = y + 10) As a result stuff could only move in the left (x - 10) and down (y + 10). | |
S Feb 26, 2020 at 22:02 | history | suggested | Glorfindel | CC BY-SA 4.0 |
grammar corrections
|
Feb 26, 2020 at 15:46 | review | Suggested edits | |||
S Feb 26, 2020 at 22:02 | |||||
Feb 17, 2020 at 5:25 | review | First posts | |||
Feb 25, 2020 at 11:31 | |||||
Feb 17, 2020 at 5:22 | history | answered | Mario1159 | CC BY-SA 4.0 |