Draw: General image scaling (Entities, Fonts, etc)

This commit is contained in:
2016-09-11 13:00:49 +02:00
committed by Valeriano A.R
parent dfd4a5b77f
commit 6383c53634
7 changed files with 118 additions and 104 deletions

View File

@@ -50,6 +50,8 @@ void player_proc(Entity e, int ft) {
}
Entity_CalcBBox(e);
Entity_SetScale(e, (float[2]){0.5f, 0.5f});
// FIXME: play sound
}
if (Input_GetKey(InputKey_Left)) {
@@ -71,6 +73,8 @@ void player_proc(Entity e, int ft) {
}
if (Input_GetKey(InputKey_Action1) == InputKey_Pressed ||
Input_GetKey(InputKey_Action2) == InputKey_Pressed) {
Entity_SetScale(e, (float[2]){1.0f, 1.0f});
}
// Scroll View