New game - Boris goes skiing

@sones,

Your game is using only a little over half of the available program space. Why are you using boot() to eliminate the boot logo? Why not use begin() to retain all the boot features?

Just while I was testing the start up screen coming on, I was adjusting it lots so cut the boot logo to save time, I simply forgot to put it back.

Just put arduboy.begin(); back and now have 2 images at the same time, will play again tomorrow.

During development, you can leave the boot logo in, then to save time you can press the RIGHT button to abort it.

Also, you’re currently forcing audio on and there’s no way to turn it off to play the game silently. If you use begin() (or remove arduboy.audio.on(); and add arduboy.systemButtons() and arduboy.audio.begin() after boot()), then users will be able to enable or mute the sound using the B buttion during power up.

1 Like

Ah thanks, will do, I was wondering how I could turn audio off, Great!

Add arduboy.clear(); after arduboy.begin();

void setup()
{
  arduboy.begin();
  arduboy.clear();
  Serial.begin(9600);
// etc....

You should’ve done Boris Goes On a Zip wire, and gets stuck lol.

Lol… That’s next :wink:

Great job @sones.

I take it version 1.0 means we will be seeing the ‘Frogger’ part of Borace Goes Skiing in Version 2.0 ?

Eventually yes, I have the images done, but you know how long this took.
Can’t thank you enough for teaching me buddy, this is so much fun.

2 Likes

Could you please put in a sound toggle? I’d like to play it on the bus without annoying everyone?

Will do, it’s on my list :wink:

1 Like

If @sones makes my proposed change of using begin() and clear() in place of boot() and all the other calls between it and Serial.begin(9600); then you will be able to toggle sound using the “system control” boot up feature:

You hold the B button while powering up, then while still holding B, press UP to enable sound or DOWN to disable sound.

No other changes to the sketch would be necessary to allow mute control.

@sones,

The skier can be made to face fully horizontal when moving right but can’t when moving left. Is this intentional? What is the purpose of facing horizontal as opposed to facing diagonal? It would make sense to me if downward speed slowed when facing horizontal, as with real skiing.

It’s a fun game though. Keep up the good work!

1 Like

I will change all the suggestions later (hopefully tonight) thanks for all the tips and help

1 Like

@MLXXXp can’t get it to work. Not even sure which button is A or which is B. I’ve tried both and neither seem to work.

It won’t work until my proposed changes are made to the code.

A simple trick to remember which is button A and B is that the A button has the A in ARDUBOY above it and the B button has the B above it :wink:

If you want to make the changes to the code yourself to try it, change:

void setup()
{
  //arduboy.begin();
  arduboy.boot();
  arduboy.flashlight();
  arduboy.blank();
  arduboy.audio.on();
  Serial.begin(9600);

to

void setup()
{
  arduboy.begin();
  arduboy.clear();
  Serial.begin(9600);

Sound off/on now working, and Boris doesn’t go horizontal any more.
updated info on read me file.
Thank you @MLXXXp , help much appreciated.

1 Like

No you should put the horizontal movement back, just make him slow down as @MLXXXp has suggested. As in the original game.

I have a problem with Boris disappearing from the screen on left horizontal, this is why I took it out, I will try to figure out why, Iv’e commented the line I edited (line 76)