Page 1 of 3

[RELEASED]Untitled Little Racing Game aka B-Rally

PostPosted: Tue Mar 08, 2016 4:26 pm
by Sutchig
after waiting some time, i made a little racing game (started around Christmas)...

Status is not nearly alpha... its more like a PoC :), as i have only half a hour per day.
But: its playable, has opponents and has a gameover-screen :P

HEX-File is attached, Screenshot too.

Usage:
A - accelerate
B - brake
Left/right - left/right

ToDo:
-Track is only a MockUp, want to use PetitFatFS to stream the track on-the-fly from SD-Card.
-more Signs
-collision detection
-simple AI for opponents
-tuning of driving parameters (lower the increase of speed at higher speeds for instance)
-....

Idea of Pseudo3D-Road is from http://www.extentofthejam.com/pseudo/
Idea of grey floor is from IsleOfManiax :)

Edit:
ForumThread: viewtopic.php?f=17&t=3407

Re: [WIP]Untitled Little Racing Game

PostPosted: Wed Mar 09, 2016 7:53 am
by clement
Very nice POC.

:geek:

Re: [WIP]Untitled Little Racing Game

PostPosted: Thu Mar 10, 2016 9:05 am
by clement
some return :

The game is too fast, I cant anticipate the turn, and I cant see other cars.

In my gamebuino the road and gray floors are not so differente. Maiby the constrast in my gamebuino is not good?

otherwise good work man!

+++

Re: [WIP]Untitled Little Racing Game

PostPosted: Thu Mar 10, 2016 8:19 pm
by Sutchig
Many thanks for your feedback :)

following things are changed (i edited the first post and uploaded a new zip file):
-game speed is slower (est. 2/3 of original speed)
-opponents are slower, too - but not 2/3 ;)
-decreased acceleration (it takes longer to reach max speed)
-changed track mock-up: curves are not that "curvy" anymore, sign slightly ahead of curves

Hope, this is better :)

I forgot: added cpu usage
And contrast (grey) is fine with my gamebuino

Re: [WIP]Untitled Little Racing Game

PostPosted: Sat Mar 12, 2016 7:13 am
by clement
It very good.

I can see opponent, and I finish 6!

The gameover screen is prety good ;) !

I change the contrast on my gamebuino and the grey is Good.

I can t wait to see next step.

You plan to share source-code?

++

Re: [WIP]Untitled Little Racing Game

PostPosted: Sat Mar 12, 2016 8:36 pm
by Sutchig
only "little" changes...
Switched the background-routine from drawBitmap() to a selfmade routine, which just copies the sprite in the screenbuffer (basically)
gained 10% CPU usage :)

Now each opponent has its own sprite. I used this for a little number above the car - its like to display the place of the car in front of you.

Background should shake, if you're offroad- in Simbuino it doesnt look nice :( but i have right now not the possibility to test this on real GB.
(My son is sleeping now, and therefore the time is over ;) )

I dont know about the very next steps. Maybe petitfatfs (hard to test) or adding gamestates and maybe an ingame menu (thats why i startet V5)
Ingame-Menu and petitfatfs (with seperate tracks) would give the possibility to use dedicated test tracks - curves, hills, sprites etc...

of course, source will uploaded to github :)

//Edit: Background-shake should work now :)

Re: [WIP]Untitled Little Racing Game

PostPosted: Tue Mar 15, 2016 11:52 am
by clement
I finish 2 :).
The game need à timer for start race (3,... 2,... 1,.... Gooooo)

Re: [WIP]Untitled Little Racing Game

PostPosted: Tue Mar 15, 2016 8:09 pm
by Sutchig
Great idea!!!! :)
Something like in attachment?
countdown.gif
countdown.gif (53.19 KiB) Viewed 15978 times

Re: [WIP]Untitled Little Racing Game

PostPosted: Sun Mar 20, 2016 8:39 pm
by Sutchig
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

Re: [WIP]Untitled Little Racing Game

PostPosted: Sun Mar 20, 2016 9:39 pm
by superfreaky
Buino Rally (sorry, the best I could come up with)