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

2018 Challenge Missile Command

lilington

1288 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
  • Advertisement
  • Blog Entries

  • Similar Content

    • By horror_man
      Hello, I'm currently searching for additional talented and passionate members for our team that's creating a small horror game.
      Devil's Punishment Main Menu
      About the game: The game would be a small sci-fi/post-apocalyptic survival horror 3D game with FPS (First person shooter) mechanics and an original setting and story based in a book (which I'm writing) scene, where a group of prisoners are left behind in an abandoned underground facility. It would play similar to Dead Space combined with Penumbra and SCP: Secret Laboratory, with the option of playing solo or multiplayer.
      Engine that's being used to create the game: Unity
      About me: I'm a freelance music composer with more than 4 years of experience, have been part of a couple of game jams having the role not only of music composer but also as game designer and writer (Necroxeon and Solemn Pastures for the Ludum Dare) and have participated in a bunch of other projects. Now I'm currently leading the team that's creating this beautiful and horrifying game. I decided that making the book which I'm writing into a game would be really cool, and I got more motivated about doing so some time ago when I got a bunch of expensive Unity assets for a very low price. However, I researched about how to do things right in game development so I reduced the scope of it as much as I could, so that's why this game is really based in a scene of the book and not the entire thing. Also I'm currently learning how to use Unity and learning how to program. We're creating something new for the horror genre that's far from being your usual jump scare game.
      Our team right now consists of: Me (Game Designer, Creator, Music Composer, Writer), 3 3D Artists, 3 Game Programmers, 2 Concept Artists, 1 3D Animator, 1 Community Manager and 1 Writer.
      Who am I looking for: 
      -Programmer: We are looking for a talented and passionate gameplay programmer that is familiar with the horror genre and has experience with C# and Unity. Having knowledge with random map generation, FPS, UI, Networking, github, AI, Inventory System mechanics is a plus.
      -3D Environment Artist: We are looking for a talented and passionate 3D Artist that is familiar with the horror genre and has experience with hard surface and the modeling of realistic high poly underground/closed environments.
      Right now the game is in late development and you can see more information about it and follow our progress in our game jolt page here: https://gamejolt.com/games/devilspunishment/391190 . We expect to finish some sort of prototype/demo in 2 months from now.
      This is a contract rev-share position
      If you are interested in joining, contributing or have questions about the project then let's talk. You can message me in Discord: world_creator#9524
    • By Danil Kalyupa
      A long ago, mortals waged war against the gods and managed to defeat them. Now, you’re the only celestial being alive and you have to bring mortals to extinction in order to survive.
      Key features:
      Nine continents. Stop mortal heroes before they get to your shrine to proceed to the next continent and reach your ultimate goal of destroying the heroes on all nine continents. Automatic turn-based battles. The heroes act on their own as well as friendly creatures. Growing difficulty. Each level is more challenging than the previous one and the death is permanent.  Divine artifacts. Combine sparks of creation, pieces of the fallen gods’ powers, into various skill sets. Runic circle. Discover new runes to empower skill sets and sometimes dramatically change how the set works altogether.  Remember the past. Find historian notes to recreate events from the past and turn the tide of battles.  Ever-changing world. The world generates randomly each time you start a new match.
      Possible features:
      Book of Discoveries. Everything in the game has a story: from bosses to divine powers. These stories are not a part of the main gameplay, but with the Book of Discoveries you'll always be able to take a break from your divine deeds and read a few pages. Weather. Changing weather either helps the god or the heroes. It could be a healing rain for the heroes or a slowing blizzard for the god servants. Divine Trials. They create random conditions on each level to make them more challenging to complete. For example, the Trials may move a random god servant to a random hex each turn or buff the heroes near the sources of water.  
      Kickstarter
      To finish the development, we started a Kickstarter campaign and we need your help to make it successful. To back the project, leave us a like ("Remind me" under "Back this project" on the campaign page) or just take a look please visit our Kickstarter page here. Thank you!

       
    • By RoKabium Games
      These old ruins and remnants from Auras ancient Junit civilization can be seen in the background in some parts of this cold world. There are also some enormous old fossilized bones that makes you wonder what kind of huge creatures that used to roam this planet.
    • By DVeNom
      Hello, my name is Sean, and I and my friends are putting together a team to create a MMORPG through UE4.
        
      As of right, it's all volunteer work. As we are wanting in the future that it will turn into something that people will want and love. If so all the people who volunteered will see their fair share. Even if this volunteer work it's also a great chance to show your skills and learn from other volunteers who joined the project. It's a chance toincrease your resume on what you learned and what you have improved.
       
      Concept:
       The concept of the game is an RPG. I'm taking inspiration from games like Warcraft, Elder Scrolls, Destiny, and Fabled. While still creating something new and refreshing. We are creating the lore from beginning to end. This game will be story driven along with multiplayer components. There will be objectives to do every week to keep you coming back. I'm going for a rich narrative to have the players really get into the world that we are creating. There will be Dungeons, Raids, PvP, World Events, and Seasonal Events to have players always wanting more. 
       
      We have made a lot of progress on the game front. Login screen, creation screen and are able to log into the demo world. Programmers are working on Gameplay mechanics right now. We are looking for extra hands on 3D modelers, level design, a UI design, and Theorycrafters and that will wrap up the team completely. Down below is our folder of our concept art.
      https://drive.google.com/drive/folders/1-oO5YcTwJW-1XkrIDkDzokVWYmN7ocm_
      If you are interested you can message me through email at ssingl2583@my.sullivan.edu
       
  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!