Beginner C++ DirectX Game Programming Tutorial: Lesson 3

preview_player
Показать описание
Entry level programming tutorial. Nuff said.

Good luck!
Рекомендации по теме
Комментарии
Автор

I have never understood a programming language so well. All of the rest just assume that you know all about different references.. which I don't know. Chili has really helped me. Thanks man!

SabreTeethe
Автор

Most entertaining C++ tutorial on Youtube, period!

ashleighwalsh
Автор

Man old is gold all those videos you did a lot o hard work man....respect

HorsyPotter
Автор

Finally I have found a series that actually gives a purpose for creating variables and loops and whatnot. Thank you so much for what you do, man.

stefanhansan
Автор

Thank you SOOO much for these tutorials! I've never been able to grasp any form of programming when taught it at college, and considering the fact that I'm on a game development course, it's slightly important for me to actually learn it... I'm learning more from your guides than i've learnt altogether from tutors, so thanks a bunch man <3

perry
Автор

I like the idea of your 'assignments', ik makes for a much better tutorial and it makes me want to come back to watch the next episode, even though I probably will learn things I already knew, they still make things more clear to me! Keep it up!

bosmens
Автор

to save the most lines of code do this 
//crosshair
for (int x=695; x <= 705; x++){
gfx.PutPixel(x, 500, 255, 255, 255);
}
for (int y = 495; y <= 505; y++){
gfx.PutPixel(700, y, 255, 255, 255);
}

abdullahali
Автор

@usunoro
Excellent point which is addressed (along with other topics) in the next video :)
I'm taking it slow at first so I didn't want to change too many things all at once, but you are of course correct that it makes little sense to define the graphic around some arbitrary reference point in model space. Just for the record, you could still control the position with the mouse, but you would have to add a correction factor to your mouse coordinates before using them in a PutPixel call.

ChiliTomatoNoodle
Автор

This is wonderful. Awesome tutorials bro. If Google ever posts a job opening for a programmer that can make a cross-hair and then move it all over the screen I'll be RICH!

brothertim
Автор

You are so awesome at explaining things with a spice of humor! I love it! Thank you!

Nicker
Автор

This is the best tutorial i've ever seen!!
I'm a c++ Beginner Coder..

TheMrSinotna
Автор

Automatic positioned crosshair:

int x(500); //place value of position here
int y = x-100;
int ax = x-5;
int bx = x-4;
int cx = x-3;
int dx = x+3;
int ex = x+4;
int fx = x+5;

int ay = y-5;
int by = y-4;
int cy = y-3;
int dy = y+3;
int ey = y+4;
int fy = y+5;

gfx.PutPixel( x, y, 255, 255, 255 );
gfx.PutPixel( ax, y, 255, 255, 255 );
gfx.PutPixel( bx, y, 255, 255, 255 );
gfx.PutPixel( cx, y, 255, 255, 255 );
gfx.PutPixel( dx, y, 255, 255, 255 );
gfx.PutPixel( ex, y, 255, 255, 255 );
gfx.PutPixel( fx, y, 255, 255, 255 );
gfx.PutPixel( x, ay, 255, 255, 255 );
gfx.PutPixel( x, by, 255, 255, 255 );
gfx.PutPixel( x, cy, 255, 255, 255 );
gfx.PutPixel( x, dy, 255, 255, 255 );
gfx.PutPixel( x, ey, 255, 255, 255 );
gfx.PutPixel( x, fy, 255, 255, 255 );

taylorn
Автор

Chili keep the videos going bro.. Even though you don't get as many views as you deserve.. I still watch your videos, I learn from them and enjoy watching them keep it up :D

Blackomega
Автор

love your relaxed voice, it's extremely helpful

TrayIcon
Автор

Yes, unless you want to initialize the variable at a later time.

MarkoMarkoVol
Автор

You sir would be the best teacher ever!

Firefly
Автор

yeah man good stuff, got my pixel's movin all over da screen, have been reading and doin tutorial's for c++ but this is putting me into it with a bit more fun, your vocal comic's crack me up, just wondering how far into 3d programming do you get, primative's and stuff, maybe even simple animation, suppose i'll just have to wait and see, yeah style keep your flow's on the go

ryan
Автор

I'm not an expert, but from what I know, it's not bad taste to populate a variable in declaration. But it IS bad taste to populate/initialize a class/object while declaration. That is called Early Binding, and causes the compiler to run a statement around EVERY call to the object asking "Fetch this, but if it doesn't exist, create it." When using objects that run in every frame, it can add up to quite a bit of wasted processing.

Chronus
Автор

Helped me so much... are u still making videos?

jagrobar
Автор

The Best Tutorials ! Chilli the best !!

saleemd
join shbcf.ru