diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/physics.cpp | 8 | ||||
-rw-r--r-- | src/example/rendering.cpp | 2 | ||||
-rw-r--r-- | src/example/scene_manager.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/example/physics.cpp b/src/example/physics.cpp index 9a5e5f9..a7e94f6 100644 --- a/src/example/physics.cpp +++ b/src/example/physics.cpp @@ -9,16 +9,16 @@ using namespace crepe; using namespace std; int main(int argc, char * argv[]) { - GameObject *game_object; - game_object = new GameObject(0, "Name", "Tag", Vector2{0,0},0,0); + GameObject * game_object; + game_object = new GameObject(0, "Name", "Tag", Vector2{0, 0}, 0, 0); game_object->add_component<Rigidbody>(Rigidbody::RigidbodyData{ .mass = 1, .gravity_scale = 1, .body_type = Rigidbody::BodyType::DYNAMIC, - .constraints = {0,0,0}, + .constraints = {0, 0, 0}, .use_gravity = true, .bounce = false, - }); + }); delete game_object; return 0; } diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp index e1ff9da..d554a8a 100644 --- a/src/example/rendering.cpp +++ b/src/example/rendering.cpp @@ -5,10 +5,10 @@ #include <crepe/api/AssetManager.h> #include <crepe/api/Color.h> -#include <crepe/api/Vector2.h> #include <crepe/api/Sprite.h> #include <crepe/api/Texture.h> #include <crepe/api/Transform.h> +#include <crepe/api/Vector2.h> #include <chrono> #include <memory> diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp index 1780c81..f46dc36 100644 --- a/src/example/scene_manager.cpp +++ b/src/example/scene_manager.cpp @@ -3,9 +3,9 @@ #include <crepe/ComponentManager.h> #include <crepe/api/GameObject.h> #include <crepe/api/Metadata.h> -#include <crepe/api/Vector2.h> #include <crepe/api/Scene.h> #include <crepe/api/SceneManager.h> +#include <crepe/api/Vector2.h> using namespace crepe; using namespace std; |