SkateArdDie! - Awesome

Sports_SkateArdDie!_SkateArdDie!.hex

Hey there!

I just recently got my Arduboy kickstarter (my other preorders won’t arrive for a while hahaha), anywho, I’ve been working on a few games for it (one is ‘Ardventure Island’, that’ll be coming soon, I’ve had to scale it back due to device limitations hahaha).

The other game I’ve been working on is this one ‘SkateArdDie’ - which is very playable, but still has some ironing out to do!

Be easy on me, it’s my first venture into C/C++ in a VERY VERY long time, and even back then I mostly only dabbled in it, I’ve been mostly a JS guy for the past 10 years, and my code DEFINITELY needs some cleanup work, but, like I said, in it’s current state it is very playable and enjoyable, even with it’s flaws hahaha

It’s 2 levels, one sidescrolling the other topdown, with boss and all that jazz :slight_smile:

TOOLS USED
(if interested)

code: Arduino IDE (UPDATE: thanks to MLXXXp it’s been ported to Arduboy2 and ArudboyTones libraries)
graphics: PyxelEdit (http://pyxeledit.com/)
graphic conversions:
Arduboy Image Converter (http://www.andrewlowndes.co.uk/blog/graphics/arduboy-image-converter)
img2ard (https://github.com/yyyc514/img2ard)

CURRENT KNOWN ISSUES:

  • collision detection needs some work (especially in level 2)
  • transition from level to boss
  • re-starting the game after gameover/win screen makes the gameplay a little wonky sometimes

I had to re-use the boss for level 2 because i’m already pushing it to the limit, maybe poor code or maybe device limitations, or maybe both hahaha

GIT REPO:
https://github.com/gdmcvittie/SkateArdDie

VIDEO PREVIEW:
https://goo.gl/photos/LsScdfRJhfdCT9997

if you want to help out and make it kick some ass, please do so - i’m working on a few projects currently AND i have a toddler running around, so i have no problems AT ALL with others pitching in to make this game as great as it can be!

11 Likes

OMG DUDE THIS IS AMAZING.

Ahahaha i’m totally hyped for this. great job :smiley:

1 Like

Hahahah thanks! It’s coming along for sure!

great job!!!

1 Like

DUDE! I loved playing this on my old GameBoy! What a great game!! It’s crazy how close to the source material your game is.

1 Like

was trying to remake the entire game (well, at least an homage to it, anyway!) but it’s at the point now where if i add anything it becomes too large to compile for the device… might consider making the player sprites a bit smaller and see if that helps :slight_smile:

my other game ‘ardventure island’ is going to be along the same lines, a nice homage to the original, hopefully i’ll get some more time to work on it!

1 Like

I was able to free up over 1500 bytes of code space by porting SkateArdDie to Arduboy2 and ArduboyTones.

You may be able to save a bit more space by changing any variables that will will always be between 0 and 255 from int to byte. You should also change any int that never goes negative to unsigned int.

Any place you use a value of 1 for everyXFrames() is just wasting space (I found 3 places in your code).

Note: You have a line:
if(arduboy.everyXFrames(300){

The parameter that is passed to everyXFrames() is an 8 bit byte, so the maximum value allowed is 255.

2 Likes

thanks for the tips! i’ll change it up when i get a chance!
i’ll look into arduboy2 and arduboytones, very interesting! (silly me, i’ve been out of the forums basically forever because i was pretty much waiting for my device to show up before actually getting into the coding side of things)

My changes are at
https://github.com/MLXXXp/SkateArdDie

I can create a pull request to your repository if you wish.

1 Like

oh, awesome!

for sure, feel free!

i just digged out my original game and playing it now side by side, thanks mate.

3 Likes

bad n rad is one of my all time faves! i never liked how they FORCED you to listen to the entire intro song though on the title screen before they let you play!

1 Like

thanks to MLXXXp, it’s now ported over to Arduboy2 and ArduboyTones libraries - AND it’s something like 6% less footprint!

2 Likes

Awesome. I love this game

1 Like

Hi could you add in a little video

I recently added a Sprites class to the Arduboy2 library. This created a conflict with the Sprites class included locally in SkateArdDie. This causes a compile error:
sprites.h:29: error: redefinition of 'class Sprites' - error

I’ve made modifications to SkateArdDie to switch to using the Arduboy2 Sprites class. My new version can be found here.

I’ve created a pull request for the changes, so hopefully the original will be updated (if my fix works properly).

I merged the pull request :slight_smile: thanks!

1 Like

when my arduboy arrives I playing this!

Is anyone else having the problem where when you put the game onto the arduboy, it doesn’t let you put another one on. if so and if you were able to change the game, please tell me how to.
I am on a macbook.

Have you tried flash light mode?

Have you tried pressing the reset button?