How Do I Import Code to the Arduino Software

Understanding the language, error messages, etc.

How Do I Import Code to the Arduino Software

Postby superfreaky » Wed Oct 28, 2015 2:07 am

I know there's probably a really easy way to find this out, but I'm slightly confused and this is the only place I know to ask. I want to import someone else's code to the Arduino software so I can draw from it and modify it(for example, I want to make some sort of game where a monster chases you through a maze while you try to find the key, using Myndale's 3d demo.) How do I do this? I go to the code repository for any given game and there's a list of binaries, bitmaps, and a bunch of other stuff. I have no idea what to do with this.
superfreaky
 
Posts: 183
Joined: Wed Oct 28, 2015 1:46 am

Re: How Do I Import Code to the Arduino Software

Postby mougino » Wed Oct 28, 2015 7:33 am

Hi superfreaky you should have a look at http://gamebuino.com/wiki everything is explained there
User avatar
mougino
 
Posts: 75
Joined: Sat Jul 25, 2015 8:15 am
Location: Paris, France

Re: How Do I Import Code to the Arduino Software

Postby superfreaky » Wed Oct 28, 2015 7:03 pm

I looked all over that page, but I didn't find what I wanted to know. I want to take the code for the 3d demo and put it into the arduino software ide so I can use it as a base for a game I want to make. I know this type of thing can be done, because that's how the taxi game was made. I've checked the arduino website, but no luck there yet. Do I use the .HEX file? Or do I copy-paste the code?
superfreaky
 
Posts: 183
Joined: Wed Oct 28, 2015 1:46 am

Re: How Do I Import Code to the Arduino Software

Postby clement » Thu Oct 29, 2015 8:02 am

Hi,

For the 3D engine you can copy past the code from http://gamebuino.com/wiki/index.php?title=3D_dungeon_rendering .

For the taxi Game I ve download the code from the git repo : https://github.com/Rodot/UFO-Race .

You cant start from the .hex file.

++
clement
 
Posts: 161
Joined: Sat Oct 25, 2014 8:06 am

Re: How Do I Import Code to the Arduino Software

Postby superfreaky » Thu Oct 29, 2015 5:40 pm

OK, thanks! I suppose you download the file marked 'bin'?
superfreaky
 
Posts: 183
Joined: Wed Oct 28, 2015 1:46 am

Re: How Do I Import Code to the Arduino Software

Postby clement » Fri Oct 30, 2015 7:55 am

I download the full zip and I use the source code in

https://github.com/Rodot/UFO-Race/tree/ ... forace.ino

if you have the ide arduino installed it open directly with all code.

the bin folder contains the compiled executable.
clement
 
Posts: 161
Joined: Sat Oct 25, 2014 8:06 am

Re: How Do I Import Code to the Arduino Software

Postby superfreaky » Sat Oct 31, 2015 1:10 am

Do I add it to the 'sketches' folder?

Sorry about all the questions, I am a noob.
superfreaky
 
Posts: 183
Joined: Wed Oct 28, 2015 1:46 am


Return to Programming Questions

Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron