|
|
|
|
@ -46,7 +46,6 @@ int main(){
|
|
|
|
|
IsometricRendererRenderIsometricMap(map);
|
|
|
|
|
|
|
|
|
|
int i;
|
|
|
|
|
//int length = sizeof(sprites)/sizeof(sprites[0]);
|
|
|
|
|
for(i=0; i < spriteAmount; i++){
|
|
|
|
|
DrawTexture(*sprites[i].texture, sprites[i].x, sprites[i].y, WHITE);
|
|
|
|
|
}
|
|
|
|
|
@ -64,13 +63,6 @@ int main(){
|
|
|
|
|
mouseInput(&inputHandler, sprites, &spriteAmount, &texture, &camera);
|
|
|
|
|
keyboardInput(&inputHandler, &camera);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)){
|
|
|
|
|
printf("Klick\n");
|
|
|
|
|
SpriteAdd(sprites, &j, &texture, cursor.x + camera.target.x, cursor.y + camera.target.y);
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Sprites move towards their destination
|
|
|
|
|
float movementSpeed = 10.0f;
|
|
|
|
|
for(i=0; i < spriteAmount; i++){
|
|
|
|
|
|