Make Your Own Arduboy Game: Part 6 - Graphics!


(Holmes) #41

Make sure you check out the next tutorial. I include a bit more info about the switch keyword and how to implement this. :slight_smile:

Glad you were able to figure it out. :smiley:


(Scott R) #42

@crait Thank you very much for taking the time to post these with my ArduBoy arriving today and having little coding experience I am sure I will find the a valuable resource and point of reference.


(Jet Jaguar) #43

I made a small tribute/animation game to my favorite rapper MF DOOM, called ‘DOOM BOTS’ :slight_smile:

I have no clue how to use GitHub to share it lol.

Thanks for the help!


(Holmes) #44

Awesome! I hope it helps!

I don’t like GitHub because of how confusing it can be for n00bs. (I’m also a n00b. :wink:) You can always upload it with PasteBin or some other similar site.


(Celine) #46

Mmmm was going to write a simple tutorial on how to use Github for uploading your game… thought no one might want to read it… might include in Arduboy Magazine Vol 5?


(Jet Jaguar) #47

Could be helpful. I am trying to figure out how I can learn music/tones at the moment


#48

Maybe out of scope but I noticed in your list you didn’t explain what Progmem was? My understanding is that it’s the flash memory for the device?


(Scott) #49

Make Your Own Sideways Scroller: Part 1 - Steve The Jumping Dinosaur
(Snmyjbljzpf) #50

I changed the player movement to the background movement.
Now, on the left and upper sides of the screen, sometimes some (1~7) pixels are empty. How do I solve this problem?
for( int backgroundx =playerx%8 ; backgroundx < 128; backgroundx = backgroundx + 8 ) {
//For each row in the column
for( int backgroundy = playery%8; backgroundy < 64; backgroundy = backgroundy + 8 ) {
//Draw a background tile
arduboy.drawBitmap( backgroundx, backgroundy, background, 8, 8, WHITE );
}
}


(Simon) #51

Your code has introduced this:

int backgroundx = playerx % 8

Says ‘set backgroundx to the remainder of playerx divided by 8’. I think you want:

int backgroundx = playerx / 8

which is ‘set backgroundx to the integer part of playerX divided by 8’. Likewise for backgroundy.


#52

Great post! I found it perfect as fresh Arduboy user. Btw. it seems there is small bug in the section Control The Sprite. There are often references to palyerx instead of playerx. Not sure if it was @crait intention or not :slight_smile:


(Michael) #54

Thanks @crait for the image converter. I had a chance to experiment with tiles and sprites of my own.


(Josh) #55

:+1: Hope part 10’s on its way! Loving the lessons so far!