Here it is, as promised. I took advantage of my half day off today to apply a small mythical winged creature to what I've done with squares and circles...
(Albeit, she's not very shiny....)
Here is the 4-1-1:
This was written in C++
The grid that you see is a 10 x 10 grid consisting of 32 x 32 cells. The images for the sprites are 32 x 32 as well, all images are on a single PNG "sprite sheet."
The sprites for the player (sprite, aka fairy) have a forward-facing, rear-facing, left-facing, and right-facing images. I have additional frames for animation, but I never had time to implement the animation yet.
The player sprite reacts to the Up,Down,Left,and Right arrow keys. Holding down an arrow key does not make the sprite move consecutively, rather, one keypress equals one space moved. This was by design, of course.
You can see the fairy move off of the grid....whoops' I think the window was 800x600, so that is the limits. I wonder what would happen if I tried moving her off of the grid ... Would she fall off the edge of the world, or find herself in China?
Do keep in mind, that this is awfully rudentary. I am learning, and believe it or not, have just knocked out some concepts with this. After a few years in MUMPS it is a bit, oh, shall we say, adventurous, trying to go back to C++. But it's worth it. I even wrote the "player" as a class, consisting of an X and Y variable for location, and functions to "set" and "get" those values. It's starting to come back to me, little by little.Statistics: Posted by zhammy — Wed Dec 23, 2015 7:09 pm
]]>