Jump to content
  • Advertisement
Sign in to follow this  
Cheesehead15

paint?

This topic is 5082 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

this is my 1st post and im new to programming so sorry for the maybe stupid question. but can u put pics in ur game that u made in paint. and if u can how?

Share this post


Link to post
Share on other sites
Advertisement
Yes, all you do when you save a picture with Paint is make a bitmap, which is a grid of coloured pixels in a file.

The question "how" needs an answer about 1000 pages long, in your case, so Start here.

Share this post


Link to post
Share on other sites
Uncompressed bitmap code is VERY easy to read. Dave Astle and Kevin Hawkins present such code in their "Beginning OpenGL Game Programming" book, worthwhile if you wish to start graphics programming in OpenGL (I say graphics programming because their book has little or no game content). If you wish to learn more about OpenGL programming (including using bitmap images in your games) then head on over to NeHe. It won't show you how to make games, but it does a good job of teaching OpenGL graphics.

As red_sodium said, there's many ways to load images though, it mainly depends on the library you're using and the tools you have available. Check out libraries such as SDL and Allegro which provide image loading capabilities.

Share this post


Link to post
Share on other sites
A lot libraries will come with a tutorial page on the website which steps you through installing to basic use of the library.

For example, SDL Tutorials and SDL Articles both discuss in detail how to use SDL to create games and use images, etc.

Similarly, Allegro also has a Tutorials page, which supplies articles such as How to write PONG in Allegro.

Unfortunately, the only thing you can do is persevere. Perseverence and the wish to learn is are two of the greatest assets a game programmer can have [smile]

Share this post


Link to post
Share on other sites
what graphics lib is best for a beginner? the windows console of course =).

but seriously, learn to program first. once you can program, either Allegro or SDL would be perfect for you. I'd personally go with SDL, but ive heard great things about Allegro also. cone 3d is where i learned how to use SDL to make graphics. once you can move bitmaps around the screen, it shouldnt be too hard to figure out how to make a pong clone. from there your imagination is the limit!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Hi, (i think) nearly every one here spent at least a couple months just learning the basics of the language, c++ or what ever, this is done in the console, ie like an old msdos (small black window thing), with just text- no graphics or any thing. That might sound boring, but even that is fun, you can learn small programs, how to print some thing on the screen, how to get keyboard input. Learn how to do some small classes, learn all the basics, including librarys, or rather what they are and what they do.
The first libray (if doing C++) you might want to know about is , Iostream is a pre-written lot of code, that amongst other things handles getting input from your keyboard and displaying it in the window.

hope this helped, ask some more if you need to

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!