Jump to content
  • Advertisement
  • entries
    5
  • comments
    49
  • views
    1138

2018 Challenge Missile Command

lilington

958 views

Yep, here is my contribution to GameDev 2018 Missile Command.

missile.thumb.png.b26413006add7ce9d0661f7235c421bc.png

The source code is inside the zip :https://github.com/wybifu/missile_command/archive/master.zip

github:   https://github.com/wybifu/missile_command

Windows users: Windows_version.exe

Linux users: Linux_version

or just compile it for any other OS.

language: C

library: SDL2

I feel that I have to explain myself as the code is awful: I was just writing as I was thinking when a new Idea popup I just hardcoded it and didn't care if it fits the rest of the code that can provide strange lines like:

if (((Agent *)(((Agent *)(a->ptr0))->ptr1)) != NULL)
                        ((Agent *)(((Agent *)(a->ptr0))->ptr1))->visible = BKP_F

YEAH !! Absolutely horrible.

a small video of gameplay :

another shootscreen for pleasure:

missile_1.thumb.png.c8fe49ed9644833f7d9006d8ea469292.png



6 Comments


Recommended Comments

Nice work. I like all the different kinds of turrets you can use. 

And don't feel bad about dirty code. In a game jam/challenge situation, it's not about academically correct code. It's about getting shit done and out the door. That said, it's usually a good exercise to go back and try and refactor the code into something more "correct". Developing that skill can help you go far in development. - Make it work.(hacky) Make it right. (clean) Make it fast. (optimize if necessary)

Share this comment


Link to comment

Was good. I tried it under my linux mint but it didn't seem to run, maybe some dependencies I didn't have (there are a load of dlls for the windows version)? But it ran fine under wine.:)

Share this comment


Link to comment
5 hours ago, Eck said:

Nice work. I like all the different kinds of turrets you can use. 

And don't feel bad about dirty code. In a game jam/challenge situation, it's not about academically correct code. It's about getting shit done and out the door. That said, it's usually a good exercise to go back and try and refactor the code into something more "correct". Developing that skill can help you go far in development. - Make it work.(hacky) Make it right. (clean) Make it fast. (optimize if necessary)

yep, I tried to make a little bit like a tower defense. I don't think I will have to come back to correct the code, I am working on 2 other projects. but feel free to enjoy hacking it :)

5 hours ago, lawnjelly said:

Was good. I tried it under my linux mint but it didn't seem to run, maybe some dependencies I didn't have (there are a load of dlls for the windows version)? But it ran fine under wine.:)

It worked on Fedora and Debian, can you open it in a terminal and read the error? you have to install those dependencies:  SDL2,SDL2_ttf, SDL2_mix, SDL2_image.

Yeah, the windows version comes with all those DLL. but if you already have it on your system it should be ok.

Edited by lilington

Share this comment


Link to comment
9 hours ago, lilington said:

It worked on Fedora and Debian, can you open it in a terminal and read the error? you have to install those dependencies:  SDL2,SDL2_ttf, SDL2_mix, SDL2_image.

 

You were right I ran ldd on it and it said I had everything except SDL2_ttf mix and image. It might even be possible to static link SDL2 (when not making it as a package with dependencies)? (sorryI am linux noob lol :) )

Share this comment


Link to comment
18 minutes ago, lawnjelly said:

You were right I ran ldd on it and it said I had everything except SDL2_ttf mix and image. It might even be possible to static link SDL2 (when not making it as a package with dependencies)? (sorryI am linux noob lol )

On Linux usually you just install the library, honestly static linking sucks, the exec will be huge for no reasons at all plus as gamer you should install sdl once for all. I don't know the package manager for linux mint, I can show you the command for fedora and just adapt it four linux mint

     #dnf install SDL2 SDL2_ttf SDL2_mix SDL2_image

for windows, i provided because it is not simple as it is on Linux to install.

I never been able to use a mac everything I do there is a failure so I just gave up.

Share this comment


Link to comment

Just updated the sources, I forgot the specific power of the second tower, those who did downloaded, please do it again. Sorry

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!