update:
-petitfatfs (you should extract the .DAT-Files at the root of your SD-Card - be sure, its UPPERCASE, i dont know, how petitfatfs handles lowercase)
-collision detection with opponents
-ingame menu with track-selection
tested with Simbuino (again: great tool
), and Gamebuino with original SD-Card
Straight and Hills are for testing mostly. Lanes, Curves and Mockup are playable (sort of). "Mockup" (TRACK.DAT) has to be unlocked by getting at least 3rd place at Curves.
Data format of the dat-files is:
at least 10070 segments (10000 for travel-distance and 70 for lookahead)
each segment contains of 4 bytes (chars): curvature height lanes signs
where
curvature: something between -8..8 should work
height: -3 .. 3 or so
lanes: 0..2 (will become 1..3 ingame)
signs:
1: sign_right
2: sign_left
3: lane getting smaller
its getting closer to finish, but it still has no name
Should i keep "little racer" ?
todo: at least eeprom & some tracks.
//edit: attached a zip of a SD-Card image to test with Simbuino
- Attachments
-
- SDCard2.zip
- SD-Card image with tracks for use in Simbuino
- (194.71 KiB) Downloaded 775 times
-
- rproto6.zip
- (31.47 KiB) Downloaded 757 times
Last edited by
Sutchig on Fri Mar 25, 2016 7:37 pm, edited 1 time in total.