tetris-sdl-c icon indicating copy to clipboard operation
tetris-sdl-c copied to clipboard

clean up code smells

Open dashed opened this issue 10 years ago • 8 comments

Some code smells:

  • variable naming and init placement
  • method naming
  • global var clean up

dashed avatar Mar 17 '14 21:03 dashed

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

MockArch avatar Sep 18 '16 07:09 MockArch

@MockBond hi, please create a new issue regarding your compilation issues. It looks like you need to install SDL2_ttf library.

dashed avatar Sep 18 '16 07:09 dashed

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 !!

MockArch avatar Sep 18 '16 08:09 MockArch

@MockBond glad it works. feel free to fork this repository and as much tweaks and features you like 👍

dashed avatar Sep 18 '16 08:09 dashed

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

MockArch avatar Sep 18 '16 08:09 MockArch

libsdl2-ttf-2.0-0 This what the library i downloaded while ago!!

Sorry for interruption sir !!

MockArch avatar Sep 18 '16 08:09 MockArch

@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.

dashed avatar Sep 19 '16 06:09 dashed

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

MockArch avatar Sep 19 '16 07:09 MockArch