diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-20 09:42:34 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-20 09:42:34 -0400 |
commit | 1118f22a60dffeb204ec4845d009cf057b51f088 (patch) | |
tree | 3d38b4d96c36111fc46a50909fbe909980fd188c /src/ui.cpp | |
parent | b806a2d9bd6932525263a172ea2837eb1a94717d (diff) |
interpolated :)
Diffstat (limited to 'src/ui.cpp')
-rw-r--r-- | src/ui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -67,6 +67,7 @@ namespace ui { glDisable(GL_TEXTURE_2D); xo+=w; free(buf); + glDeleteTextures(1,&ftex); }while(s[i++]); } void putText(const float x,const float y,const char *str,...){ @@ -88,9 +89,9 @@ namespace ui { break; case SDL_KEYDOWN: if(SDL_KEY==SDLK_ESCAPE)gameRunning=false; - if(SDL_KEY==SDLK_a)player->vel.x=-2; - if(SDL_KEY==SDLK_d)player->vel.x=2; - if(SDL_KEY==SDLK_SPACE)player->vel.y=2; + if(SDL_KEY==SDLK_a)player->vel.x=-.15; + if(SDL_KEY==SDLK_d)player->vel.x=.15; + if(SDL_KEY==SDLK_SPACE)player->vel.y=.25; break; case SDL_KEYUP: if(SDL_KEY==SDLK_a)player->vel.x=0; |