Komentáře •

  • @Test-iv4pm
    @Test-iv4pm Před 2 lety +199

    Why can I so easily imagine a horror game simply called "Steven"?

    • @xhenryx14
      @xhenryx14 Před 2 lety +8

      I mean after seeing him from backwards and slowly rotating like that it's expected

    • @pixelrunner2775
      @pixelrunner2775 Před rokem +5

      If you can see him, he can see you. And you can always see him.

    • @magnuswootton6181
      @magnuswootton6181 Před rokem

      because ordinary life is already a nightmare.

    • @VGCCCCC
      @VGCCCCC Před 8 měsíci

      He did it

  • @markoftheland3115
    @markoftheland3115 Před 2 lety +43

    this is great, I love the fast pace of the video, the detail you go into and also the sense of progress - it's like I'm getting the pleasure of programming the thing myself but in a small capsule and all the hours debugging were stripped away

  • @Kofybrek
    @Kofybrek Před 2 lety +84

    UPDATE!!!! I UPLOADED THE NEXT PART: czcams.com/video/OpIS1zoz6fU/video.html
    This is the longest video I've ever made! So be sure to like it if you enjoyed it. It costs you nothing, but you'll make my day!
    Also, consider supporting this channel on Patreon for exclusive content as well as early access to future videos and projects: www.patreon.com/Kofybrek

  • @Test-iv4pm
    @Test-iv4pm Před 2 lety +8

    I appreciate that you store the rays in arrays

  • @plrc4593
    @plrc4593 Před 2 lety +26

    I've just made a simple raycasting engine and I can recommand one thing to all novices that are trying to make it as well: I tried the approach from 3:35 but found it surprisingly difficult. There was a lof of problems with the trigonometric functions that produced 0s and infinities, hence with the range of variables and also with checking cooridnates of walls etc... finally I gave up and used another approach from the channel The Coding Train. He used formulas for fiding intersactions between lines and line segments and
    1) I found it a lot of easier - no trigonometric fanctions!
    2) This gives much broader range of possibilities - the walls doesn't need to be perpendicular to each other any more. The map doesn't need to be divided to equal squares! :D

    • @nishanth6403
      @nishanth6403 Před 2 lety +2

      By formula, do you mean the Line segment intersection formula (usually used in Finding convex hulls ) ?

    • @plrc4593
      @plrc4593 Před 2 lety +2

      @@nishanth6403 I mean formulas provided by the channel. After writing the comment I figured out where they come from. Let me explain here.
      (1-t)*A+t*B
      is a line segment from A to B for 0=0 and 0

    • @burzum_
      @burzum_ Před rokem +1

      I also developed this solution but it is inferior to the dda algorithm because you check for each line segment for each ray.

  • @DeathAtYourDoorStep
    @DeathAtYourDoorStep Před 2 lety +1

    this is awesome, you explained everything in much more detail than i thought you would… and the code snippets just made it even better. dope video man

  • @CamiloGomezDev
    @CamiloGomezDev Před 2 lety +2

    This is incredible. Congratulations, it's amazing how entertaining yet informative this video is

  • @pixelrunner2775
    @pixelrunner2775 Před rokem +1

    the intro lasts literally just 6 seconds and jumps right into the video with no channel introductions or "but first" 's and I respect that

  • @scottpinkston5571
    @scottpinkston5571 Před rokem +2

    Please, let's see a part two! And thank you for posting your code! It is so helpful to a beginner like me.

  • @bob-zb3ed
    @bob-zb3ed Před rokem +2

    I love these kind of videos, fast and informative.

  • @acatisfinetoo3018
    @acatisfinetoo3018 Před 2 lety +2

    wow you cram so much information into these videos and yet still make it entertaining and enjoyable...that can't be said for the majority of programming channels.

  • @tekkvega
    @tekkvega Před 2 lety +1

    looks awesome! good work

  • @bioman1hazard607
    @bioman1hazard607 Před 2 lety +2

    Way to go, cant wait to see you add weapons or a HUD, I'd like to see that

  • @saadahmed688
    @saadahmed688 Před 2 lety +2

    You have earned a sub. Great content. Highly underrated.

  • @houcinechammakh4789
    @houcinechammakh4789 Před 2 lety +1

    Brother you are so underrated you deserve more, making a 3D game with no game engine is insane

  • @strawberrypancake3253
    @strawberrypancake3253 Před 2 lety +1

    Dude, you're hilarious! Loved the love for SFML

  • @SpencerYonce
    @SpencerYonce Před rokem

    I loved this video man!! I think I might make a devlog now, you have inspired me

  • @loszhor
    @loszhor Před rokem +1

    Thank you for the information.

  • @NightFoxPt08
    @NightFoxPt08 Před 2 lety

    Quality content! Subbed! Good job !

  • @toksic424
    @toksic424 Před 2 lety

    Just stumbled across ur channel. Great work! Very underrated channel. I will 100% share with friends.

  • @ChrisVideosGreek
    @ChrisVideosGreek Před 2 lety

    l like the fact he tries to explain every hardcore detail on how this works. You should never stop this channel!!!
    Btw an image generator will make this one of the best c++ fps xD

  • @jammincoder
    @jammincoder Před 2 lety +1

    I have never laughed so much watching a programming video 😆
    This is the first video of yours I've seen, you earned a new subscriber.

  • @logicprojectsspeed2023

    Great content as always

  • @Anonymousewizard
    @Anonymousewizard Před 9 měsíci

    honestly get so many laughs out of your videos, very funny guy!

  • @thatmcguy1799
    @thatmcguy1799 Před 2 lety

    Its very good! Working! Thanks.

  • @amosnimos
    @amosnimos Před rokem

    I am happy to have discovered your channel.

  • @Ezdiess
    @Ezdiess Před 2 lety +1

    Great video. Subbed

  • @plrc4593
    @plrc4593 Před 2 lety

    Great video! It looks amazing. I've just made my own raycasting engine, maybe thanks to you I'll learn how to texture the walls and how to refine the math.

  • @KingOfMadnesss
    @KingOfMadnesss Před 6 měsíci

    This shows how hard even the simplest things is to code in C++ and SFML

  • @Flippo731
    @Flippo731 Před 2 lety +11

    Great work! I'd love to see this continued!

    • @haizk
      @haizk Před 2 lety

      YES PLEASE! WITH SLOWER EXPLAINATION

    • @puppergump4117
      @puppergump4117 Před 2 lety +1

      @@haizk I think his point was to showcase what he did, not teach it. He obviously doesn't want a 40 minute video explaining every little thing when his code is linked in the description and there's plenty of material online to learn this stuff.

    • @haizk
      @haizk Před 2 lety

      @@puppergump4117 Maybe🤣😭 Yea, but I'm too dumb to understand his code by myself. I'm trying

    • @puppergump4117
      @puppergump4117 Před 2 lety +1

      @@haizk You're not going to understand it all in one go. True understanding comes from working with each concept many times. What he's showing is just one way of using the concepts. Just take it slow.

    • @haizk
      @haizk Před 2 lety

      @@puppergump4117 Thanks for your advice!

  • @elhadede6
    @elhadede6 Před 2 lety +1

    Thank you very much man

  • @domon41c
    @domon41c Před rokem +1

    Very good work:)

  • @arivanhouten6343
    @arivanhouten6343 Před 2 lety

    Great video!

  • @antomegaytb
    @antomegaytb Před 10 měsíci

    You sir, are a genius

  • @mrlucky974
    @mrlucky974 Před 2 lety

    That's awesome!

  • @ra1n_
    @ra1n_ Před 2 lety +1

    Awesome !

  • @RootsterAnon
    @RootsterAnon Před 2 lety

    You are really talented. And I like your avatar, especially eyelids of that guy(us/viewers) that jells at you for using vectors... xD

  • @emperor8716
    @emperor8716 Před měsícem

    I love this.

  • @otistically
    @otistically Před 2 lety

    Guy, your Gaelic accent just got me.

  • @CloudlessStudio
    @CloudlessStudio Před 2 lety

    This is very very impressive, this is like John Carmack levels of programming

  • @felusion6290
    @felusion6290 Před 2 lety +4

    if u keep on doing you can grow your channel to the skies of millions subs

  • @prodbytukoo
    @prodbytukoo Před 2 lety

    Yoo this is so good

  • @shaweewishissime6718
    @shaweewishissime6718 Před 2 lety

    very well explained in a funny way.
    Merci beaucoup mon ami.
    ;)

  • @birbylikesfox1032
    @birbylikesfox1032 Před 2 lety +5

    we need kofybrek subreddit

  • @stevenmitchell7697
    @stevenmitchell7697 Před 2 lety +43

    Most excellent work, trying to teach my pre-teen kids game programming and they love your videos. Before you get too carried away in 3D math recreating Quake after Wolfenstein, don't forget 2D Platform games like Donkey Kong / Super Mario Brothers. Like how do you run and jump with realistic momentum and gravity? How do you swap sprites to make the character look like it's walking/running/jumping/smashing? How do you scroll the screen sideways to move thru a level?

    • @lapto4676
      @lapto4676 Před 2 lety +4

      in reference to your first two question, I feel I may be able to help.
      1. You could make a run function where when active dX AKA direction X's speed is larger. You could make the function be used when a key e.g. shift is A. toggled B. held. For jumping, you could make a variable called gravity and find a good value for it so when you jump it counteracts your jump's speed. For realism you may want to use a method of having a max speed that you can go, yet when that speed is reached, the max speed increases, until you get to a max-max.
      2. For the sprites you may want to get a few frames of your sprite in different positions for each animation and loop through the images when the action is happening.
      I hope I helped.

  • @Test-iv4pm
    @Test-iv4pm Před 2 lety +3

    1:38 is a great mistake. It's like if your character has lost complete control. It reminds me of yandere sim, and of the madness combat series.

  • @burzum_
    @burzum_ Před rokem

    Awesome work lol

  • @negai_
    @negai_ Před rokem +1

    9:25 This is my favorite part in the video xD

  • @124k3_
    @124k3_ Před 6 měsíci

    hmmmmmmmmmmmmmm.....(thousand yard long stare )..... i learnt a lot

  • @fdevstudio5692
    @fdevstudio5692 Před 2 lety

    Cool bro, I learned programming since 2020, I learned some programming languages such as scratch, python, java, javascript, lua, c and c++. Python is my favorite programming language, I make a game in python using a library called pygame. I learned c++, so I going to learn sfml, so I am a sfml beginner, I hope I can master c++ and sfml too.

  • @mindaugassvajoklis3072
    @mindaugassvajoklis3072 Před rokem +1

    I realy want to see part 2

  • @deepvertic
    @deepvertic Před 2 lety +1

    Actually Doom did not use Raycasting but rasterization using BSP (binary space paritioning) :D

  • @le9038
    @le9038 Před 2 lety +1

    this was really interesting! I am looking to do something like this inspired by doom (1993) and arsenal...

  • @msmalik681
    @msmalik681 Před 2 lety

    I want to see part 2

  • @treyhenry4796
    @treyhenry4796 Před 2 lety

    OMG this is soop satisfying

  • @ClooverDev
    @ClooverDev Před 2 lety

    the dude just explained Doom's code and made the Doom: Friendly Edition

  • @2dapoint424
    @2dapoint424 Před 2 lety

    i love steven!! Please make this into a game.... for steven!!

  • @akshatrai1800
    @akshatrai1800 Před 2 lety +1

    Mind blowing video. Great work It’s very impressive. Please suggest some books or courses to gain this kind of knowledge in programming.

    • @Kofybrek
      @Kofybrek Před 2 lety +1

      I read the book "Beginning C++ Through Game Programming" by Michael Dawson to learn the basics.
      Then I watched a bunch of CZcams videos on topics I was interested in.

    • @akshatrai1800
      @akshatrai1800 Před 2 lety

      @@Kofybrek okay. Thanks for the suggestion.

  • @sebastianwardana1527
    @sebastianwardana1527 Před rokem

    dude, that was amazing... i mean... that simple? just boom... books math... old school 3d... everybody else just cant build a 2d game and make it 3d? you make it look so simple! i cant do it... but thats just magic you know... time is magic too, if you really think about it.

  • @psychotank6577
    @psychotank6577 Před 2 lety

    9:26
    *His body was never found...*

  • @edithfigueroabarros5571

    Me just copying the raycasting code to make my ray tracer program: 👀👀👀

  • @dtalaverin889
    @dtalaverin889 Před 2 lety

    Please second part 🙏

  • @BasedGamer12
    @BasedGamer12 Před 7 měsíci +1

    Just a correction, no DOOM doesn’t use raycasting it uses BSP.

  • @SabeDoesThingsChannel

    you should make a part 2 and add weapons or something

  • @hassanbo8200
    @hassanbo8200 Před 2 lety +4

    Will you make a tutorial for these games?
    Btw your videos are awesome.. Keep it up

    • @Kofybrek
      @Kofybrek Před 2 lety +2

      Glad you liked it! I'll think about making tutorials.

    • @nikkiofthevalley
      @nikkiofthevalley Před rokem

      This is basically a tutorial already, he tells you what to do..

  • @chuotpado7592
    @chuotpado7592 Před 2 lety +2

    L like it so much

  • @woff5
    @woff5 Před měsícem

    my head kaput

  • @plrc4593
    @plrc4593 Před 2 lety

    You're using SFML? It does use OpenGL, doesn't it? I'm asking because I added texturing in my raycaster in SDL and it's unplayabe becuse it's that slow. I'm wondering what you (you and authors of other tutorials) are doing that texturing works so fast for you. :D

    • @Kofybrek
      @Kofybrek Před 2 lety

      I don't use SDL so I can't answer your question. Sorry!

  • @WinterNox
    @WinterNox Před 2 lety +2

    9:18 I like Steven so calm :)

  • @user-dn3pn1uw7h
    @user-dn3pn1uw7h Před 8 měsíci +1

    Bro I got a question, whats happen with the second part of the tutorial

  • @effdotsh
    @effdotsh Před 2 lety +4

    You should probably start packing. Steven is coming...

  • @honlt4678
    @honlt4678 Před rokem

    Reminds me of scratch

  • @cjgamesstudios3289
    @cjgamesstudios3289 Před 2 lety

    Do you want to actually not re-casted it looks like it was requested but recasting cannot have walls that are not equal in height and the way they pulled off the 3-D with doom is impressive

  • @meerjel0120
    @meerjel0120 Před rokem

    I will find this as a passage for my own raycaster. Great work! Hope to make multiple wall textures and multi-elevated sectors possible.
    EDIT:
    There is a tutorial about how to make sectors and such possible but I guess I can't send a link to it here since I did it once and it disappeared.

  • @nitrogenez
    @nitrogenez Před 2 lety

    7:16
    HM.
    blue.
    yellow.
    HMMMMMMM.

  • @amop2250
    @amop2250 Před 2 lety

    what website do you use for the sfml shape types?

    • @Kofybrek
      @Kofybrek Před 2 lety

      I use the official SFML website: www.sfml-dev.org/tutorials/2.5/graphics-vertex-array.php

    • @amop2250
      @amop2250 Před 2 lety

      @@Kofybrek Thank you so much! this will help a lot in my little 3d project

  • @Jkauppa
    @Jkauppa Před rokem

    3d dda true 3d caster engine, check cherno ray tracing/casting

    • @Jkauppa
      @Jkauppa Před rokem

      z-buffer maan

    • @Jkauppa
      @Jkauppa Před rokem

      not much more complex than blitting sprites, more pixels, per sprite

    • @Jkauppa
      @Jkauppa Před rokem

      entity ray casting, so you have 3d model, of even a 2d character, flat 3d model, in the ray casting grid

  • @khafidzridho-
    @khafidzridho- Před 2 lety

    easy way ekonomi yang LOL yang dimaksud window? Xperia Z1 Compact

  • @RemotelyHuman666
    @RemotelyHuman666 Před rokem

    Part two?

  • @Test-iv4pm
    @Test-iv4pm Před 2 lety +1

    2:28 no comment

  • @DE012471
    @DE012471 Před 2 lety

    Where part two?

  • @Junkman
    @Junkman Před rokem +1

    You should do make things hard on yourself

  • @thelanguagegeek6207
    @thelanguagegeek6207 Před rokem

    why did you quit your first channel

  • @ncot_tech
    @ncot_tech Před 2 lety

    Soring the rays in an array, and then using a vertex array to draw the rays, from the arrays 😆

  • @rayyanhaider8593
    @rayyanhaider8593 Před rokem

    I'm a beginner can recommend me a good raycasting course where everything is explained beginner friendly

  • @ModdinMC
    @ModdinMC Před 10 měsíci

    lmao steveennn

  • @HalfAsleepSam
    @HalfAsleepSam Před 2 lety

    This video is giving me a panic attack, the jarring intro, the music, the way he talks so fast.

  • @zappafurious
    @zappafurious Před rokem

    3:31 Doom didn’t use raycasting

  • @jasm0_0
    @jasm0_0 Před 2 lety

    part 2

  • @ninebysixteen222
    @ninebysixteen222 Před 2 lety

    Can you make chess ? 😁

  • @tedeusz83
    @tedeusz83 Před rokem

    You mess up here.. you were using Lodev approach from its tutorial as you showed. There is No need to make fisheye correction and rest that voodoo with filling gaps. You took very optimized algorithm and made it.. unoptimized ;-) anyway "correction" means that something is not well done and need fixing, you can make it correct "out of box" as in Lodev tutorial..

  • @WinterNox
    @WinterNox Před 2 lety +1

    Hey I made a raycaster too but I'm not a programmer so yeah it's terrible

  • @Spymixiu
    @Spymixiu Před rokem

    Day 1 of asking of sonic

  • @bailey2652
    @bailey2652 Před 7 měsíci

    Woo, I understand none of that.
    Cool stuff tho

  • @v0xl
    @v0xl Před rokem

    the way you handle your mouse input is trash, you can't get subpixel precision and mouse tends to be moved to the wrong pixel on weird revolutions causin inputs to get stuck. You should handle mouse input directly from the Device struct, and just confine/lock cursor to the window and hide it

  • @easylemon6640
    @easylemon6640 Před rokem +2

    Doom was NOT made with raycasting.

  • @shrippie-4214
    @shrippie-4214 Před 2 lety +1

    Open gl better xD

    • @Kofybrek
      @Kofybrek Před 2 lety

      I know. But I don't know. So, y'know.

  • @Whatabcdef
    @Whatabcdef Před 2 lety

    I can only code this
    Falseff2 .,(2 true)
    Rick.(rolls) with - fish

    • @Whatabcdef
      @Whatabcdef Před 2 lety

      Omg i relized i can code in fortnite!!