main
JanEhehalt 3 years ago
parent a8f720e6ed
commit d7911b6d7e

BIN
a.out

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,36 @@
#include "raylib.h"
int main(){
Texture2D sprite;
float posX = 0;
InitWindow(800, 450, "basic window");
sprite = LoadTexture("amulet.png");
SetTargetFPS(60);
while(!WindowShouldClose()){
posX += GetFrameTime() * 100;
BeginDrawing();
ClearBackground(RAYWHITE);
DrawTexture(sprite, 10, 10, WHITE);
DrawRectangle(posX,100,100,100, BLUE);
EndDrawing();
}
CloseWindow();
return 0;
}
Loading…
Cancel
Save