Skip to content
Fun game for an ESP8266 with SSD1306 and buttons
C++ Makefile C CMake Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
data
docs
images
platform
utils
.gitignore
CMakeLists.txt
CPackConfig.cmake
CPackSourceConfig.cmake
DartConfiguration.tcl
LICENSE
Makefile
README.md
bFlight.ino
bsideFly.cpp
bsideFly.hpp
driveGame.cpp
driveGame.hpp
fixpoint.h
game.cpp
game.hpp
gameCommon.cpp
gameCommon.hpp
mazeGenerator.cpp
mazeGenerator.hpp
mazeRunner.cpp
mazeRunner.hpp
myfont.cpp
myfont.hpp
plasma.cpp
plasma.hpp
platform_audio_esp8266.cpp
platform_audio_esp8266.h
platform_core.cpp
platform_core.h
rotoZoomer.cpp
rotoZoomer.hpp
startupLogos.hpp
voxel.cpp
voxel.hpp

README.md

BFlight

Game for an ESP8266 with SSD1306 and buttons.

Hardware was originally inspired by the BSides Cape Town 2016 Badge and original source code is here

https://github.com/AndrewMohawk/BSidesBadge2016/branches

For Arduino, I was using SSD1306 Brzo as well as ESP8266AUDIO and ESP8266SAM libraries and I think that's it. You will need to install the two audio libraries manually unfortunately. They can be located here https://github.com/earlephilhower/ESP8266Audio and https://github.com/earlephilhower/ESP8266SAM

For linux build you need cmake, gcc and either SDL or ncurses-dev

SDL - 'sudo apt-get install libsdl2-devel' NCurses - Most systems can install this with a 'sudo apt-get install ncurses-dev'

For Windows console build you will need cmake as well as Visual Studio and optionally Visual Studio Code. Console - Should require nothing additional. SDL - I found https://github.com/Microsoft/vcpkg invaluable, the example install is even for SDL2.

For emscipten, there is only a build file currently, but if there's more demand I can clean this up. emcc game.cpp gameCommon.cpp plasma.cpp bsideFly.cpp driveGame.cpp mazeRunner.cpp mazeGenerator.cpp myfont.cpp rotoZoomer.cpp platform_core.cpp -s WASM=1 -std=c++0x -DOPENAL_FOUND -s USE_SDL=2 -O3 --profiling -o index.html --preload-file data/startup.wav --preload-file data/cloud2.wav --preload-file data/walking.wav --preload-file data/carStart.wav -s ERROR_ON_UNDEFINED_SYMBOLS=0

There's no tests, tut - tut, but I did a lot of play testing :)

You can’t perform that action at this time.