2 Months of Learning How to Code for Games with SFML / C++

Поділитися
Вставка
  • Опубліковано 20 вер 2024

КОМЕНТАРІ • 103

  • @raulsantandertirado4400
    @raulsantandertirado4400 3 місяці тому +20

    It's astounding how much you accomplished within only 2 months

  • @hell_with_it
    @hell_with_it 5 місяців тому +37

    I started coding in C++ with use of SFML few days ago. You gave me a motivation🤩🤩

  • @sveticus
    @sveticus 14 днів тому

    Great work! I just started my own SFML / desktop coding journey (I'm an embedded systems developer by trade and history). This gives me confidence that if I keep working a little bit each day that I can see some good results in a few months.

  • @maximoibarra5866
    @maximoibarra5866 2 місяці тому +5

    ONLY 2 MONTHS!?!?!?
    YOU ARE INSANE BRO!
    Good job, new sub!

  • @Lavrhard
    @Lavrhard 7 місяців тому +25

    That is good job. I am exploring it myself.

  • @kinershah464
    @kinershah464 4 місяці тому +5

    All this in 2 months. That's seriously awesome man. I recently also published a simple game made using SFML. But what you have done is crazy, keep it up. And yes repo link please.
    And seriously make some more videos and teach how you did all this, people will like it.

    • @TuysuzTavsan
      @TuysuzTavsan  4 місяці тому +1

      Original project is loss due to me not knowing how to use git. I deleted files when trying to push via visual studio lol.

    • @kinershah464
      @kinershah464 4 місяці тому +1

      @@TuysuzTavsan OMG! Sad to hear that..

  • @ii7mdj_353
    @ii7mdj_353 2 місяці тому +1

    2 months??? I’m having higher expectations for the future bro! Keep it up!!!

  • @molodec4304
    @molodec4304 Місяць тому

    I'm leave comments rarely, but I impressed by music (already add to my playlist), enjoyable editing and ambitions for such a small channel. I hope you will keep move forward to your goal! Good luck!

  • @PeterKilian
    @PeterKilian 2 місяці тому +5

    came for the code, stayed for the vibe.

  • @WutDaHek69420
    @WutDaHek69420 3 місяці тому +2

    it was really motivating for someone who just started out , kudos man

  • @Sirbozo
    @Sirbozo 3 місяці тому +4

    im your 90th sub plus even nvidia thing pops up like it knows this is a game

  • @chsdfsbwersdf2568
    @chsdfsbwersdf2568 7 місяців тому +5

    First of all, it is impressive that you have learnt so much in such a short time, congratulations!
    If you don't mind me asking, what would you say was the most important factor that made you learn so fast? I tend to over-analyse everything, so that's why I'm asking.

    • @TuysuzTavsan
      @TuysuzTavsan  7 місяців тому +6

      I would say that your impression of so much is not quite right. Graphics are just a fancy illusion. Behind the scenes everything you see in this video is poorly written code without any design decisions or experience. I even accidentally deleted all my code for the terrain project while trying to upload it to github from visual studio. (I was trying to use github for the first time. And never used visual studio for it since then lol. I mean why would it delete my code?? who made it that way...)
      I remember all the struggles.
      Downloading a compiler and trying to add it to environment variable...
      Header and source file struggle
      what is linker?
      What is a dll? what is static linking
      Downloading cmake to build some library (sfml glfw etc) what is even cmake?????
      What's an ide what is a text editor...
      Should i use vscode or vs?
      should i download linux?
      What is debug mode??
      Should i use sfml or sdl ??
      How do you even create a window without sfml???
      What do you mean windows are platform specific ??
      What is opengl and vulkan???
      In the core of every subject, its actually simple. But you may need some time to learn it, thats how it is.
      I like to set goals and record or simply keep a record of achieved goals. But every people is different.

    • @TheCourtJester.
      @TheCourtJester. 7 місяців тому

      if you dont know where to begin, i just started myself learning about it, and videos from dave churchill arent bad, he posts his lectures from uni on youtube, hes using sfml for his lectures

    • @CSDex
      @CSDex 4 місяці тому

      @@TuysuzTavsan When the openGL video comin?

  • @erdemozverenn
    @erdemozverenn 2 місяці тому

    2 ay için inanılmaz bir ilerleme, başarılar kardeş.

  • @Pedro-jj7gp
    @Pedro-jj7gp 3 місяці тому

    Awesome! Could you give me a brief overview of how you achieve the following things?
    1 - Grid / tileset editor. How can you make the tileset / grid move around and how you can draw tiles on the grid? And within the tileset, do you hardcode drawing the sprites one after the other or how do you manage that?
    2 - Can you give me an idea of how the UI system works?
    3 - How do you draw 3D blocks of the 2D ones from your colored noise texture? And how can you make the world move around based on mouse position? Do you make your world a big bigger but only render the center, so you can pan around...?

    • @TuysuzTavsan
      @TuysuzTavsan  2 місяці тому

      1- I dont remember how, probably holding sprites on the array and drawing them. Order does not matter since they dont overlap. And probably one window has the responsibility to draw its content, so i dont really have to hardcode anything about position.
      2- Thats a very hard question. By the time I was developing things in this video, i didnt even know how computers render things in the monitor. Every GUI is different in some aspect, but they all have some commen like: Input system, Render System, Storing information.
      3- They are not 3D blocks. They are isometric tiles which is 2D. I dont move the world around. World is rendered with double for loop. If you change index when mouse moves, you get to move around the world. yes based on the mouse position

  • @harrisonhakinensouza
    @harrisonhakinensouza 2 місяці тому +1

    awsome you'are a excellent programmer, congrats!

  • @aribarzilai2
    @aribarzilai2 2 місяці тому

    Great job ! I would love to see how you made this if possible. If you do end up uploading this to github that'd be awesome.

  • @ziphy_6471
    @ziphy_6471 4 місяці тому +1

    Man I hope one day I'll have your coding expertice

  • @mr.milindsingh7671
    @mr.milindsingh7671 4 місяці тому +1

    This is so great. Amazing work man. This is exactly what I was looking for.
    Can tell me where did you learn it from ? Any sources?
    I also have to make a physics engine for my academic work and god knows I dont know where to start from.
    Pleaaseee hellppp!!

  • @sinahasani5736
    @sinahasani5736 5 місяців тому +2

    It was great bro, I love it ❤🎉

  • @TheSlashvanhalen
    @TheSlashvanhalen 5 місяців тому +2

    awesome. I'm unemployed atm and want to improve my cpp skills as i look for a job. I've always felt a little intimidated by game development even though I have wanted to give it a shot for a long time. Your video has given me the inspiration to just go for it. Thank you! Did you use any specific resources to learn cpp and sfml specifically?

    • @TuysuzTavsan
      @TuysuzTavsan  5 місяців тому +1

      Nothing really specific, here is my recommendation to learning anything code related:
      If you think you can somehow do it on your own then do it.
      Else if you think you can pull it of by reading some documentation or by getting hint, then search for them.
      Else if you dont have any info about the problem, look it up on web and try to find a person who approaches to problem on a video or in stream.
      Reading general stuff about c++ or library also helps a lot in the way and you should be doing that constantly. Example: learning how threads work is a nice goal for every programmer.

    • @CSDex
      @CSDex 4 місяці тому +1

      The Cherno for cpp.

  • @sach_in_sigma
    @sach_in_sigma Місяць тому

    Well don't know if I could accomplish the same in 2 months but the song is great❤

  • @Gabriel_Oliveira_13
    @Gabriel_Oliveira_13 6 місяців тому +2

    oh boy, you are amazing

  • @PanWojtek
    @PanWojtek Рік тому +4

    nice video and coding skills

  • @HiddeNoob
    @HiddeNoob 2 місяці тому

    olm yabancısın diye izliyodıum BOŞŞŞ yazdığını görünce şok yaşadım helal bro başarılar

  • @nathanielthomas4437
    @nathanielthomas4437 4 місяці тому +1

    Incredible!

  • @Yukine-ub8ld
    @Yukine-ub8ld 3 місяці тому +1

    amazing ,good job!

  • @ProjectMarzDev
    @ProjectMarzDev Місяць тому

    this is insane i just started with sdl2 and i cant wait to be as good as you! :0, can i know what series you used to learn c++? please

    • @TuysuzTavsan
      @TuysuzTavsan  Місяць тому

      ua-cam.com/video/SfGuIVzE_Os/v-deo.html
      www.youtube.com/@MustafaSibaiDev/streams
      ua-cam.com/video/-TkoO8Z07hI/v-deo.html
      ua-cam.com/video/s0g4ty29Xgg/v-deo.html
      i used mostly brocode and cherno. MustafaSibai helped me get out of tutorial hell.

  • @H4_Hassan
    @H4_Hassan 11 місяців тому +3

    great job ❤

  • @UliTroyo
    @UliTroyo 2 місяці тому

    SFML == 'shake f*cking my life'

  • @hadedev
    @hadedev 4 місяці тому +1

    Really goood video!

  • @Mahdi12
    @Mahdi12 2 місяці тому

    I want to really make games but I can't learn C++ or coding for the life of me. C++ was my first but even after a year, i'm still bad at it. Hopefully I still practice more and get the hang of it. I wanna create my own Infamous Game or Sonic 3D game soon.

  • @hansu7474
    @hansu7474 6 місяців тому +1

    Good job mate!

  • @koloxzhitan
    @koloxzhitan 11 днів тому

    What are the minimum and necessary C++ knowledge requirements to start with SFML? How did you do it?

  • @alvivcald
    @alvivcald 3 місяці тому

    It's cool! Can u tell me what class did you inherit from to implement the button? :) I used the CircleShape class but i think its unnecessarily

  • @ClaraTony-m2z
    @ClaraTony-m2z 4 дні тому

    Young Steven Garcia Brenda Clark Scott

  • @hernanbrue
    @hernanbrue 2 місяці тому

    Great work! It's motivating to see your video. I program video games in my free time with C# and I've always wanted to try C++. Is the work and effort worth it? On the other hand, I also wanted to ask where you got the resources to learn everything you did. Thanks and congratulations on the video!

    • @TuysuzTavsan
      @TuysuzTavsan  2 місяці тому +2

      I would say just try it if you want to, it shouldnt be a problem since you know C#.
      But if you are asking if there is any benefit of learning it. I think the answer is no.
      You wouldnt use c++ to make a indie game alone. You would be better off developing games on a game engine, which is your initial intent.
      I think you could use that precious time to learn something that will be usefull to you instead of might be usefull to you.
      As for the resources I dont recall any particular one. I was just reading stuff that i dont know on somewhere or searching answers around the net.

    • @NoSpeechForTheDumb
      @NoSpeechForTheDumb Місяць тому

      ​@@TuysuzTavsanexcellent and honest advice! If you want to make a game, use a game engine. If you want to make a game engine, use C++.

  • @KernelKing1
    @KernelKing1 Місяць тому

    nice

  • @cheloveki8138
    @cheloveki8138 2 місяці тому

    It's good, but it's so difficult to find good explain videos

  • @Ynafey
    @Ynafey 2 місяці тому

    Hey I have a question how did you optimize to render so many 3d cubes? My computer starts slowing once I hit like 100*100 cubes. Any hints?

  • @sadafdev
    @sadafdev 3 місяці тому +1

    Can I ask you what resources you used to learn C++ and SFML. If that is any free tutorial/course or documentation, please give me the link of that :>

  • @abdulwasay81
    @abdulwasay81 4 місяці тому +3

    No fucking way this is in 2 months, can you please give a more realistic month number? If this is in 2 months with the courses then either you a genius or grinding 14 hours everyday

  • @WashingtonJoseph-d5r
    @WashingtonJoseph-d5r 15 днів тому

    Darwin Locks

  • @funcieq_
    @funcieq_ 2 місяці тому

    polska gurom❤

  • @psibarpsi
    @psibarpsi 29 днів тому

    hey, does anyone here know how to get a job with sfml? or if it's even possible to land a good job with sfml? even good freelance projects work. but i need to make money.

  • @clarencehernandez6606
    @clarencehernandez6606 7 місяців тому +2

    Where or how do you learn sfml. Can you give a websites or video links that will also help me to learn it

    • @TuysuzTavsan
      @TuysuzTavsan  7 місяців тому +3

      Its obviously their documentation. However I do know that for a beginner, trying to read throughout the documentation is hard and not really helping.
      And lack of information about general stuff such as computer graphics, audio and platform specific things makes it only harder.
      However I dont remember any resource I used while learning it.
      Maybe only usefull advice i can give is:
      Find anyone that you like and watch how they use the library, how they deal with things that they dont know about library, how they use the documentation.
      Also I remember looking up stuff I dont know. Such as what is delta time and gameplay loop.
      Eventually you will build up knowledge and everything will get easier as you go.

  • @yoghurtlover3660
    @yoghurtlover3660 5 місяців тому

    Helal olsun, eline sağlık

  • @ic6406
    @ic6406 2 місяці тому

    Yeah, I do not believe that you learned C++ in two moths this way without memory leaks or something. I guess you already was an experienced C++ developer and gamedev developer in one of the major engines (I bet it was Unity)

  • @egemenklnc997
    @egemenklnc997 8 місяців тому +1

    Eline sağlık. Öğrenme aşamanda hangi kaynakları kullandın ?

    • @TuysuzTavsan
      @TuysuzTavsan  8 місяців тому +2

      ua-cam.com/video/SfGuIVzE_Os/v-deo.html
      www.youtube.com/@MustafaSibaiDev/streams
      ua-cam.com/video/-TkoO8Z07hI/v-deo.html
      ua-cam.com/video/s0g4ty29Xgg/v-deo.html
      Genel olarak önce nesoacadmy nin videolarına baktım da çok beğenmedim onları
      sonra codebronun serisini bitirdim
      sonra cherhonun baya bi videosunu izledim c++ serisindeki
      sonra Mustafa Sibainin 2d serisindeki 24 canlı yayını izledim
      webde geeksforgeeks güzel her hatayı stackoverflowda orda burda aratırdım yani genel olarak
      biraz c++ kitabı okumaya çalıştım ama çok sıkıcıydı
      bu videoya kadar bunları yapmıştım
      Sonrasında opengl öğrendim(hala öğreniyorum)
      design patternlera alışmaya çalışıyorum gameprogrammingpatterns diye site var orası güzel
      godot oyun motorunda online minimal bir oyun yaptım ( sunucu falan kiralamıştım) o baya bişi kattı(oyun denemez pek)
      Şimdi design patternlarla güzel bi satranç klonu yapıyorum opengl ile (baya overkill ama olsun yapcak bişi yok hatta küçük bir c++ scripting tarzı bişi yaptım diyebiliriz)
      Bişiler yapmak en iyisi ama küçük ama büyük, anlamlı anlamsız. Çok zamanım yok üniversite nedeniyle ama devam ediyorum çok severek, okuyarak.

    • @egemenklnc997
      @egemenklnc997 8 місяців тому

      @@TuysuzTavsan teşekkürler dostum, iyi çalışmalar.

    • @TuysuzTavsan
      @TuysuzTavsan  8 місяців тому

      @@egemenklnc997 bol şans

  • @ImHlkari
    @ImHlkari 21 день тому

    what series or resources did you learn sfml from?

  • @yagan_dawn2008
    @yagan_dawn2008 28 днів тому

    Hi my friend. Can you tell me what resources did you use to learn?

  • @dazaizer0
    @dazaizer0 9 місяців тому

    nice!

  • @mustafacetin9076
    @mustafacetin9076 2 місяці тому

    how do you simulate the bouncing ball?

  • @jalaleddinhabibi3244
    @jalaleddinhabibi3244 3 місяці тому

    It’s not kebab it’s kabab!

  • @vladislav6700
    @vladislav6700 4 місяці тому

    I have a question.
    Was it a real 3d project or just a sprites with illusion of 3d blocks?
    I need the answer because this project gave me a motivation and i want to rewrite this project in my own.

    • @TuysuzTavsan
      @TuysuzTavsan  4 місяці тому +1

      sprites with illusion of 3d blocks

  • @ClaraTony-m2z
    @ClaraTony-m2z 17 днів тому

    Hernandez Eric Davis Donald Thomas Joseph

  • @Amadorse
    @Amadorse 2 місяці тому

    adamsin

  • @psibarpsi
    @psibarpsi 29 днів тому

    i wanna see the code.

  • @emrecankaya8149
    @emrecankaya8149 3 місяці тому

    Merhaba, C, C++ ve Assembly programlama dilleri için önerebileceğiniz eksiksizce kapsamlı bir şekilde anlatan kaynaklar var mı?

    • @TuysuzTavsan
      @TuysuzTavsan  3 місяці тому +1

      birden fazla yerden neye ihtiyacın varsa onu öğrenmek bence daha iyi, kapsamlı önerebilecek bir kaynağım yok.

    • @emrecankaya8149
      @emrecankaya8149 3 місяці тому

      @@TuysuzTavsan Teşekkür ederim.

  • @notdeus3834
    @notdeus3834 4 місяці тому

    amazing! where'd you learn it?

  • @ramicollo
    @ramicollo Місяць тому

    Did you start of as a total newbie?

  • @ADNANADNAN-up9xj
    @ADNANADNAN-up9xj 4 місяці тому

    هذا الذي لبحث عنه اريد تعلمه من فضلك ☺

  • @jeroincababat565
    @jeroincababat565 5 місяців тому

    Where to learn SFML on youtube?

  • @AltanAlpA
    @AltanAlpA 2 місяці тому

    tr 🐺

  • @archiblush
    @archiblush 16 днів тому

    Brown Linda Clark Matthew Young Susan

  • @brettrogers4208
    @brettrogers4208 6 місяців тому +1

    holy fuck

  • @muhammedyldz1593
    @muhammedyldz1593 Місяць тому

    c++ için nerden kurs aldın knk?

  • @hmm2532
    @hmm2532 9 місяців тому +1

    can u provide these codes?

    • @TuysuzTavsan
      @TuysuzTavsan  9 місяців тому

      Unfortunately when i was trying to upload it to github via Visual studio interface, somehow visual studio deleted my project....
      I believe, visual studio tried to fetch instead of a push. (Of course it is my fault, probably missclicked a button. But still it shouldnt delete my project just like that...)

  • @imanalien4129
    @imanalien4129 8 місяців тому

    I can't setup SMFL on my Mac, help

    • @DRAGNIL68
      @DRAGNIL68 7 місяців тому +2

      I spent 2 weeks setting it up, you will manage it eventually

    • @jorik170
      @jorik170 7 місяців тому

      use Homebrew mate(to install SFML), and compile manually each .cpp file into one executable through terminal including libs

    • @jorik170
      @jorik170 7 місяців тому

      @@DRAGNIL68 me too, I spent quite some time to set it up

  • @shannsalamingan406
    @shannsalamingan406 6 місяців тому +2

    Bruh the memory leaks a lot .

    • @TuysuzTavsan
      @TuysuzTavsan  6 місяців тому

      What do you mean by that, can you explain a bit more please.

    • @shannsalamingan406
      @shannsalamingan406 6 місяців тому +1

      @@TuysuzTavsan you see that diagnostic tool right? the graph thing, the basic movement of the rpg character, you got over 100mb memory while i have 30mb or lower. We both have rpg charac

    • @TuysuzTavsan
      @TuysuzTavsan  6 місяців тому +1

      yeah but its not always means memory leak right? Hope I had source code for that one so I could check.

    • @saltedavocado8006
      @saltedavocado8006 6 місяців тому +3

      @@TuysuzTavsanif you allocate memory. Malloc or new. YOU MUST CALL FREE/DELETE!!!!

    • @Bingo901
      @Bingo901 5 місяців тому

      @@saltedavocado8006or just use smart pointers and modern cpp idioms