Bzz is to bzzzzz. Teach your bee to bzzzzz safely.
BZZ depends on:
- Raylib - raylib is a simple and easy-to-use library to enjoy videogames programming.
Download version 4.0.0 -> source code.
tar -xf raylib-4.0.0.tar.gz
cd raylib-4.0.0
cmake -Wno-dev .
cmake --build .
Finally:
Copy libraylib.a
, raudio.h
, raylib.h
, raymath.h
, rlgl.h
to ./lib/
folder in this repo root.
Follow instruction from Emscripten web page.
If you are using OSX just brew the Emscripten brew install emscripten
.
Build raylib using emscripten compiler.
emcc -c rcore.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rshapes.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtextures.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rtext.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c rmodels.c -Os -Wall -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2
emcc -c utils.c -Os -Wall -DPLATFORM_WEB
emcc -c raudio.c -Os -Wall -DPLATFORM_WEB
emar rcs libraylib.a rcore.o rshapes.o rtextures.o rtext.o rmodels.o utils.o raudio.o
Copy libraylib.a
, raudio.h
. raylib.h
, raymath.h
, rlgl.h
to ./wasm_lib/
folder in this repo root.
You are ready to go.
This software is still in the beginning of development stage. Keep your expectations low.
- When creating new files, add this
*.c
files intoTFILES
inmakefile
. - Create tests in
*_test.c
file, and add this file intoTFILES
inmakefile
. - Run command:
make test
, to run all the tests. - Run command:
make memcheck
, tu run memcheck tests.
- Add new
*.c
files with new functionalities toCFILES
inmakefile
. - For development run command:
make run
.
- To build for your current machine OS and architecture run command:
make build
. - Now only MAC OS is supported, this will change.
- To build for Wab Assembly run command:
make wasm
. - To check build
cd
in toweb_build
directory and runpython -m http.server 8080
go in your browser to http://localhost:8080
- Thanks to rexim for Tsoding/nn.h ->
https://github.com/tsoding/nn.h/blob/master/nn.h
an amazing Neural Network library and great streaming on how to code and hack things inC
. I was truly inspired. I will blend this library in to my code simply because of the project requirements. - Lingon Studios for high level description of graphical design.