Snake game for a 5x5 LED matrix
bodyPiece.h@0:dc906408980e, 2013-10-09 (annotated)
- Committer:
- dhamilton31
- Date:
- Wed Oct 09 16:23:20 2013 +0000
- Revision:
- 0:dc906408980e
- Child:
- 1:5fcb94bb03db
Snake movement completed, along with options to turn LEDs on and off with ledCube class.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dhamilton31 | 0:dc906408980e | 1 | #ifndef __BODYPIECE_H__ // if x.h hasn't been included yet... |
dhamilton31 | 0:dc906408980e | 2 | #define __BODYPIECE_H__ // #define this so the compiler knows it has been included |
dhamilton31 | 0:dc906408980e | 3 | |
dhamilton31 | 0:dc906408980e | 4 | |
dhamilton31 | 0:dc906408980e | 5 | class bodyPiece{ |
dhamilton31 | 0:dc906408980e | 6 | public: |
dhamilton31 | 0:dc906408980e | 7 | char currRow, currCol; |
dhamilton31 | 0:dc906408980e | 8 | }; |
dhamilton31 | 0:dc906408980e | 9 | |
dhamilton31 | 0:dc906408980e | 10 | #endif // __BODYPIECE_H__ |