Making PACMAN in C++ - SFML Gamedev - Devlog

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 105

  • @Kofybrek
    @Kofybrek  2 ปีที่แล้ว +10

    If you liked it, please hit the like button and subscribe if you wanna see more content like this in the future. It helps me out and doesn't cost you anything.
    Also, consider supporting this channel on Patreon for exclusive content as well as early access to future videos and projects: www.patreon.com/Kofybrek

    • @charlotteava8655
      @charlotteava8655 2 ปีที่แล้ว

      which software are you using making this game ?? visual??

    • @Kofybrek
      @Kofybrek  2 ปีที่แล้ว

      @@charlotteava8655 Aseprite for drawing and Visual Studio for coding.

  • @munshiomar1971
    @munshiomar1971 3 ปีที่แล้ว +70

    an underrated youtuber

  • @Test-iv4pm
    @Test-iv4pm 3 ปีที่แล้ว +12

    2:49 The most convincing paranormal evidence caught on video

  • @speedysandwich6475
    @speedysandwich6475 3 ปีที่แล้ว +15

    Oh my God this is amazing! I've always wanted to learn how to do this kind of stuff.
    You have earned yourself a subscriber.

  • @chrome7fan
    @chrome7fan ปีที่แล้ว +7

    You deserve WAY more views than you get.
    This is like coding bullet level content. I genuinely hope your channel blows up in popularity one day.

  • @SmashHistory
    @SmashHistory 3 ปีที่แล้ว +3

    Saw this on Reddit, pretty entertaining and informative, well done

  • @RmDGaming77
    @RmDGaming77 ปีที่แล้ว +1

    Really well done. Excellent coding and great graphics. Really cool

  •  9 หลายเดือนก่อน

    Your channel is so underrated! This is so fun and educational, and fast! Keep making these! 😀

  • @caydric7562
    @caydric7562 3 ปีที่แล้ว +2

    that's really nice, good luck on youtube man!

  • @nicolaspcoutinho5845
    @nicolaspcoutinho5845 2 ปีที่แล้ว +3

    well done, also made a pac-man clone for fun/learn using SFML/C++ and posted on youtube as well.
    But your version looks much nicer, i also like the way you generated the map via code, the way i did was just by loading a map texture and putting collisions manually on the walls

  • @th3rd965
    @th3rd965 3 ปีที่แล้ว +4

    That's totally my new favorite channel. I rarely have this much appreciation for channels and even more rarely comment :D. Can't wait for another video! Here's an idea - make a ko-fi page where I and other people can donate and support you, it goes great with the channel name ;).

  • @deadbird99
    @deadbird99 3 ปีที่แล้ว +2

    Best C++ coding channel ever!

  • @refeals
    @refeals 3 ปีที่แล้ว +2

    its been a while since i last found a new youtube channel so good that i see every video back to back. keep it up my friend!

  • @SuperGibaLogan
    @SuperGibaLogan หลายเดือนก่อน

    btw the fact you didnt use any game engine for this is impressive

  • @logicprojectsspeed2023
    @logicprojectsspeed2023 3 ปีที่แล้ว +1

    Great video! Glad you're sticking to it

  • @chakrounsaifallah2324
    @chakrounsaifallah2324 3 ปีที่แล้ว

    really i love your way talking in the video and you have done lot of hard work , i'm biggner at c++ and i love your channel

  • @muzammilaltafmulla
    @muzammilaltafmulla ปีที่แล้ว

    Ok, This guy should have a million subs!

  • @einstein2.o383
    @einstein2.o383 3 หลายเดือนก่อน

    Bro deserves a special place in heaven

  • @frankghostly
    @frankghostly 7 หลายเดือนก่อน

    great video, good motivation for someone just learning c++. any resources you would recommend? cheers.

  • @HectorUch123
    @HectorUch123 ปีที่แล้ว

    Super fun video! Thanks for sharing, got some super good ideas from it!

  • @acatisfinetoo3018
    @acatisfinetoo3018 2 ปีที่แล้ว

    I just have to say your c++ videos are some of the most accessible on youtube...I am gonna try and wrote my own pac man clone using your code, but i am going to port mine to BASIC as i am more familiar with that language.

  • @zimmyshorts
    @zimmyshorts 2 ปีที่แล้ว

    such an underrated channel...

  • @StickGuyYT
    @StickGuyYT 3 ปีที่แล้ว +2

    DOO MORREEE PLZZZ I LIKE YOUR CONTENT!!!!!!

  • @yeppiidev
    @yeppiidev 3 ปีที่แล้ว +2

    nice! imma sub :)

    • @yeppiidev
      @yeppiidev 3 ปีที่แล้ว +1

      @Apafar oh well I guess you're the only one who looks into my community tab lol

  • @mohammadzafar5342
    @mohammadzafar5342 2 ปีที่แล้ว

    You are just amazing. Keep it up bro 👍

  • @guizhuo-qr5oq
    @guizhuo-qr5oq ปีที่แล้ว

    tkanks for your vidoe, it really help me.

  • @ДмитрийКинг-м9у
    @ДмитрийКинг-м9у ปีที่แล้ว

    @Kofybrek Could you tell us how the movement works: why do we need available_way and what we get with "(2 + m_direction) %4"

  • @alyabdillahmasaoudy9
    @alyabdillahmasaoudy9 2 ปีที่แล้ว

    Amazing dude keep it up!!

  • @jammincoder
    @jammincoder 2 ปีที่แล้ว

    Dude, this is awesome...

  • @WindowsDrawer
    @WindowsDrawer ปีที่แล้ว

    Your underrated

  • @N3mo_Ahead
    @N3mo_Ahead 2 ปีที่แล้ว

    Hey man youre great keep that up!

  • @Ubermensch_DEV
    @Ubermensch_DEV 2 ปีที่แล้ว

    4:20 was epic

  • @RootsterAnon
    @RootsterAnon 3 ปีที่แล้ว

    Great video!

  • @maazwaqar9251
    @maazwaqar9251 10 หลายเดือนก่อน

    Superb !!!!!!!!!!!!!!

  • @Epicsilverdude134
    @Epicsilverdude134 ปีที่แล้ว

    Very funny to see pacman scaring ghost with boo

  • @fdevstudio5692
    @fdevstudio5692 3 ปีที่แล้ว +1

    Hi, I want to ask you something. You learned c++ and sfml since when? how long it takes to learn it?

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว

      3 years I think. Keep in mind that I learned it passively.

  • @LewiLewi52
    @LewiLewi52 3 ปีที่แล้ว +1

    Really nice, remaking existing games is a nice way to learn. Just wondering why people want u to use an array over a vector?

    • @ka3bzq
      @ka3bzq 3 ปีที่แล้ว

      The is less overhead in fixed size array.

    • @reverendragnarok
      @reverendragnarok 3 ปีที่แล้ว

      It was known at compile-time so no reason to have all the resizing logic in there.

    • @tonetfal
      @tonetfal 3 ปีที่แล้ว

      Have you seen that he is using short and char to save 2-3 bytes? He tries to optimize a very light game in any way, even if it is so redundant and ridiculous

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว

      People kept telling me that I should use std::arrays instead of vectors. So that's what I did.

  • @davidthecommenter
    @davidthecommenter 3 ปีที่แล้ว

    i've just discovered your channel and holy shit you deserve a lot more people watching you than right now. take my subscription please!

  • @OscarKesh
    @OscarKesh 3 ปีที่แล้ว

    this is awesome

  • @kzcshorts5858
    @kzcshorts5858 2 ปีที่แล้ว

    Hello!please tell me which software u use for creating sprites,character,background,block,gun etc.I am learning inkscape for it.Is it worth learning.Plz reply.For 2d game

    • @Kofybrek
      @Kofybrek  2 ปีที่แล้ว

      Aseprite.

  • @tekkvega
    @tekkvega 3 ปีที่แล้ว

    there is 2 spots none of the ghosts can go, there are both of the pit of the T under the "ghost storage container", thats the one thing that i noticed, its actually nice that it doesnt work in your version :) unless it does

  • @abdullahmaqsoodhere
    @abdullahmaqsoodhere ปีที่แล้ว

    That is so good, I am torn between making this game as my semester project in C++ or C# (ps. I'm in second semester of CS). The thing is that I'm only good with C++ as of yet, should I learn the SFML library and go with developing it in C++ or learn C# (which I will need to learn within the next 2 months) to develop it in Unity or some other engine. Somebody help!! Any suggestions or Advice would be appreciated.

  • @SabeDoesThingsChannel
    @SabeDoesThingsChannel 2 ปีที่แล้ว

    underrated

  • @dancristian3673
    @dancristian3673 2 ปีที่แล้ว

    WHEN I DOWNLOAD YOUR SAMPLE AND COMPILE IT AFTER CONFIGURING MY VS IDE WITH SFML library it doesn´t work there´s a loop with strange code. could you provide me with the steps to configure VS IDE and sfml or the whole solution?

  • @yeppiidev
    @yeppiidev 3 ปีที่แล้ว +1

    hey bro you should considering buying a new microphone or adding a high pass filter to remove the background noise

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว +1

      Okay, thanks!

    • @yeppiidev
      @yeppiidev 3 ปีที่แล้ว

      @@Kofybrek btw you should try making an isometric voxel game in 3D using OpenGL and SFML in the next video 😉

  • @jayheartcalawag9679
    @jayheartcalawag9679 11 หลายเดือนก่อน

    Hi how can I run this in visual studio I need it for my project in school?

  • @SuperGibaLogan
    @SuperGibaLogan 4 หลายเดือนก่อน

    what program did you use to make this game?

  • @isaigm
    @isaigm 2 ปีที่แล้ว

    Hablas español? Tienes acento como de mexicano xD pd: geniales vídeos, me motivan a seguir programando 🙂

    • @Kofybrek
      @Kofybrek  2 ปีที่แล้ว +1

      ¡No hablo español, lo siento! Pero me alegra que te hayan gustado mis videos!
      P.S. I used Google Translate so this might be wrong.

  • @ledschmidt1441
    @ledschmidt1441 8 หลายเดือนก่อน

    Well.... you deserve tons of credit...but if any subscriber wants to take advantage of all your hard work...well they download your code.....right? Ok, but then when they go to load it or clone it to VS, UP jumps the devil.SFML what the hell is this?? There are a million configurations of this stuff with no idea HOW YOU set up yours, so I'd love to make this work but i can't. When you super coders use these add-ons and don't give a hint about how to set it up????

  • @lunaliiight2029
    @lunaliiight2029 7 หลายเดือนก่อน

    thankyouthankyouthankYOU Ill treat you to a meal any day

  • @hridoy4785
    @hridoy4785 5 หลายเดือนก่อน

    Please make tutorial for beginner step by step tutorial of how to make game on sfml

  • @ericzimmerman4804
    @ericzimmerman4804 ปีที่แล้ว

    what command did you type to run the file? I am using ubuntu for c++

    • @Kofybrek
      @Kofybrek  ปีที่แล้ว

      Sorry, I've never used Ubuntu so I can't help you.

  • @williamtomioka462
    @williamtomioka462 3 ปีที่แล้ว

    Hey guys. can any help with sfml? I don't know how to delete the object. I click on the sprite and it is painted white. but you need to delete

    • @soykiokin
      @soykiokin ปีที่แล้ว

      Use smart pointers to delete the object.

  • @atimoca5758
    @atimoca5758 3 ปีที่แล้ว

    Noice

  • @maxim25o2
    @maxim25o2 2 ปีที่แล้ว

    hmm I was hoping for type in from keyboard, rather to just talk what functions are needed. :/

  • @alexgamesandfun1261
    @alexgamesandfun1261 2 ปีที่แล้ว

    What program use for make the sprites

    • @Kofybrek
      @Kofybrek  2 ปีที่แล้ว

      Aseprite.

  • @tinominokendel9339
    @tinominokendel9339 ปีที่แล้ว

    How did you get all of the global variables?

    • @Kofybrek
      @Kofybrek  ปีที่แล้ว

      What do you mean? If you mean how I'm able to use them I just declare and define them in one header file and include that file in my cpp files.

    • @tinominokendel9339
      @tinominokendel9339 ปีที่แล้ว

      @@Kofybrek
      What I meant is that I don't understand how did you know that for example, the CELL_SIZE is 16 or that FRAME_DURATION is 16667 or any other variable in the Global header file.
      Sorry if the question wasn't that clear.
      Thank you for responding!

    • @Kofybrek
      @Kofybrek  ปีที่แล้ว +1

      @@tinominokendel9339 Oh, I came up with that by myself 😅. I did use the original game sprites' sizes as reference though. And when it comes to FRAME_DURATION I always make my games run at 60 FPS so each frame's duration is 16.667 milliseconds.

    • @tinominokendel9339
      @tinominokendel9339 ปีที่แล้ว

      @@Kofybrek I see, thank you :)

  • @Siddharth22699
    @Siddharth22699 3 ปีที่แล้ว

    What is the dev environment? I am trying to run this on my mac and it is not working. Please help me

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว +1

      If you mean the release version, then it's for Win32. If you mean you can't compile it, then I would like to know more about the problem, since I don't have a Mac.

    • @Siddharth22699
      @Siddharth22699 3 ปีที่แล้ว

      @@Kofybrek solved the issue. Thanks for you reply

  • @AnkitKumar-qx4fn
    @AnkitKumar-qx4fn ปีที่แล้ว

    code not working for me.

  • @denifnaf5874
    @denifnaf5874 3 ปีที่แล้ว

    Make custome mazes for it.

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว

      Well, you can just change the map_sketch array. Or you can change the code so that it loads the level from the image, which I did in my recent projects.

  • @elhadede6
    @elhadede6 3 ปีที่แล้ว

    Please can you make a
    Patreon

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว

      I already have one: www.patreon.com/Kofybrek

  • @Epicsilverdude134
    @Epicsilverdude134 ปีที่แล้ว

    Make pengo

  • @insomnio6412
    @insomnio6412 3 ปีที่แล้ว

    y el code?

    • @soykiokin
      @soykiokin ปีที่แล้ว

      In the description

  • @kulandaigeorgemariasingara5089
    @kulandaigeorgemariasingara5089 2 ปีที่แล้ว

    Where is the code?

    • @Kofybrek
      @Kofybrek  2 ปีที่แล้ว

      It's in the description.

  • @Spymixiu
    @Spymixiu 2 ปีที่แล้ว

    Make sonic the hedgehog

  • @Test-iv4pm
    @Test-iv4pm 3 ปีที่แล้ว

    Are you seriously using arrays instead of vectors?

    • @Kofybrek
      @Kofybrek  3 ปีที่แล้ว +1

      From now on, I'll make variables for each element.

  • @tonetfal
    @tonetfal 3 ปีที่แล้ว +2

    Your code is poorly readable and bad, for these reasons:
    - you use weird names for your variables, functions and files (file name must be a noun, not a verb. function name must be a verb)
    - you put some redundant or even confusing comments
    - you use some types (short, unsigned char), which easily mislead the reader, if you want to make a variable for velocity - use float instead, not a char, it is not logical; don't try to save 2-3 bytes, it will not make ANY difference
    - you use 0 and 1 instead of false and true to work with bools, even though you can just do not compare, since it is bool
    - you use so much global variables when it is not necessary
    - some of your functions don't do what they have to, for example, your draw_text function 1) loads a sprite 2) calculates text position in a very hard way, even you (as comments say) don't know what the code does 3) draws the text
    - your functions are so big, divide them into minor ones

    • @SDX2000
      @SDX2000 3 ปีที่แล้ว

      Haven't seen the video yet but this is good advice nevertheless. It's possible the presenter is just a beginner.

    • @550Pasha
      @550Pasha 3 ปีที่แล้ว +2

      haters gonna hate

    • @Ubermensch_DEV
      @Ubermensch_DEV 2 ปีที่แล้ว

      where is your code jerk

    • @tonetfal
      @tonetfal 2 ปีที่แล้ว

      @@Ubermensch_DEV On my Github, I guess.