This commit is contained in:
NishiOwO 2025-03-26 17:40:18 +09:00
parent 8fc77c4d50
commit 45591fe0ce
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@
void nb_engine_init(nb_engine_t* engine){
engine->world = dWorldCreate();
dWorldSetGravity(engine->world, 0, 0, -9.81);
}
void nb_engine_destroy(nb_engine_t* engine){

View File

@ -1,11 +1,14 @@
#include <nb_version.h>
#include <nb_core.h>
#include <stdio.h>
nb_engine_t engine;
int main(int argc, char** argv) {
nb_version_t ver;
nb_get_version(&ver);
printf("NishBox engine %s - Powered by Pawn and ODE\n", ver.full);
nb_engine_init(&engine);
return 0;
}