Learning C Game Programming – Simple Gun Shooting

https://vertostudio.com :: http://twitter.com/mlfarrell3d
Game code: http://vertostudio.com/pub/learnc/contro.zip

Espresso-C aided tutorial on programming shooting projectiles in a 2D game

50 Comments

  1. Satish Singh on December 30, 2019 at 2:14 am

    can i do this program in turbo c7

  2. Max Mi on December 30, 2019 at 2:15 am

    Hi, I getting erros, that SDL.h and SDL_image.h can not be found. I tried it with VS 2017 on Win

  3. HaxScrpt on December 30, 2019 at 2:16 am

    Was actually just curious about how to program games in C, but your explanations (and your small mistakes lol) made your video really interesting and fun to watch. Keep going, I think you found a new subscriber 😉

  4. Lucien Chendjou on December 30, 2019 at 2:16 am

    it doesnot shows how to write the codes

  5. William Tubbs on December 30, 2019 at 2:17 am

    leemie learn

  6. Ghaith Ben Hassine on December 30, 2019 at 2:21 am

    Supportt like and click the ad ink keep Going man you are the Best <3

  7. Yashwanth on December 30, 2019 at 2:23 am

    "hey maybe i should learn to code games in my spare time"
    15 million lines of hieroglyphic text just to make that dude fire bullets from his elbows.
    Nope

  8. Kai Tsurugi on December 30, 2019 at 2:23 am

    That was fun! Thanks!

  9. Himanshu Sharma on December 30, 2019 at 2:23 am

    Please give the tutorial how to install c in mac

    I really need to do this..
    Please help

  10. Black Mamba on December 30, 2019 at 2:24 am

    Why do you allocate memory fkr bullets when you defined MAX_BULLETS

  11. rich allen on December 30, 2019 at 2:30 am

    Is there any way to program in this version of C on a Chromebook?

  12. Niranjan Dindodi on December 30, 2019 at 2:33 am

    I’m getting an error saying "Cannot find sheet". I’ve put all the .png images on the same project folder. Any solution to this?

  13. Rana on December 30, 2019 at 2:34 am

    Is this c programming or c++ programming

  14. MP S on December 30, 2019 at 2:34 am

    Nice tutorial, needs more (and smaller) functions.

  15. Diverse Programmer on December 30, 2019 at 2:36 am

    TIP: Destroy the instantiated bullet object once it goes out the screen.

  16. Anwarul Bashir Shuaib on December 30, 2019 at 2:37 am

    https://www.youtube.com/watch?v=xWry5NQfDuw&t=3s check out my game created in C language

  17. Mustapha Rashiduddin on December 30, 2019 at 2:37 am

    how do you find malloc errors in osx? do you use any tools?

  18. Web Rockerz on December 30, 2019 at 2:39 am

    plz send me this code i want to show this game for my project plzz,,… to my praticle

  19. Mr Jackile on December 30, 2019 at 2:40 am

    Why did you break the loop?

  20. Diverse Programmer on December 30, 2019 at 2:42 am

    AD: "Hey, I just created a Wix website for my—"
    Me: "DON’T CARE!"

  21. Cacti196 on December 30, 2019 at 2:43 am

    simple?
    S I M P L E? WDYM S I M P L E

  22. homer dickens on December 30, 2019 at 2:46 am

    i dont even code. why did i watch the whole thing?

  23. ThePlushieZone on December 30, 2019 at 2:48 am

    The frick i don’t get it, how does C make a computer do anything if it is just words, Also can’t you run out of possibilites evtually?

  24. Mr Jackile on December 30, 2019 at 2:48 am

    You have to check if malloc worked

  25. pluto on December 30, 2019 at 2:49 am

    MJNJN

  26. Lovelace on December 30, 2019 at 2:49 am

    C makes my brain hurt sometimes but I still love it.

  27. Amornchot Singh on December 30, 2019 at 2:49 am

    Where can I get the game assets so I can follow along?

  28. Александар Милојковић on December 30, 2019 at 2:50 am

    idTech 1, 2 and 3 engine were written in C and games that are using it are Doom 1/2, Quake 2/3. You can develop games in pure C but you will need good skills. You can just use structs and pointers to mimic Class in OOP. structs can hold data types, other structs(which is basically advanced data type) and pointers to functions. You can make your code really nice. For example:

    typedef struct Texture {
    void (*LoadTexture)(struct Texture*);
    void (*RenderTexture)(struct Texture*);
    void (*Destructor)(struct Texture*);
    const chat *path;
    SDL_Texture *texture;
    } Texture;

    As you can see, Texture "class" holds everything you need. Later on you just place function pointers.

    Texture background = { &LoadTexture, &RenderTexture, &DestroyTexture, "data/background.png" };

    And then you can use your "object".

    background.LoadTexture(&background);
    background.RenderTexture(&background);
    background.Destructor(&background);

    Thats it, you don’t need classes.

  29. Somphoth Siratsamy on December 30, 2019 at 2:52 am

    Trending challenge, who can hack the most Tesla. Two ways, by hacking the owner’s 📱 or by overriding the Tesla control system

  30. Yossiri on December 30, 2019 at 2:53 am

    The link to download the code does not work anymore.

  31. asdf asdf on December 30, 2019 at 2:53 am

    In C11 when you create a function with variables from a struct, do you pass them ass pointers or references?

  32. Panda Pubg Lite on December 30, 2019 at 2:54 am

    congratulations 1 subscriber added

  33. Kim Jong-un on December 30, 2019 at 2:55 am

    I’m now programming in C for about 3 months and i felt like I’m the only person whos code isn’t working right after compiling the first time… but It’s good to see that other have problems too.

  34. Shriniwashan Purohit on December 30, 2019 at 2:56 am

    Any body help me for project i have so that why can u give a code of simple game plz my no is 9662316522 plz me bros

  35. MOHAMMAD ZOUBI on December 30, 2019 at 2:57 am

    where can i get sdl header?

  36. W Lee on December 30, 2019 at 3:00 am

    I have Code::Blocks 17.12 IDE. I do not find all the libraries listed in this code. Where can I find them? I am a novice, therefore, a detailed info would be appreciated.

  37. Everything Geek on December 30, 2019 at 3:00 am

    This is so cool.. props man!

  38. Nicolas Goubin on December 30, 2019 at 3:01 am

    Hey i’m starting in programming, chose to begin with C language which i find really interesting to me.
    As for my 1st library to work with i would like to master SDL one. But should i try to learn SDL then move to SDL2 or SDL2 from the beginning instead ?

  39. Rony Tar on December 30, 2019 at 3:01 am

    I Have a question! So I am making a space shooter game… Using the graphics.h Is it impossible to write code for bullets without using objects, structures???

  40. ParkCity on December 30, 2019 at 3:01 am

    no fucking joke that was the best lapse for thecoding, the music was so perfect dude.

    I’m happy to say i’m starting to learn c for more than just OS development!!!

  41. shiva bandiya on December 30, 2019 at 3:02 am

    Mark jukarberg….

  42. Codebuzz on December 30, 2019 at 3:02 am

    https://youtu.be/QptbtcprC3U
    Simple digital clock program

  43. Zybran on December 30, 2019 at 3:02 am

    Link that you gave us is not reachable , please give me a thing to reach the entire code

  44. Ashish Panchal on December 30, 2019 at 3:03 am

    Hi can you tell me or make a video on How to perform an action using arrow keys in C?(not in C++ but in C)

  45. Kevin Harte on December 30, 2019 at 3:05 am

    can you make it work on a nes?

  46. Simple Developer on December 30, 2019 at 3:06 am

    that udemy ad game programming is really pissing me off

  47. Shiva Kumar on December 30, 2019 at 3:07 am

    sir why is switch case not working in c graphics how to use switch case in c graphics

  48. Irzum Shafique on December 30, 2019 at 3:09 am

    Well i like your tutorial hope that i can do that too 😀
    who found his voice similar Indian super star Hrithik Roshan From Jadu Movie ,,,,

  49. Rambabu Upreti on December 30, 2019 at 3:10 am

    I am bachelor 1st year student and i wanna learn c to the fullest
    Idk the codes how can i learn the graphics code and other code.
    Is there any book.?
    Please help me anyone😕

  50. pspppe on December 30, 2019 at 3:11 am

    Cool Stuff. @VertoStudio3D can u elaborate more on how u refresh and update the screen?

Leave a Comment