aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-07 19:24:24 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-07 19:24:24 +0100
commitf49c93a5dfc0aeb5c0087cc9adfeb68526a2b0a7 (patch)
treed9bdec5dfad314c42569297e74612588daf99653 /src/example
parent7131a94fcfab041cb2dbaccefadb12d1db022d73 (diff)
Make format
Diffstat (limited to 'src/example')
-rw-r--r--src/example/physics.cpp8
-rw-r--r--src/example/rendering.cpp2
-rw-r--r--src/example/scene_manager.cpp2
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;