Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages -

Pages: 1
Tiny Arcade / Re: How do you make games for the Tiny Arcade?
« on: September 26, 2017, 02:44:56 PM »
For those interested, check out this tutorial on our website for how to create a basic game for the TinyArcade. It is written entirely in the Arduino IDE and should be easy to follow for getting up and running with creating your own game.

An easy first step would be to make sure you are using the latest version of the Arduino IDE. If not, you can download the latest version for free from here: It's also a good idea to go to: Tools > Board > Boards Manager within the IDE, and update all of the Board Packages. You may need to restart the IDE after this process.

Hi bobojo,

Your code contains a very minor error which is easy to correct in one of two manners. It appears that you forgot to add: int collisions; to your typedef struct, as shown below.

typedef struct {
  int x;
  int y;
  int width;
  int height;
  int collisions;
  const unsigned int *bitmap;
} ts_sprite;

ts_sprite ball = {44,28,4,4,0,ballBitmap};

If you don't wish to utilize the collision tracking variable, you could also leave your typedef struct as is and delete the 0 value as shown below:

ts_sprite ball = {44,28,4,4,0,ballBitmap};

Whichever method you choose, the important thing is to keep both consistent to each other.

Pages: 1
SMF spam blocked by CleanTalk