diff options
| author | realtradam <[email protected]> | 2022-11-04 16:32:10 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-11-04 16:32:10 -0400 |
| commit | 6936cd871bd99f702e6180b169785b814cfa00f3 (patch) | |
| tree | 09025d45372d1c3c73a6ba39b49bf969f8929681 /src/main.cpp | |
| parent | 53ef8694998392856c44e7397860e04e2dddac49 (diff) | |
| download | orbital_game-6936cd871bd99f702e6180b169785b814cfa00f3.tar.gz orbital_game-6936cd871bd99f702e6180b169785b814cfa00f3.zip | |
implemented sprites
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
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(); //---------------------------------------------------------------------------------- |
