Lesson 8 Crap

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Lesson 8 Crap

Post by chili » January 17th, 2012, 1:48 pm

Here is the crap you need for Lesson 8.
Attachments
poo (24x24).txt
(9.02 KiB) Downloaded 2700 times
game_over (84x64).txt
(83.22 KiB) Downloaded 2572 times
face (20x20).txt
(12.42 KiB) Downloaded 2828 times
Chili

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8 Crap

Post by chili » January 17th, 2012, 4:24 pm

Finished recording... 1hour 20min :shock:

Editing and uploading tomorrow after work. Now is bedtimez...
Chili

Natox
Posts: 51
Joined: January 10th, 2012, 2:51 pm
Location: the Netherlands
Contact:

Re: Lesson 8 Crap

Post by Natox » January 17th, 2012, 9:53 pm

chili wrote:Finished recording... 1hour 20min :shock:

Editing and uploading tomorrow after work. Now is bedtimez...
Oh yeah! Can't wait for it mate... hurry!!!!! :lol:

I'm so curious about the way you inplement those images... :)
My Weblog: http://www.gamer-bay.com/
Keep track of my learning progress on the C++ programming language.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8 Crap

Post by chili » January 18th, 2012, 4:17 pm

Finally finished. So. Many. Interruptions.
Natox wrote:I'm so curious about the way you inplement those images...
I'm afraid you might be disappointed because it is essentially the same technique used for the reticle. I just prepared the PutPixel() code for you guys in .txt form so we could use some more interesting graphics for our first "game".

If you want to know how I generated the PutPixel() calls for those sprites, you can take a look at the vc++ project which I will attach to this post. It's a very simple console application that reads in a .bmp file and outputs c++ source code for the PutPixel() calls in a text file.

Just note that I provide this for your curiousity's sake only, and I'm not going to explain how to use it or how it works because we aren't really at that stage yet in terms of the tutorials. Eventually you should be able to take a quick look at this source code and grasp exactly what it does and how it does it, even out of context.
Attachments
fukbmp.zip
Utility to convert .bmp files to PutPixel() calls
(4.68 KiB) Downloaded 2720 times
Chili

Natox
Posts: 51
Joined: January 10th, 2012, 2:51 pm
Location: the Netherlands
Contact:

Re: Lesson 8 Crap

Post by Natox » January 18th, 2012, 6:19 pm

Not disappointed at all mate...
I did not mean a straight .bmp 'call' line... :-)
This method actually did not surprise me!
Thanks for the file attachment though, I'll have a look at it!
My Weblog: http://www.gamer-bay.com/
Keep track of my learning progress on the C++ programming language.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Lesson 8 Crap

Post by chili » January 19th, 2012, 3:25 pm

Once we learn about loops and arrays we'll dispence with hard-coded PutPixel() calls and just load the images directly into memory and draw them from there. But that's still a few lessons in the future.

For the next few lessons we're going to set aside sprites and do something a little different. 8-)
Chili

Natox
Posts: 51
Joined: January 10th, 2012, 2:51 pm
Location: the Netherlands
Contact:

Re: Lesson 8 Crap

Post by Natox » January 19th, 2012, 7:57 pm

really cool mate, looking forward to it alot!
My Weblog: http://www.gamer-bay.com/
Keep track of my learning progress on the C++ programming language.

LionSam
Posts: 1
Joined: August 6th, 2012, 9:14 pm

Re: Lesson 8 Crap

Post by LionSam » August 6th, 2012, 9:26 pm

If there is some one out there that can't eat the poo ( that sounds weird ), i think the problem is at the bottom of the code, at least for me it was, just delete DrawPoo ( poo1X, poo1Y); DrawPoo ( poo2X, poo2Y); DrawPoo (poo3X,poo3Y); and you can now eat it :) yum yum.

And for you my dear mentor i am glad that you are such an awesome guy and are making this tutorials for us mere mortals. ♥ U


Off Topic:
"
I have just 3 questions:
- is it better to learn C++ before C++ directX programing tutorial
- is there a difference between C++, C++ directX and C++ OpenGL.
- can you make a video about basic steps in making a game, make it for dummies like me with drawings and stuff ???
I know that this is a hard question just like "Q:What is the meaning of life? A:24!"
"

SquareMan
Posts: 4
Joined: July 8th, 2012, 1:09 am

Re: Lesson 8 Crap

Post by SquareMan » August 8th, 2012, 6:00 am

Ignoring the fact that this is a big necro-post

1. In these tutorials he teaches you the basics of c++ first, for complete beginners
2. The difference between "c++ directX" and "c++ OpenGL" is that they are both different APIs(Application Programming Interface) that you code with inside of c++
4. TO MAKE GAMEZ

EDIT: also OpenGL is cross-platform for linux and mac and can be worked with inside Java as well

ComplyMusic
Posts: 1
Joined: August 28th, 2012, 4:45 pm

Re: Lesson 8 Crap

Post by ComplyMusic » August 30th, 2012, 1:05 pm

Great job Chilli! You are a fucking legend! Don't take shit from anyone! Except your own. P.s this lesson took me about 2 days to find on your website. High times. <3

Post Reply