aboutsummaryrefslogtreecommitdiff
path: root/games/snake.c
AgeCommit message (Collapse)Author
2019-05-21Review sample gamesRay
2018-08-13Games: Snake: Fixes snake head collision with fruitJoseph-Eugene Winzer
CheckCollisionRecs() returns true on edge-collision what means that the snake eats the fruit when colliding with it but also when sliding by one unit above or below the fruit.
2018-08-13Games: Snake: Fixes fruit spawn positionJoseph-Eugene Winzer
If the initial fruit position collides with the snake's body a new position for the fruit is generated but without adding the grid offset.
2018-03-16Allow use of main instead of android_mainAhmad Fatoum
Inspired by #504. Instead of requiring the user to do PLATFORM_ANDROID #ifdefery, have the android_main entry point exported by raylib and call the user-defined main. This way many games could (in theory) run unmodified on Android and elsewhere. This is untested!
2017-10-22Updated Makefile to support AndroidRay
2016-02-20Reorganized games folderraysan5
Simplified to match raylib installer package folder structure