Skip to content

Commit

Permalink
Fix some typos in main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Jan 14, 2024
1 parent 3ac068a commit e4591b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,19 @@ int main()

/* This is the main start function, which would be something like the
starting function for the current levels script. You can find the
implementation in scripts/src/gameplay.cpp. */
implementation in scripts/src/level1.cpp. */
auto level1 = Script("level1", "scripts/level1.elf", debug);
/* level1 make remote calls to the gameplay program. */
level1.setup_remote_calls_to(gameplay);

level1.call("start");

/* Use strict remote calls for level2 */
auto level2 = Script("level2", "scripts/level2.elf", debug);
/* level2 can make remote calls to the gameplay program. */
level2.setup_strict_remote_calls_to(gameplay);
/* Allow calling *only* this function remotely, when in strict mode */
gameplay.add_allowed_remote_function(
gameplay.address_of("_Z25gameplay_allowed_functioni"));
gameplay.add_allowed_remote_function("_Z25gameplay_allowed_functioni");

level2.call("start");

Expand Down Expand Up @@ -176,8 +177,6 @@ int main()

screen.buildInterface();

// ???
// screen.set_position({200, 200});
screen.mainLoop();

return 0;
Expand Down

0 comments on commit e4591b1

Please sign in to comment.