summaryrefslogtreecommitdiffhomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d4b1bc3..827368d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -14,6 +14,8 @@ int main(void)
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
+
+ auto ship = Resources::Sprite("ship", (Rectangle){1365,1696,198,188});
// Main game loop
while (!WindowShouldClose()) // Detect window close button or ESC key
@@ -30,8 +32,8 @@ int main(void)
ClearBackground(RAYWHITE);
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
- ;
- DrawTexture(Resources::useTexture("ship"), 0, 0, WHITE);
+ //DrawTexture(Resources::useTexture("ship"), 0, 0, WHITE);
+ ship.draw(100,100);
EndDrawing();
//----------------------------------------------------------------------------------