don't you hate beginners? :(
Hi i like to program in C++.
I can do stuff like make a number guessing game (woo i''m smart) and that''s about it.
but the thing is...I try to make a graphics game and it makes me want to cry to see the tutorials they have on it.
gee thanks...sprites...except i have no idea what the fu** (i''m not sure if this is a "family friendly" forum or what) any of that is you''re talking about.
does anyone know of any way shape or form you can explain to me without confusing the business out of me how to do sprites? i just want a 2D game in C++.
i''m sorry i know everyone hates beginner questions. i promise to stop being a beginner
i would suggest since your a new(like me ) that you go with allegro
its super easy to make a 2d game and the tutorials are good and the forum is real nice and supportive
hope that helps
Certain concepts are just necessary to understand when discussing a certain model. The most basic functionality of any 2-D game is a sprite. A sprite is just a graphical representation of an object. For instance, in the game of Pong, the ball is a sprite, and the paddles are sprites. Or in Legend of Zelda, Link, Octoroks and Ganon are sprites.
You can''t make a 2-D game without sprites.
I know many people feel that buying books is a waste because you may never make the money back on them, but a really good book to explain 2-D game programming is Windows Game Programming for Dummies by Andre LaMothe. Though I seriously think the man has gotten arrogant, this book has proven invaluable to *me*. I had some programming experience before, but he really makes the entire domain understandable to complete beginner. Trust me, if you read this book, you will understand why sprites are completely necessary.
You can''t make a 2-D game without sprites.
I know many people feel that buying books is a waste because you may never make the money back on them, but a really good book to explain 2-D game programming is Windows Game Programming for Dummies by Andre LaMothe. Though I seriously think the man has gotten arrogant, this book has proven invaluable to *me*. I had some programming experience before, but he really makes the entire domain understandable to complete beginner. Trust me, if you read this book, you will understand why sprites are completely necessary.
Well, I was in the same boat a year or two ago. DirectDraw ended up being my answer, but Allegro sounds easier to get the hang of.
As for how sprites actually work, you can think of the screen as a 2D array of color values, and drawing sprites is just copying another rectangle of colors to the screen. Really simple once you get used to it. The challenge comes when you need to get it on the screen, which is where DDraw and Allegro come in. You can use plain DOS and switch to a non-text video mode manually, but I have no idea how to do that so I''ll have to suggest Allegro^_^
-Deku-chan
DK Art (my site, which has little programming-related stuff on it, but you should go anyway^_^)
As for how sprites actually work, you can think of the screen as a 2D array of color values, and drawing sprites is just copying another rectangle of colors to the screen. Really simple once you get used to it. The challenge comes when you need to get it on the screen, which is where DDraw and Allegro come in. You can use plain DOS and switch to a non-text video mode manually, but I have no idea how to do that so I''ll have to suggest Allegro^_^
-Deku-chan
DK Art (my site, which has little programming-related stuff on it, but you should go anyway^_^)
quote:Original post by Anonymous Poster
You can''t make a 2-D game without sprites.
Don''t want to be pickey, but you can. I''ve made plenty (5) games without using sprites. I only use sprites now because sprites just make things easier.
~ There''s no substitute for failure ~
;-) I actually created several games on my C-64 without using the sprite registers. But, understanding sprites is still a necessary concept for anyone who wants to do any serious 2D game programming.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement