Skip to content

Commit

Permalink
Allow compiling in Arduino IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
city41 committed Oct 3, 2018
1 parent f974f95 commit d5c6eb4
Show file tree
Hide file tree
Showing 56 changed files with 27 additions and 169 deletions.
22 changes: 22 additions & 0 deletions Makefile
@@ -0,0 +1,22 @@
CPPFLAGS += -DSERIAL_LOG=0

ARDUINO_DIR = $(HOME)/.arduino_ide
ARDMK_DIR = $(HOME)/.arduino_mk
BOARD_TAG = leonardo

LOCAL_CPP_SRCS = $(wildcard src/*.cpp) $(wildcard src/entities/*.cpp)

include $(ARDMK_DIR)/Arduino.mk

emu: build-leonardo/ardynia.hex
pabe build-leonardo/ardynia.hex

bmp:
node ./bmptool/ --src spritePngs --dest src/spriteBitmaps.h --type combined && \
node ./bmptool/ --src tilePngs --dest src/tileBitmaps.h --type bitmap

map:
node ./maptool/ -s tiled -o src

strings:
node ./stringtool/ -s strings.json -o src/strings.h
10 changes: 5 additions & 5 deletions src/arduzel.ino → ardynia.ino
Expand Up @@ -3,11 +3,11 @@
#include <ArduboyPlaytune.h>
#include <math.h>

#include "game.h"
#include "renderer.h"
#include "util.h"
#include "sfx.h"
#include "tileBitmaps.h"
#include "src/game.h"
#include "src/renderer.h"
#include "src/util.h"
#include "src/sfx.h"
#include "src/tileBitmaps.h"

Arduboy2Base arduboy;
ArduboyPlaytune tones(arduboy.audio.enabled);
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
22 changes: 0 additions & 22 deletions src/Makefile

This file was deleted.

81 changes: 0 additions & 81 deletions src/arduboyBeep.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions src/arduboyBeep.h

This file was deleted.

7 changes: 0 additions & 7 deletions src/midi/test.c

This file was deleted.

Binary file removed src/midi/test.mid
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit d5c6eb4

Please sign in to comment.