Code-It-Yourself! Simple Tile Based Platform Game #1

แชร์
ฝัง

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

  • @ethangarnier8416
    @ethangarnier8416 6 ปีที่แล้ว +155

    I went from developing in C to developing in C++ because of your fun and interesting videos

    • @javidx9
      @javidx9  6 ปีที่แล้ว +20

      That's great Ethan!

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

      @@javidx9 helloooo

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

      linus hates you lmao

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

      I think c is much simpler

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

      @@geraforever796 It is simpler. That's because C++ also has more complicated mechanisms than C. For some of those things, C programmers like to stay with C and implement those themselves.

  • @DavoMelendez
    @DavoMelendez 6 ปีที่แล้ว +64

    buddy, I want to make a public acknowledgment to your work...
    you explain briefly, clearly and extremlly good.
    I have learned a lot from C++ programming just by watching your videos.
    Best thing of all, they're fun...
    greetings from Venezuela.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +8

      Hey Davo, apologies for the late reply, Thanks for support, it's always pleasing to hear someone is finding the videos informative. Greetings!

    • @n.ryuudakku4916
      @n.ryuudakku4916 4 ปีที่แล้ว

      mira si es un compatriota, tambien estoy aprendiendo gracias a OLC a programar en C++(vengo de C# y JAVA), me alegra ver que no soy el unico con ideas de progreso informatico en el país.
      Thanks for all Javidx9, u´r my hero man!

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

      @@n.ryuudakku4916 que tal hermano si desde hace tiempo me ha gustado el lenguaje c++ porque sirve para realizar cualquier tarea... saludos desde Maracaibo

    • @n.ryuudakku4916
      @n.ryuudakku4916 4 ปีที่แล้ว

      @@DavoMelendez Eres Hermano maracaibero!, saludos desde la ciudad mas bella de este continente también para vos!

    • @paulo0651
      @paulo0651 4 ปีที่แล้ว +2

      @@n.ryuudakku4916 También soy Venezolano jaja y soy de Maracaibo también jajaja. No puede ser que nos encontramos tres Maracuchos. Aunque ya no vivo allá.

  • @Inevitablerizzler
    @Inevitablerizzler 6 ปีที่แล้ว +84

    Love your videos, even if I already know these things, I like to see your way of teaching them.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +8

      Hey Stephan, thanks! This topic is well covered I think, but I've had a few requests to do it. It's also a nice contrast to the real collision routines in the last video.

    • @Kole-jb8yb
      @Kole-jb8yb 4 ปีที่แล้ว +1

      Humble braggs

  • @maximgasai1349
    @maximgasai1349 5 ปีที่แล้ว +11

    Using the idea of your algorithm I created more accurate way to detect collisions in my game. Thanks a lot.

    • @javidx9
      @javidx9  5 ปีที่แล้ว +2

      Thats great Maxim!

  • @RogueShadowTCN
    @RogueShadowTCN 5 ปีที่แล้ว +12

    I did indeed forget it was the console window.
    Classy.

  • @Nikarus2370
    @Nikarus2370 4 ปีที่แล้ว +36

    16:50 "not that impressive so far"
    I mean, I think its pretty damn impressive to get that much up and running with so few lines of code, and so elegantly. The olcGameEngine is pretty solid NGL. Orders of magnitude better than the engine I wrote in college to make a similar game concept for a final project where even getting this much of the game up and running would have been ~300+ lines of code (not including level design).

  • @biosigil6164
    @biosigil6164 6 ปีที่แล้ว +17

    Your videos have helped me learn C++ so quickly. Thank you for the high quality content

    • @javidx9
      @javidx9  6 ปีที่แล้ว +5

      Hey thanks BioSigil - it makes it worth while when you say things like that. Good luck with your study!

  • @SWAGCOWVIDEO
    @SWAGCOWVIDEO 5 ปีที่แล้ว +6

    You have no idea how helpful this is! I've done so much searching online for a simple yet effective way to implement collisions in 2d platformers only to come up with solutions with mediocre results. After so many pages of sketches and code the solution was to check the corners based on where the player was moving... Awesome!

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

      Great to hear SwagCow, im glad it was useful!

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

      Grrrr

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

      Girrr

  • @wixic111
    @wixic111 6 ปีที่แล้ว +4

    I've been looking for a good answer to collision detection for a few days now and I can't believe how almost perfect this advice was for my situation, much more simple to implement and just as robust in my situation as anything like minkowski differences and anything else etc. This video was a great help! Thanks :)

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

      No problem! Cheers!

  • @simmonscarl1
    @simmonscarl1 6 ปีที่แล้ว +5

    I really enjoy the way you explain your coding approach to solving the game scenarios. Well done.

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

      Cheers Carl!

  • @guylianwashier4583
    @guylianwashier4583 5 ปีที่แล้ว +30

    "Take that visual studio code"
    Me: *Laughs in overtype extension*

  • @zal9706
    @zal9706 6 ปีที่แล้ว +4

    Thanks so much for making this, even if I don’t follow along in all these videos it gives me a good idea on how things are working together in the code

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

      Hi Zal, thanks I'm glad you find them useful!

  • @iaml2909
    @iaml2909 4 ปีที่แล้ว +6

    I love this channel so much.
    Bro, thanks. I have learned a lot with u videos. Love from brazil! Keep it up 💪

  • @ramonlopeznote
    @ramonlopeznote 5 ปีที่แล้ว +2

    Thanks a LONG LONG INT number of millions for your fantastic videos! Keep them coming

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      Lol thanks Ramon!

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

    Your channel should have much more views. I really enjoy your work. Cheers from Turkey!

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      Hi Mansur, Cheers! I dont mind the low numbers, as long as people enjoy the content and learn from it I'm happy!

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

    Your videos are what I have been looking for when it comes to tutorials. Thank you for making these!

  • @aryesegal1988
    @aryesegal1988 6 ปีที่แล้ว +2

    Awesome! Another javid video. Liked before seeing :)
    Thank you very much for these.
    Looking forward for more!

    • @javidx9
      @javidx9  6 ปีที่แล้ว

      I need some sort of loyalty scheme for the long time supporters like yourself! :D

  • @seditt5146
    @seditt5146 6 ปีที่แล้ว +2

    Very similar to the Collision detection I was using for the platformer I was Tinkering with Javid, Since many tutorials I see online suggest all sorts of stuff like checking every tile within specified vicinity etc .... Its nice to see someone else starting with the corners like I decided to do as well... I test the 4 corners, Then I test middle bottom +1 block in the Y axis to decide if the jump/falling Flag should be set or not.

    • @seditt5146
      @seditt5146 6 ปีที่แล้ว +2

      How are you handling your sprites Javid? In mine I made a Sprite class that contains a Vector of States(IE:Various animation sequences for left, right etc) and the States contain a vector of frames so that I may enumerate the types of movement. I then overloaded the += operator so that Frames and States can be added as easy as picking a Rect from the sprite sheet and += it to the state or the state.frames..

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

      In this instance my sprites are not complicated - just carefully placed on a sprite sheet so they can be accessed with minimal effort, os all my facing left sprites are on the top row, then all my facing right sprites on the next row down. Running (not shown in video) are sequential, so I just increment a counter in sprite space.

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

    Fantastic videos you make, so clear and understandable!

  • @Angel-VTek
    @Angel-VTek 4 ปีที่แล้ว +1

    This is by far one of the best programming videos ive seen on YT.
    Totally OUTSTANDING!

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

    Waiting for part 2 :)
    slopes and enemy could be a good topic

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

    The bearded and wise one! We need a follow up! :D

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

    this is good ! This is enjoyble ! That project is not difficult or easy. I am watching your videos. Lots of fun (all videos). And Code-It-Yourself!

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

    *Delivering a big thumbs up to help your self-esteem*

  • @hound4425
    @hound4425 6 ปีที่แล้ว

    I am sad I found your channel so late, If I would know about it half year ago I could be completely somewhere else. Thanks for the good work!

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      Hi Karel, dont be sad! Code is something you can easily take with you wherever you are! Cheers.

  • @chrochetfan7274
    @chrochetfan7274 4 ปีที่แล้ว

    Really wish 2d platformers were more popular on this channel i love working on them

  • @Andrew-wo8ry
    @Andrew-wo8ry 3 ปีที่แล้ว

    I use C and raylib and these tutorials are still very helpful, keep up the good work!

  • @НиколайМарков-з9т
    @НиколайМарков-з9т 5 ปีที่แล้ว

    I just found this channel, and I thought I knew stuff in coding... well I don't know anything, buy I will watch this video 20 more times, and try to code the same thing using this video, and watch past/future videos too.

  • @joshuaeirman2197
    @joshuaeirman2197 5 ปีที่แล้ว +6

    So cool, it's definitely, "replayable!"

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

    Been learning alot from your videos brother. thanks a ton.

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      Hey my pleasure Andrew, Cheers!

  • @simplestickmation9834
    @simplestickmation9834 5 ปีที่แล้ว +6

    24:12 good math concept

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

    The protag is you!!! Fantastic.

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

    perfect movie

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

    This jumping scheme with gravity effect with some control you put in out does Ghost N Goblins jumping that is for sure.

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

    I really enjoyed the video. Thanks! It helped me a lot! (: hope there is the second part.

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

    Finally new video! I will really appreciate if you will do some polygon collision math :) thank you

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

      Hi Jacob, thanks! I will be continuing Balls collision with static polygons for the next video. Dynamic Polygon v Polygon is tough and requires torgue and rotation to be considered. This might be later in the year.

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

    Would love to see a code along with me video. Where you code something and record it in a way to where we can type what you are and you can explain each line as we type it out. would really help me a lot with memorization. Just a steady shot of the codieng screen no cuts while we code along you learn more that was then just going to the page you have posted copying it over and then reviewing what you have copyed while the video plays. to many cuts for me to type out the code like you do while your talking about it and you code fast so i keep haveing to pause to keep up lol. thanks for all the awasome videos!

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

    I'm retired and need something to keep my brain turning into mush so I decided to write a game for the Atari 7800. The game I picked was Apple Panic from 1981 that was on the Apple and the Atari 800. So far, on my own I've managed to built the screen using tiles, created my sprite, created a running sequence for left and right movement and I'm working on moving vertically. I've discovered a few of your routines by myself but your video is going to be a HUGE help in smoothing things out. I'm going to try to work your techniques into my code. Sadly, Atari 7800Basic is limited (I think because the end result will be 6502 code and hardware driven) but it does have floating point. I will have to keep coming back here for more help.
    Thank you very much for making this video and I will check for other video you've made. I wish I could send you a clip of what I've done so far. It represents about 4 weeks of work using a language I don't know on hardware I don't know but so far so good.
    Thanks again.....

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

      Heh, it's I'm relying on code to keep mentally active too! I'm pleased you've found the video useful, thanks!

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

    You are the nicest youtube programmer. Love the pace and atmosphere of your videos. Keep on the great work! You might want to try the Borland C++ Builder environment for these projects. It provides the Canvas object where you can draw shapes and bitmaps on the screen with a single line of code. It provides ready-made windows forms for you to work on. I always use it for quick projects. it would be perfect for these projects of yours, including anything in 3D. If you look on my channel on my latest videos, I posted a 3D engine I wrote in Borland C++ Builder.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      Hey Paulo (again!) Thanks buddy, i try to get the message across without bloat and noise! I checked your channel and love your 8bit computer! Ive not used borland tools since Turbo Pascal and Turbo C++ 😁 i will be making the jump from console soon enough so ill look into it! Cheers!

    • @Kr3m_
      @Kr3m_ 5 ปีที่แล้ว

      @@javidx9 I was just thinking the same thing when reading this. I was pretty sure Borland was at least still around, but haven't used it in probably close to 2 decades now. In recent years, GCC more than anything. Heck, the only reason I installed Windows for the first time in years was to check out a C# project based on MonoGame that has special tools made in WPF that I'd like to port to Linux at some point, but am having too much fun with at the moment.

  • @hman2875
    @hman2875 6 ปีที่แล้ว +2

    Dude you are the best !

  • @TheKhanQ
    @TheKhanQ 6 ปีที่แล้ว +2

    Well done. Thx for the video.
    Greetings

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

      Greetings Dr Stick! Thanks!

  • @johnson554671
    @johnson554671 4 ปีที่แล้ว

    I would give you 10 thumbs up if I could! You showed in the intro the end result (which is always preferred), and you showed some awesome code. Thank you! Just a tip, maybe if you could spare the time, for your videos putting bookmarks is helpful. Great Work!

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

    just started programming like this week. so far i have a box and a bear in the box that shoots lazers. was trying python now going to c++

  • @CmdrKroz
    @CmdrKroz 4 ปีที่แล้ว +6

    Silly question - this video has #1 in the title. Was there ever a part 2? I think 2D platformers are a great topic, and would love to see more!

    • @kushagra64
      @kushagra64 4 ปีที่แล้ว +2

      Still waiting :)

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

      It's not CALLED "#2" but it's a similar topic: v-code =8JJ-4JgR7Dg

  • @em00k
    @em00k 6 ปีที่แล้ว +2

    Great video.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      Thanks Chuck!

    • @em00k
      @em00k 6 ปีที่แล้ว +2

      javidx9 Really have enjoyed going back through your vids. I’m currently writing a library for a compiler for the ZX Spectrum Next, which handles a lot of similar things as your consolelib so it’s been really useful to see how a proficient and competent coder approaches this. My lib presents subroutines to the end user that then gets converted into z80 assembly for speed and space efficiencies, so a lot of compromises have to be made to make it work. Hopefully I’ll try and do something with you libs when I find some free time.

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

      Oh very nice a sort of old-skool Macro library.

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

    I went from developing in C++ to developing in C because I can just as easily follow along even in that language.

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

    It's super Jario! He's a... french electrician.

  • @ps5games821
    @ps5games821 5 ปีที่แล้ว

    great game , you are the best , please make more big great games

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

    If you have some trouble with the non pixel perfect (0.9f) approach (like I do), a simple workaround is to ignore the (bottom tile for x detection || right tile for y detection) if you're currently on a tile (no decimal position).
    Which leads to something like that:
    bool ignoreBottomTile = ((int)(player->getOldPosition().y) - player->getOldPosition().y == 0);
    Tile* nextTile = ignoreBottomTile ? nullptr : map->getTile(player->getPosition().x + 1.0f, player->getOldPosition().y + 1.0f);
    if(previousTile != nullptr && previousTile->isSolid() || nextTile != nullptr && nextTile->isSolid()){ misplacementCorrection()}
    It really is a psychorigid problem, but some may be... :s
    Anyway, keep the good work on those tutorials, they are awesome !

  • @seanbowers6036
    @seanbowers6036 6 ปีที่แล้ว +13

    Hi Javidx9! I just wanted to give a big thank you for your videos. They are amazingly informative and helpful. Many years ago I did a bit of programming but fell away from it after becoming more involved in systems administration. Now I'm getting back into it and find your style of instruction just my cup of tea. I've a huge fascination for roguelikes and mazes, 2D cRPGS, and procedural terrain/cave/overworld generation. A long time favorite game of mine has been Dwarf Fortress and any game in a similar style (nethack, ADOM, Caves of Qud, Cogmind, etc). As a player of pen and paper D&D I love the tables of stats that these games produce. What games, if any, are your favorites?
    I'm finding the Visual Studio 2017 IDE easy to use as a general text editor, but there is so much depth to it that I oftentimes find myself lost. For example, your recent solutions have shown several projects contained within. I'm not able to replicate this sort of container/structuring in my own solutions. I typically just make one solution and inside that the .cpp and .h files where need. Would you consider a tutorial on the IDE that could cover such things? I'm keen on learning how to best use the tools at hand and not just use them like notepad.
    Again, thank you for such quality videos and sharing your passion.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      Hi Sean, Thanks so much for your support! Its great to see people dusting off their IDEs and giving things a go. I like the procedural nature of roguelikes too, and find that aspect perhaps more interesting than the game :D As for my favourite types of games, that's quite tough. I like games that don't assume the player is dumb, and that have a level of craftsmanship that turns it into art. Something like The Witness is a brilliant example of this, on the surface such a simple game, yet extraordinarily powerful in how it evolves over play. That said, I like blowing stuff up to! Sadly I dont have as much time to game as I used to, so I lean towards games that I can finish quickly. I dont relish the thought of dumping 120 hours into a game anymore, however, Ni No Kuni 2 is just around the corner lol.
      I think a video on Visual studio would be a good idea. I've done one on using VS debugging tools, but perhaps an all rounder of tips and tricks would be fun. You're right as soon as they become a tool that you can use second nature they become very powerful indeed. I need subject matter for a series of quick videos I want to do, 5-8 minute videos max, in between the usual output.

    • @lone.wo1f
      @lone.wo1f 4 ปีที่แล้ว

      @@javidx9 sir, please continue this 2D platform game... Other people may have covered this topic, but your explanation is awesome...

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

    Really interesting video! Any chance for part 2?

  • @ogr2
    @ogr2 4 ปีที่แล้ว

    Great tutorial, I hope it will be an update for the PixelGameEngine.

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

    I've been following your channel for a little while now. I think it's time to subscribe :]

    • @javidx9
      @javidx9  6 ปีที่แล้ว

      Hey Coolq, thanks!

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

    I'm pretty new to all this have to say but one think that getting me is I'm spending so much time watching tutorials and trying my best to learn these things while not wanting to directly copy someones code while learning it. i watch your video along and am typing in the code as you do but then i see on the page you have posted that i could just copy and past the code over but that is lame its going to take forever for me to know coding enough to be able to just code something without looking up someone else formula. For now its fun i guess to follow along typing in the code getting familiar with what each line dos and then making my own art to put into the game so yeah I'm following someone else code but I'm putting my own spin on it with my art.

  • @unknownman6833
    @unknownman6833 5 ปีที่แล้ว +2

    Really great idea about doing a video on Super Mario👍🏻

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

    Amazing his canal.Parabéns!

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      Thanks Jose!

  • @eternal6983
    @eternal6983 6 ปีที่แล้ว

    Subscribed, you deserve my sub.
    However, i would like to see some OpenGL / D3D stuff in the future.
    Keep up the great work tho!

  • @digo8167
    @digo8167 6 ปีที่แล้ว +2

    your coding all the fun stuff! l

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

      Hi Diego, you should only code fun stuff! Not worth doing otherwise 😁

  • @zobook
    @zobook 5 ปีที่แล้ว +2

    I really love the video and the simple approach to collisions. I'm implementing it in Lazarus/FPC wich is what i have and i'm used to (planning a small game for my kid). I wonder if the collision detection can work if the tile and the character hit-box are different sizes because all calculations are done in the unit-less space.
    Maybe if sprites are a multiple of the tiles? For example if the sprite is 2 "units" tall and 1 "unit" wide (I'm thinking in a small Jario / big Jario situation).

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

      Hi and thanks Zobook, you can use different size sprites to tiles and it should all work ok, until... You use a sprite that is at least 3 tiles high. I only check the four corners of the sprite so it is very possible a tile could fall in between the corners.

    • @zobook
      @zobook 5 ปีที่แล้ว

      @@javidx9 thanks, so we are safe in the 2x1 sprites. I'm trying with a sprite that is 1.5 tile high but the hitbox is 1 tile high, the image overlap a little but is a satisfactory solution

  • @itsuko6366
    @itsuko6366 6 ปีที่แล้ว +2

    i came to this one from the 3d graphics engine one and now i want to make a platformer with 3d graphics and physics like you would see from a company. T_T it's gonna be hard but someday.

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

      Kyle, just keep reminding yourself the computer will only do what you tell it to do - nothing is impossible. Good luck with your projects!

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

    30:52 vietnam flashbacks

  • @michaldvorak2230
    @michaldvorak2230 6 ปีที่แล้ว +2

    Love your videos. I'd also appreciate if you could do a video talking more about game engines and perhaps how they work compared to your OlcGameEngine.. not sure how much of a viable topic that is, to be honest, just a suggestion (y)

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

      Firstly Thanks! Hmmm, comparing other engines would make a good video, but its a great deal of work. That said, the community surrounding this channel are using all sorts of engines, so I could consult with them. In principle there will not be much difference (at the most fundamental level), but modern engines will have very sophisticated tricks to help with asset management - something I dont (and dont need to) care about. You've given me an idea!

    • @michaldvorak2230
      @michaldvorak2230 6 ปีที่แล้ว +2

      I'm actually more intrigued to see how the 'transfer' from a console to more powerful graphical interfaces works.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      You know what, that's a good thing to demonstrate and perhaps the time is right to show people that taking the leap from my simple engine to a more complicated one is not that difficult. I'll add this to the list.

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

      Thanks!

  • @michaelpacheco7421
    @michaelpacheco7421 5 ปีที่แล้ว

    Awesome! Nintendo does not get ungry with you, yet!

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

    Hello,
    I really look forward to following along with your video. I checked out your code on github and I was hoping you'd be willing to briefly explain how to use this code? Do you only need the code from the main page, or do we need separate files or classes as well?

  • @floatingdoor
    @floatingdoor 5 ปีที่แล้ว

    Hope this is ok to comment here but if anyone’s in need of music I’m looking to work on a project. Thanks for the upload!

  • @partisanpuff9861
    @partisanpuff9861 6 ปีที่แล้ว +4

    Sorry for the naive question, is your code compatible on UNIX systems?
    Love your videos!

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

      Hi Partisan Puff, thanks! Off the shelf it is not compatible. However a few of us on the discord are working on an SDL version. I try to make the algorithms and concepts cross platform and cross language, but the consoles are very different on unix and Windows. Watch this space though!

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

    Have you got any basic videos on how to great a window / fundamentals of setting up?
    edit : like how you created the one lone coder console game engine?

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

    Hey! I love your video on how to create a platformer game! It really teaches me alot on what I require! Just a quick question. you mentioned that you created an array to read in the alphabets. Am i able to use FileIO to read into it from a textfile and then do the same stuff for the rest of the video?

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

      Cheers! Yes of course you can read in the levels from a file. Its just text in this case. I do something similar in my RPG series.

  • @johnlight-knight8060
    @johnlight-knight8060 4 ปีที่แล้ว +1

    My camera doesn't want to move.... xD

  • @khanhchung4103
    @khanhchung4103 6 ปีที่แล้ว +6

    How can I start to learn from your videos? I watched some videos but I dont really understand completely. Should I learn C++ first and then move to your videos later?

    • @javidx9
      @javidx9  6 ปีที่แล้ว +5

      Hi Khanh, thats a great question! Admittedly, my videos probably do require that you are familiar with programming basics. I try to create programs and algorithms that can be easily implemented in other languages - the fact I use C++ is secondary. At the same time I hope to demonstrate that C++ is not to be feared, and is a valid entry level language too. If you are not familiar with C++ then yes, try and understand the very basic syntax and variable types, and then attempt some of the shorter, simpler videos first, like Snake! Most of the difficulty comes form some of the API functions I use, which is not a C++ problem, more of a platform issue. Good luck!

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

      javidx9 Hi javidx9, thank you so much

    • @dvirarazi7351
      @dvirarazi7351 6 ปีที่แล้ว +2

      khanh chung I really recommend starting to the learn the basics from cplusplus.com

  • @red-52
    @red-52 ปีที่แล้ว +1

    This a looks familiar, but I can’t remember what is a from.

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

    Love the video, explains things very easily...
    But I don't quite get the font change, what does that do, I see no difference?
    Possibly it's a raster like pattern in the former font? That could be YT Compression artifacts though...

  • @konrad3688
    @konrad3688 6 ปีที่แล้ว

    imo using 'virtual' in method of derived class is less readable than using 'override'. I mean 'void OnUserUpdate() override' is in my opinion better than 'virtual void OnUserUpdate()'.

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

    Hi. Thanks a lot, solve some problems in my collision detection routines.
    I'm sure you won't see that comment after two years of publishing but...well :)
    One question about the code on line 220 : why do you test "less or equal to zero ?" :
    if (fPlayerVelX 0) { //right... }
    I think it's a "speed coding" line with no real slow down on performance (on PC at least) but i'm a perfectionist so may be i'm wrong ?
    Another thing makes me perplex.. speed Y is camped at +100 / -100, i don't know the "fElapsedTime" value (may be 0.02 ?) cause i'm using another platform but it can be greater than 1 then greater than one tile and we can "pass through" some tiles vertically ? Am i wrong ?
    See no offense , i'm developping games for fun and have to learn "game specific" part of development so it's real question :)
    Thanks again for sharing your knowledge !

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

    Any tips if I want to add slopes to this project?

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

      *O O F*
      Slopes pretty much break the concept; that's when you need geometry. You'd need special tiles, special character sprites for up/downslope action, and collision test that work on 2y + x (if your slopes are half a tile high and a tile wide) and 2y - x.
      The many issues with slopes are the reason why some platformers use fans or magnets to exert lateral forces; they do so without upsetting the underlying geometry.

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

      @@achtsekundenfurz7876 thank you

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

    6:37 i was JUST thinking "how do i do this in vs code"

    • @javidx9
      @javidx9  6 ปีที่แล้ว +2

      lmao, Im so pleased someone noticed XD

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

      @@javidx9 I'm concerned about ONE issue: you keep casting floats to (int). IIRC, that's not reliable, and you should use floor() instead.
      As long as all numbers are >0, many C implementations actually convert via floor(), i.e. round down, but most Intel implementations round towards zero in the general case. That can easily be avoided with a regular platformer, but if you ever make a Minecraft Lite (which is my personal suggestion for the next special), your code could fall apart due to that difference.
      BtW, if (int) always uses the same logic as floor(), there will be no performance hit when using floor() instead, and if it does not, it's basically essential to avoid unwanted behavior.

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

    Hey so I know c++ quite well as language but there is some syntax I don't understand that seems to be part of Visual Studio Code. For example: DWORD and L" ". Where does one learn about those?

    • @moppy4049
      @moppy4049 4 ปีที่แล้ว

      From another comment: "It indicates that the following character or string literal is encoded in a unicode or multibyte format."

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

    Can you make simple tile based platform game with slopes?

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

    genius

  • @GhomezAnonimous
    @GhomezAnonimous 4 ปีที่แล้ว

    Trying to implement in Java, everything seems interpretation-able except collision left and up collision work fine right collision heads down and down collision heads right??? so frustrating :( using same collision If's but using a tick(up,down,left,right) and render(Graphics2D g) system also separated player and level logic into respective classes any idea what might be wrong can post code/project if needed - great vids btw

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

    Hmm I was thinking can you show how to go down pipes to get to secret areas?

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

    sprite render and loader is this:i.imgur.com/gobGZDr.png or this:i.imgur.com/UggYUFJ.png
    more explication: i.stack.imgur.com/m4C1T.png

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

      Option B, I always loop x outside, y inside.

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

    mine says the end of my switch loops curly bracket is a syntax error?? how come?
    edit:Turns out i needed a "break;" after the default to make it work. Thanks Dave.

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

    Hi, I love your videos!
    I had a little issue. When I pass the parameters into the game.ConstructConsole(160,120,8,8)
    It gives me an error of screen and font size too large. The only work around this is by using 80,60,4,4 but that makes my window very small.
    How can I solve this?

    • @javidx9
      @javidx9  5 ปีที่แล้ว +2

      Hello, It depends on the size of your desktop resolution. 160,120,8,8 needs a 1280x960 display. Some laptops wont have this. So you can try reducing the font size (4,4) to (2,2) and keep the original resolution intact.

    • @theworstofyoutube1946
      @theworstofyoutube1946 5 ปีที่แล้ว

      @@javidx9 thank you so much!
      It works great now and I made my first game thanks to you. It helped me clear a lot of my concepts of C++
      Cheers

  • @lonnybulldozer8426
    @lonnybulldozer8426 5 ปีที่แล้ว

    Is that standard to design a 2d platform level in that manner, by drawing the whole level out essentially with hashes? It's pretty clever, and I definitely want to try that now.

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      Its not standard, its just a way i find convenient without relying on other tools. Its just there. In the code.

  • @CabalisOrder
    @CabalisOrder 4 ปีที่แล้ว

    this guy is Partiboi69 of PC

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

    Jario haha, mint.

  • @HediDev
    @HediDev 4 ปีที่แล้ว

    Hi Sir , i wanna ask you , about a specefic path to follow in order to be able to make a game in c++ like you do , because i always find out that i don't understand a lot of things because i skipped them in the learning curve ,tell me for example what should i learn first , Thanks in advance , this will help me a lot :)

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

    the camera is moving or the world is moving the player stay in the middle?

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

    Can you do a video on 3d gamez like maybe pixelated style

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

    sorry i have a question , what engine is this? sdl, allegro? or something write from you on c++?

    • @javidx9
      @javidx9  6 ปีที่แล้ว +6

      Hey, this is the Console Game Engine - its something I created, that runs in the Windows command prompt. Ive a number of videos about it on this channel.

    • @firecode3495
      @firecode3495 6 ปีที่แล้ว +2

      javidx9 great i m new here i like your channel. Thanks.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +4

      Hey, start here! th-cam.com/video/u5BhrA8ED0o/w-d-xo.html

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

    What typ of project did you use?

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

    *and mega man gets ignored once again*

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

    Another question what if I want use an image from another software such as Adobe Photoshop, Lightwave 3D or even Hitfilm Pro?

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      The easiest way is to convert png files to the spr file format I use in the console. It might be easier for you to start with olcPixelGameEngine, its the same in everyway but uses conventional image formats.

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

    I don't understand why, but sometimes when Jario moves fast and the program starts to get laggy, then Jario is able to break the collision rules, for example he can get through walls.
    Is it an implementation problem?
    Notice that I've had to reduce the size and the resolution of the screen, in the original resolution 256X240 with size 4x4 the program opens up just a narrow black square.
    Thank you!

  • @moppy4049
    @moppy4049 4 ปีที่แล้ว

    How are you getting so many frames per second? VS isn't using much of my resources and I'm getting between 30-40 fps constantly.
    Edit: chaning from debug to release mode increases your frames

  • @user-sh7lw6nl2g
    @user-sh7lw6nl2g 3 ปีที่แล้ว

    جاوید 👏👏👏

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

    I wonder if you could port these to other CMD accessible languages like C# or others.

    • @javidx9
      @javidx9  6 ปีที่แล้ว +4

      Hi Guzma, you can and some have. Check out the community showcase video!

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

      Oh boy, my inner nerd is trembling in joy that I wasn't the only one who thought of it!

  • @Morg17960
    @Morg17960 8 วันที่ผ่านมา

    Can the character be bigger than the tile size without the game breaking or will it still work?

    • @javidx9
      @javidx9  8 วันที่ผ่านมา +1

      You can have larger characters, you need some additional test points in the middle.

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

    what if I want to BREAK THE LAWS OF PHYSICS IN JUMPING?

    • @javidx9
      @javidx9  5 ปีที่แล้ว

      Then do it! That's the beauty of programming you own worlds!