JoshuaKGoldberg / Old-Deleted-FullScreenMario

An HTML5 remake of the original Super Mario Brothers - expanded for wide screens.
2.98k stars 881 forks source link

Added random movements to Cheep Cheeps, this also keeps them on the screen better #122

Closed blamonet closed 9 years ago

blamonet commented 10 years ago

I don't know if you'd like to add this or not, but this keeps it a little more true like the game with the random movements of the fish. Also it makes it so they don't float out of the water or through the floor. The random movement is a little jerky though and could be improved upon.

JoshuaKGoldberg commented 10 years ago

Ah I like the idea but setting them to a random velocity each turn seems odd, they'll on average just go straight forward.

blamonet commented 10 years ago

Yeah it's not a clean way of doing it, almost needs a random timer to change their direction and also a better way to change x and y's velocities in a way that makes for fluid movement of the character to mimic what the original game did. The way I did it was a hackish way of doing it, but I was just messing around. hah