xref: /aosp_15_r20/development/samples/Snake/_index.html (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<p>This is an implementation of the classic Game "Snake", in which you control a
2*90c8c64dSAndroid Build Coastguard Workerserpent roaming around the garden looking for apples. Be careful, though,
3*90c8c64dSAndroid Build Coastguard Workerbecause when you catch one, not only will you become longer, but you'll move
4*90c8c64dSAndroid Build Coastguard Workerfaster. Running into yourself or the walls will end the game..</p>
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>This code demonstrates how to create custom View layouts and
7*90c8c64dSAndroid Build Coastguard Workerrequest draws to the screen. A great example of a basic game that does not
8*90c8c64dSAndroid Build Coastguard Workerrequire a fast framerate.</p>
9*90c8c64dSAndroid Build Coastguard Worker
10*90c8c64dSAndroid Build Coastguard Worker<img alt="" src="../images/Snake.png" />
11