diff --git a/main.c b/main.c index 856351c..33fb650 100644 --- a/main.c +++ b/main.c @@ -1,23 +1,6 @@ #include "raylib.h" -#include - -struct Sprite{ - Texture2D *texture; - float x; - float y; -} Sprite; - -void addSprite(struct Sprite *cursors, int *j, Texture2D *texture, int x, int y){ - if(*j < 100){ - (cursors + *j) -> texture = texture; - (cursors + *j) -> x = x; - (cursors + *j) -> y = y; - (*j)++; - } - else{ - printf("Voll\n"); - } -} +#include "stdio.h" +#include "sprite.h" int main(){ diff --git a/main.o b/main.o new file mode 100644 index 0000000..29edc57 Binary files /dev/null and b/main.o differ diff --git a/sprite.h b/sprite.h new file mode 100644 index 0000000..bf2bf58 --- /dev/null +++ b/sprite.h @@ -0,0 +1,17 @@ +struct Sprite{ + Texture2D *texture; + float x; + float y; +} Sprite; + +void addSprite(struct Sprite *cursors, int *j, Texture2D *texture, int x, int y){ + if(*j < 100){ + (cursors + *j) -> texture = texture; + (cursors + *j) -> x = x; + (cursors + *j) -> y = y; + (*j)++; + } + else{ + printf("Voll\n"); + } +} \ No newline at end of file diff --git a/sprite.h.gch b/sprite.h.gch new file mode 100644 index 0000000..1f4239f Binary files /dev/null and b/sprite.h.gch differ