EVADE - side scrolling space shooter

Will be looking forward to whatever they come up with.

Thanks for the kind words folks.

Here’s quick teaser on how we’ll be advancing the experience using a better sound gen tool for our next game:

:smiley:

4 Likes

Love it! Brings me back to the heydays of zx spectrum chiptunes ala Martin Galway (terra cresta, cobra) et al.

2 Likes

We are 95% done with the sequel. We are currently in refinement mode and are set to blow some socks off with this release. :blush:

Here is a song that we have put into the code base:

6 Likes

Still my go to game! Finally got a good highscore 42,000. Not sure how great that is but better than I have been! Thank you for creating! More people should check it out!

1 Like

i have a problem i cant anymor upload any games after upload evade

I am not sure whether Evade supports flashlight mode - have you tried that? Also, have you tried pressing the rest button when uploading from the IDE??

Evade or Evade2?

Have you tried using the reset button?

Flashlight Mode works with Evade. What is the issue you are having exactly?

Are you referring to Evade 2? EVADE was made with Arduboy2 and we didn’t break any space saving rules :wink:

Evade 2

I was wrong it was Evade 2 and not Evade

See here.

i did it.
thank everyone :slight_smile:

3 Likes

I get an error while uploading. #endif without #if

Arduino: 1.8.19 (Mac OS X), Board: “Homemade Arduboy, Pro Micro 5V - Alternate wiring, original (Caterina), Arduboy optimized core, SSD1306, Pin2/D1/SDA (official), Normal”

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/om/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/om/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/om/Documents/Arduino/libraries -fqbn=arduboy-homemade:avr:arduboy-homemade:based_on=promicro_alt,boot=org,core=arduboy-core,display=ssd1306,flashselect=sda,contrast=normal -ide-version=10819 -build-path /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285 -warnings=none -build-cache /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_cache_872995 -prefs=build.warn_data_percentage=75 -verbose /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/arduboy-game.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/om/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/om/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/om/Documents/Arduino/libraries -fqbn=arduboy-homemade:avr:arduboy-homemade:based_on=promicro_alt,boot=org,core=arduboy-core,display=ssd1306,flashselect=sda,contrast=normal -ide-version=10819 -build-path /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285 -warnings=none -build-cache /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_cache_872995 -prefs=build.warn_data_percentage=75 -verbose /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/arduboy-game.ino
Using board ‘arduboy-homemade’ from platform in folder: /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0
Using core ‘arduboy’ from platform in folder: /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0
Detecting libraries used…
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp -o /dev/null
Alternatives for Arduboy.h: [Arduboy@1.1.1]
ResolveLibrary(Arduboy.h)
→ candidates: [Arduboy@1.1.1]
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp -o /dev/null
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
→ candidates: [SPI@1.0]
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp -o /dev/null
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
→ candidates: [EEPROM@2.0]
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp -o /dev/null
Error while detecting libraries included by /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src/Arduboy.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src/ab_logo.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src/audio/audio.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src/core/core.cpp -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src/glcdfont.c -o /dev/null
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src/SPI.cpp -o /dev/null
Generating function prototypes…
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_PROMICRO -DAB_ALTERNATE_WIRING -DARDUINO_ARCH_AVR -DARDUBOY_10 -DOLED_SSD1306 -DCART_CS_SDA -DUSB_VID=0x2341 -DUSB_PID=0x8036 “-DUSB_MANUFACTURER=“Unknown”” "-DUSB_PRODUCT=“ABA1306"” -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/cores/arduboy -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/variants/arduboy-promicro-alt -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI/src -I/Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM/src /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/sketch/arduboy-game.ino.cpp -o /var/folders/9k/5q2b1vds4nbbdyvr7t_3zlrh0000gn/T/arduino_build_239285/preproc/ctags_target_for_gcc_minus_e.cpp
In file included from /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/bullet.h:11:0,
from /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/arduboy-game.ino:18:
bitmaps.h:293:2: error: #endif without #if
#endif
^~~~~
In file included from /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/enemy.h:11:0,
from /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/arduboy-game.ino:19:
bitmaps.h:293:2: error: #endif without #if
#endif
^~~~~
In file included from /Users/om/Downloads/evade-arduboy-game-develop/arduboy-game/arduboy-game.ino:20:0:
bitmaps.h:293:2: error: #endif without #if
#endif
^~~~~
Using library Arduboy at version 1.1.1 in folder: /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/Arduboy
Using library SPI at version 1.0 in folder: /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/SPI
Using library EEPROM at version 2.0 in folder: /Users/om/Library/Arduino15/packages/arduboy-homemade/hardware/avr/1.3.0/libraries/EEPROM
exit status 1
#endif without #if

This is the error message

The error literally tells you in what file (bitmaps.h) and on what line (293) the error occurs. Looks like something funky has happened if it’s saying that it’s missing an #if statement (which I believe is a preprocessor directive). Open the header file and look around where the error is. In my code, similar errors are usually caused by me mis-block commenting something or accidentally deleting lines.

1 Like

In the beginning of the code, it has #ifndef so there shouldn’t be a problem?

You have to match them though, each ‘#if’ has to have its own ‘#endif’. It’s like parenthesis, a mismatch for whatever reason will prevent your code from compiling. If you open the file in something like notepad++ and enable code folding it will make the loop beginnings and endings visually apparent.

It seems the (compiler included with) Arduino IDE 1.8.19 seems to choke on the UTF-8 BOM (Byte Order Marker) 0xEF 0xBB 0xBF that is present at the start of the bitmap.h file (it’s invisible in the editor).

To work around this. go to the first line of bitmap.h, move the cursor all the way left and hit DELETE once to remove the BOM. You’ll also see the high ligthing color of the #ifndef change.

alternately you can also move the cursor right after the # and press BACKSPACE a couple of times.


Edit: for those interested, this isssue started after arduino IDE version 1.8.13
3 Likes

It seems to work now. Thanks for telling me :grinning:

1 Like

Hi @JayGarcia.
Thanks for this great game!
Unfortunately the EEPROM used overwrites the first 16 bytes, which is system reserved.
There’s a lot of info available on EEPROM usage (and collisions!) here. You might also want to look at the latest developments in extending support for the ‘Arduboy2’ library.
Many thanks,
Andrew

2 Likes