tetris-sdl-c
tetris-sdl-c copied to clipboard
clean up code smells
Some code smells:
- variable naming and init placement
- method naming
- global var clean up
when i type the make file the error generated
the error code is below
~/Desktop/MyHobby/tetris-sdl-c$ make
gcc -g sdl2-config --cflags
-c src/init.c
In file included from src/init.h:1:0,
from src/init.c:1:
src/defs.h:10:26: fatal error: SDL2/SDL_ttf.h: No such file or directory
compilation terminated.
makefile:13: recipe for target 'init.o' failed
make: *** [init.o] Error 1
@MockBond hi, please create a new issue regarding your compilation issues. It looks like you need to install SDL2_ttf
library.
i sloved it by :-> sudo apt-get install libSDL2-ttf-2.0-0
thanks a lot sir!!
sir , i would like to work with this project further by adding some fancy tweaks and feature . also please get mario game with SDL2 .. we can work with that too!! with slight changes , if your interested let me know sir ,,
have a great day sir !!
@MockBond glad it works. feel free to fork this repository and as much tweaks and features you like 👍
Sir again same problem
tetris-sdl-c$ make
gcc -g sdl2-config --cflags
-c src/init.c
In file included from src/init.h:1:0,
from src/init.c:1:
src/defs.h:10:26: fatal error: SDL2/SDL_ttf.h: No such file or directory
compilation terminated.
makefile:13: recipe for target 'init.o' failed
make: *** [init.o] Error 1
libsdl2-ttf-2.0-0 This what the library i downloaded while ago!!
Sorry for interruption sir !!
@MockBond Sorry, I don't have an immediate access to a ubuntu machine (assuming that is your OS you're working in) to help you. I made the tetris program in mac, and thus only know how to compile it in that OS.
Thank you for the reply !! Im still struggling with output ... I will try to get the output and update for the same .
Do u have any open source projects that you would like to suggest me .. my skills are C,C++,Python, Linux shell