Renamed
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include <cmath>
|
||||
|
||||
#include <openceg.hpp>
|
||||
#include <boundard.hpp>
|
||||
|
||||
namespace {
|
||||
|
||||
void register_square_behaviors() {
|
||||
auto& behaviors = openceg::BehaviorRegistry::getInstance();
|
||||
auto& behaviors = boundard::BehaviorRegistry::getInstance();
|
||||
|
||||
behaviors.register_init("square_init", [](openceg::Actor& actor) {
|
||||
behaviors.register_init("square_init", [](boundard::Actor& actor) {
|
||||
actor.set_position({0.0F, 0.0F});
|
||||
actor.set_facing({1.0F, 0.0F});
|
||||
if (actor.mesh() != nullptr) {
|
||||
@@ -17,7 +17,7 @@ void register_square_behaviors() {
|
||||
|
||||
behaviors.register_tick(
|
||||
"square_tick",
|
||||
[](openceg::Actor& actor, float dt, const openceg::render::InputMap& input) {
|
||||
[](boundard::Actor& actor, float dt, const boundard::render::InputMap& input) {
|
||||
const float t = actor.age();
|
||||
actor.set_facing({
|
||||
std::cos(t * 1.5F),
|
||||
@@ -45,5 +45,5 @@ void register_square_behaviors() {
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
register_square_behaviors();
|
||||
return openceg::run_engine(argc, argv, "examples/square/config.ceg");
|
||||
return boundard::run_engine(argc, argv, "examples/square/config.ceg");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user