From 1118f22a60dffeb204ec4845d009cf057b51f088 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 20 Sep 2015 09:42:34 -0400 Subject: interpolated :) --- src/ui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index 5d3e143..877dacb 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -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; -- cgit v1.2.3