AttoSnake - 509 bytes
A Snake game which aims to be as small in filesize as possible, while retaining fun and playability.
It's still just as playable! The input is tidy, not delayed, and fun to play with and best of all, there are NO glitches (that I'm aware of.) To quit, just chuck in a KeyboardInterrupt or crash into yourself. It WILL NOT quit neatly in IDLE, unfortunately. It was a tradeoff for less bytes. Enjoy! For other snakers: use & lt; and & rt; for angular brackets (no spaces after &) Use this to make your code HTML friendly! Apologies: pygame thought some of the angular brackets were tags. FIXED NOW. The code you see below can be copied and pasted into your favourite editor and run as a python file as-is. Thanks for playing!
- Inverted colours to save one byte
- Used some lambda functions for repeated functions
- Deleted some variables
- Shorted some variables
- Changed the way directions are calculated for less bulk
- Removed newly found redundancies
- Home Page