diff --git a/a.out b/a.out new file mode 100755 index 0000000..fad13d7 Binary files /dev/null and b/a.out differ diff --git a/amulet.png b/amulet.png new file mode 100644 index 0000000..95bd391 Binary files /dev/null and b/amulet.png differ diff --git a/main.c b/main.c new file mode 100644 index 0000000..7a8ae56 --- /dev/null +++ b/main.c @@ -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; + +} \ No newline at end of file