26 thoughts on “Beginner C++ Game Programming DirectX [Function Calls/Basic Syntax] Tutorial 1

  1. I just started this series and just like you said i fiddled with the values and managed to make a plus sign with 2 diagonals

  2. Well this tutorials are a bit slow but like even forest gump could figure out this shit https://i.imgur.com/MrI30Jl.jpg thats a new kind of slow ma men
    keep it going

  3. why do i need to write "Graphics& gfx" to pass gfx to another function? why cant i just write "Graphics gfx" without & ?

  4. how to draw a line of pixels right across the screen from xy 0,0 to x,y ScreenWidth,ScreenHeigtht ?
    How to find such algorithm?

  5. 16:01 takes a lot of time so i copied gfx.PutPixel( 395, 300, 255, 255, 255);

    gfx.PutPixel(396, 300, 255, 255, 255);

    gfx.PutPixel(397, 300, 255, 255, 255);

    gfx.PutPixel(403, 300, 255, 255, 255);

    gfx.PutPixel(404, 300, 255, 255, 255);

    gfx.PutPixel(405, 300, 255, 255, 255);

    gfx.PutPixel(400, 295, 255, 255, 255);

    gfx.PutPixel(400, 296, 255, 255, 255);

    gfx.PutPixel(400, 297, 255, 255, 255);

    gfx.PutPixel(400, 303, 255, 255, 255);

    gfx.PutPixel(400, 304, 255, 255, 255);

    gfx.PutPixel(400, 305, 255, 255, 255);

    }

  6. We gonna ignore that picture at 1:00, because it looks like that bananna wanna show that pair and strawberry a good time

  7. Exception thrown: write access violation.

    theGame.gfx.pSysBuffer was 0x4701030.

    It was working before I've restarted Visual studio. Nothing works now…

  8. As someone who likes to know what shit does and why, you are easily my favourite source for tutorials and ive literally watched two videos of your's so far and i already understand more than all the books and web pages and Programming tutorials ive been exposed to have tried to teach me

  9. The first thing I tried was cos fn but I couldn't see it propperly, I increased the amplitude and decrease the frequency. Thanks chillie!!.

    #include <cmath>
    void Game::ComposeFrame()
    {
    for (int i = 0; i <= 500; ++i)
    {
    int shift_x = 100;
    int shift_y = 200;
    gfx.PutPixel(i + shift_x, 100*cos(0.03*i) + shift_y, 255, 255, 255);
    }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *