Skip to content

SpeedyOrc-C/fxTap-Core

Repository files navigation

fxTap Core

The core of rhythm game fxTap, written in pure C without any user interfaces.

Use the library

Add this to compile the library:

add_subdirectory(fxTap-Core)

Add this to #include headers from fxTap Core:

target_include_directories(Your-Project PRIVATE fxTap-Core/include)

So if you want to include this file ./lib/include/fxTap/beatmap.h, write this in your project:

#include <fxTap/beatmap.h>

If you use C++, you must wrap the include like this:

extern "C" {
    #include <fxTap/beatmap.h>
}

It's also very likely that this library will be used on an embedded system, not PC, since there are already tons of rhythm games on PC. So you need to choose your platform by defining one of the following macros:

  • FXTAP_CORE_ON_GINT for gint kernel on CASIO calculators.
  • FXTAP_CORE_ON_ARDUINO for Arduino boards.
  • FXTAP_CORE_ON_MODERN_OS for Windows, macOS and Linux.

And then define this macro in your CMakeLists.txt such as:

target_compile_definitions(fxTap-Core PRIVATE FXTAP_CORE_ON_GINT)

Finally, link the library to your project:

target_link_libraries(Your-Project fxTap-Core)

Build the library

Make sure you have CMake installed.

Run make-lib.sh, and the binary will be in build-lib.

If you're using CMake, check Test's Configuration for how to add this library to your own project.

Run the tests

Run make-test.sh, and run the executable.

Please note that the test undoubtedly runs with FXTAP_CORE_ON_MODERN_OS macro.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published