[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
NetWoC A World of Caenyr Sci-Fi/Fantasy Community! 2016-01-05T08:21:28-04:00 http://worldofcaenyr.net/feed.php?f=8&t=279 2016-01-05T08:21:28-04:00 2016-01-05T08:21:28-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2759#p2759 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Tue Jan 05, 2016 8:21 am


]]>
2016-01-01T20:12:18-04:00 2016-01-01T20:12:18-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2748#p2748 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zeppelinmage — Fri Jan 01, 2016 8:12 pm


]]>
2016-01-01T12:52:46-04:00 2016-01-01T12:52:46-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2742#p2742 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Fri Jan 01, 2016 12:52 pm


]]>
2015-12-29T21:19:32-04:00 2015-12-29T21:19:32-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2715#p2715 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zeppelinmage — Tue Dec 29, 2015 9:19 pm


]]>
2015-12-29T15:19:15-04:00 2015-12-29T15:19:15-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2713#p2713 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Tue Dec 29, 2015 3:19 pm


]]>
2015-12-24T01:47:46-04:00 2015-12-24T01:47:46-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2703#p2703 <![CDATA[Re: My First Sprite]]> Statistics: Posted by Laurel — Thu Dec 24, 2015 1:47 am


]]>
2015-12-23T19:09:20-04:00 2015-12-23T19:09:20-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2702#p2702 <![CDATA[Re: My First Sprite]]>
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


]]>
2015-12-22T20:22:19-04:00 2015-12-22T20:22:19-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2687#p2687 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Tue Dec 22, 2015 8:22 pm


]]>
2015-11-18T15:29:52-04:00 2015-11-18T15:29:52-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2651#p2651 <![CDATA[Re: My First Sprite]]> Statistics: Posted by Laurel — Wed Nov 18, 2015 3:29 pm


]]>
2015-11-18T09:15:38-04:00 2015-11-18T09:15:38-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2649#p2649 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Wed Nov 18, 2015 9:15 am


]]>
2015-11-17T23:02:31-04:00 2015-11-17T23:02:31-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2648#p2648 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zeppelinmage — Tue Nov 17, 2015 11:02 pm


]]>
2015-11-17T22:29:30-04:00 2015-11-17T22:29:30-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2646#p2646 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Tue Nov 17, 2015 10:29 pm


]]>
2015-11-17T21:19:21-04:00 2015-11-17T21:19:21-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2645#p2645 <![CDATA[Re: My First Sprite]]> Statistics: Posted by Laurel — Tue Nov 17, 2015 9:19 pm


]]>
2015-11-17T19:14:22-04:00 2015-11-17T19:14:22-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2643#p2643 <![CDATA[Re: My First Sprite]]> Statistics: Posted by zhammy — Tue Nov 17, 2015 7:14 pm


]]>
2015-11-14T14:54:19-04:00 2015-11-14T14:54:19-04:00 http://worldofcaenyr.net/viewtopic.php?t=279&p=2636#p2636 <![CDATA[My First Sprite]]>
So today, I have done it. Successfully accomplished the creation of a window, loading of an texture from a file, and applying that to a 64 x 64 sprite. The result is my very first sprite ever! ;-)

I created the Sprite from hand, consisting of 4 64x64 sections each for cardinal point facing. Next is a change of facing upon event (keytroke maybe). And then movement. Finally, animation. This all is proving to be a whole lot more time intensive and less intuitive as it was say, 15 years ago...

As a consequence, you can imagine the possibilities that I have in my mind for an old 8-bit or 16-bit styled sprite-based JRPG...

:twisted:




((I'm sorry for Photobucket....that site is garbage. Gonna figure something out soon enough...))

Statistics: Posted by zhammy — Sat Nov 14, 2015 2:54 pm


]]>