Jump to content
  • Advertisement
Sign in to follow this  
bpaterni1

how do you get graphics in games???

This topic is 5055 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I don't understand how you can get the graphics in the game to match up with what the code tells the game to do could someone direct me to a site for this?

Share this post


Link to post
Share on other sites
Advertisement
Here is some theory fo ya :

Say you have coordinates that represents a position of a object on the screen, like (100, 250). Say you also have an image of an object, like a small spaceship, stored in memory. When the player of the game presses a button, say, the left arrow key, that could make the coordinates x component (the 100) decrease. Since the players ship will be drawn at the above coordinates, any change in the coordinates will affect the position of the ship.

-Jason

PS keep in mind that game programming is difficult, and can be very frustrating. Get some books, carry em around till the pages start to fall out. :)

Share this post


Link to post
Share on other sites
I would recommend 'Tricks of the Windows Game Programming Gurus." You'll learn the basics of the WinAPI (such as creating a window, loading icons/cursors, message pop-ups, handling/sending messages, etc. And that's just the first three chapters.

Then the author goes over the windows GDI, DirectX, Artificial Intelligence, 3D graphics, Physics, etc, etc, etc. I'm on chapter 4 right now but I've been looking ahead at the later chapters and I'm confident that by the end of the book I'll have a firm grasp on this game programming stuff.

Oh, and you can find it at Amazon.Com or any other online bookstore. You can also find it at safari.samspublishing.com, which is a pay service.

- Stephen

Share this post


Link to post
Share on other sites
Ilove that book everyone should have it!
also "SAMS teach yourself game programming in 24 hour" is good.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!