[Game]Racers [wip]

Racers is a basic-arcade racing game.
Concept:

This game will contain:

  • 100 differend cars
  • shop system to gain more cars
  • garage to choose cars

List of the cars. Any ideas for more vehicles? (the red ones will be replaced)

This game will maybe contain:

  • diferent tracks
  • more gamemodes
  • some kind of 2 player game

Latest version: Racer A 1.2.bin (46,6 KB)

You will be in the credits if you help :heart_eyes:

10 Likes

transparent is like this: game.display.invisiblecolor = 16; this sets the 16th color of your pallet to transparent.

you could greatly optimize your car sprites with game.display.rotatePalette(int amount)
also you can segment your sprite into multiple parts since you reuse the tires and bumpers

for more information check out the tutorials

1 Like

Reminds me of one of the most underrated GBA games:

Penny Racers

reminds me more of gameboy v-rally


but i remember it in less colors

Looking cool. I donĀ“t know what you had expected, but it will looks like this :sweat_smile::

@adekto Thank you! This picture is made with the invisible color in the first version of the game. It was really so easy? I would never have found it out on my own :grin:.

1 Like

Thatā€™s what I was expecting.
Itā€™s the unlocking cars mechanic that made me think of Penny Racers.

1 Like

heres a visual representation how you could possibly do the car recolouring with the offset

Finally! Some progress!

  • Cars are working know
  • Collison with other cars work --> Game Over

To do:

  • Score counter is IN the background bitmap, how to fix it?
  • cars are sometimes within other cars
    EDIT:
    Fixed. I was drawing the counter with a wrong color & timed the cars to fast.

Btw: IĀ“m using these for the cars :yum:

4 Likes

@jonne or anybody else :sweat_smile:: Could you try this on HW please? It would be awesome if it works!
EDIT: Removed

@Zuzu36 its just drawing Hello World!

try using mbed, its the easiest way to compile i find

Sorryā€¦ That was really not that what it should do :confused:
The easiest way for my is CODE::BLOCKS
I know theres an compiler command to do this (wich one is it? Do you know it :hugs:)

@Zuzu36: you can compile your indentical source code in:

  • Code::Blocks to make a PC executable
  • in EmBitz offline compiler to create a Pokitto Binary
  • in mbed onlinde compiler to create a Pokitto Binary

To create a Pokitto binary, all you need to do is:

  1. go to https://os.mbed.com/account/login/?next=/accounts/login/ and create an account
  2. go to https://os.mbed.com/teams/Pokitto-Community-Team/code/HelloWorld/ and press ā€œImport Into Compilerā€
  3. Go to main.cpp, and replace ā€œHello Worldā€ code with your own code
  4. Press ā€œcompileā€ in the online compiler

ā€¦ and you have a Pokitto Binary

EDIT: come to the mbed cloud, make an account, and I will walk you through the steps

3 Likes

Whats wrong?!
In the Sim all my codes work and on Mbed are still errors? How is this possible?
It seems you need to help my again @jonne :wink:

Different versions of C++ standard. Code::Blocks & emBitz is C++11, mbed online is older C++98

in C++11 you can do this:

short x=0; //declaration and initialization to zero

in C++98 (mbed online) you must do this:

short x; //declaration
x=0; //initialization
2 Likes

Racers.bin (45,7 KB)

I hope it works, this time it is the right .bin. If anybody wantĀ“s to try it out please :slight_smile:

1 Like

Iā€™m glad someone asked something that caused this to be brought up.
Not having C++11 support is a major pitfall.

1 Like

Yes, itĀ“s complicaded especially for beginners, but hey! ItĀ“s (hopefully) working!

Yep, it works on the hardware. The colors really pop on the screen.


Hereā€™s my thoughts on the game so far:

  • Changing lanes feels responsive and smooth. I like that you can change your mind and switch back into your original lane before you move all the way into the other lane.
  • The game feels like it already has potential to be fun and addictive with some gameplay tweaks.
  • There are currently way too many cars that spawn, and they appear too close together. It happens too often that I get trapped by a random formation of cars that I had no way to predict. It feels like getting a good high score is up to random luck.
  • The car moves between lanes a bit too slow for my taste. It makes it harder to get that feeling of weaving between cars at high speed, because I usually canā€™t make it one or two lanes over in a tight gap before getting hit.
  • Maybe it would be nice to be able to move forward and backward, as well as change lanes? Iā€™m not sure about this, but I was wondering if it might give more options.
  • Maybe you could animate the road and lane markers too, to make it look more like youā€™re driving fast. I like the look of the track, but since it doesnā€™t move it kind of looks like your car is standing still and the other cars are driving backwards right now.

Anyway, I know youā€™re planning to add more to the game, so I figure this is still in-progress. Good job so far, looking forward to more.

4 Likes

First, thank you for testing @wuuff!
I donā€™t know whats wrong the timing, in SIM all works good (Is HW locked to max. 30 FPS?)
Moving tracks will be added in next update!

4 Likes

hardware is less then 30fps, and depending on what graphics mode or how much stuff your drawing or computing can slow down dramatically.
cant really give you a correct frame count

1 Like