Hi, I'm trying to compile the asteroids for arduino from the Hackvision website. Everytime I verify it, tells me byte does not name a type. The line in question states:
typedef struct Asteroid {
byte x;
byte y;
byte info; // high 4 bits are type, low 4 bits are heading
I think it should say unsinged bit byte x:
or some such, but I have tried and I only get the same errors. I feel this is a problem everyone has solved, but I just need some help!
j0z0r:
Hi, I'm trying to compile the asteroids for arduino from the Hackvision website. Everytime I verify it, tells me byte does not name a
I think it should say unsinged bit byte x:
or some such, but I have tried and I only get the same errors. I feel this is a problem everyone has solved, but I just need some help!
http://nootropicdesign.com/hackvision/games.html
I tried the first solution, same errors
When I added #include <Arduino.h> to the beginning, it just got hung up in a different error. There's something I'm doing wrong, I'm gonna try to do some more research and see what's up. I think it may be that these sketches were written with earlier versions of the IDE, or maybe earlier libraries
I tried that just now, but it still gets hung up in the same spot. This is blowing my mind, I have seen plenty of people playing Asteroids on their Arduino, I just dunno how they got it to work. I'm trying to look for a newer version of the code with all the kinks already smoothed out, but I haven't had any luck yet
Ok, I installed the latest Beta from the Arduino website, and that seems to take care of most of the errors I was describing. Now when I go to compile, it says:
Arduino: 1.5.8 (Windows 8), Board: "Arduino Nano, ATmega328"
Build options changed, rebuilding all
Using library TVout in folder: C:\Users\Joseph\Documents\Arduino\libraries\TVout (legacy)
Using library EEPROM in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM
Using library Controllers in folder: C:\Users\Joseph\Documents\Arduino\libraries\Controllers (legacy)
sketch_oct18a.ino:15:23: fatal error: Asteroids.h: No such file or directory
compilation terminated.
Error compiling.
I know the Asteroids.h file is in the proper directory, so the problem must be something else. I'm going to try rebuilding my directories and libraries and see if that helps. I'm thinking maybe it doesn't know where to look after the new install