| NetWoC https://www.worldofcaenyr.net/ |
|
| My First Sprite https://www.worldofcaenyr.net/viewtopic.php?f=8&t=279 |
Page 1 of 1 |
| Author: | zhammy [ Sat Nov 14, 2015 2:54 pm ] |
| Post subject: | My First Sprite |
For some reason or another, I've found myself getting pulled back into C/C++ programming for many reasons including radiology development and developing a high school Computer Science curriculum for my home-schooled teens and out home-school co-op. While I have a bit of experience with programming, it's usually within a command-line interface with very little being done graphically or for Windows.. Even today, all of the MUMPS programming that I do is at a command line. 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... http://s1130.photobucket.com/user/zhamshir/media/Programming/sprite_test.jpg.html ((I'm sorry for Photobucket....that site is garbage. Gonna figure something out soon enough...)) |
|
| Author: | zhammy [ Tue Nov 17, 2015 7:14 pm ] |
| Post subject: | Re: My First Sprite |
Added the apha channel to the texture so now it looks a lot better. |
|
| Author: | Laurel [ Tue Nov 17, 2015 9:19 pm ] |
| Post subject: | Re: My First Sprite |
I imagined this was about your discovery of a delicious carbonated beverage or even the discovery of a tiny magical being. After reading, I prefer to still imagine that to be the truth |
|
| Author: | zhammy [ Tue Nov 17, 2015 10:29 pm ] |
| Post subject: | Re: My First Sprite |
Laurel wrote: I imagined this was about your discovery of a delicious carbonated beverage or even the discovery of a tiny magical being. After reading, I prefer to still imagine that to be the truth Haha I will make a Shiny Sprite just for you. Need.....more.....skill, first. |
|
| Author: | zeppelinmage [ Tue Nov 17, 2015 11:02 pm ] |
| Post subject: | Re: My First Sprite |
See, my mind went here: https://en.wikipedia.org/wiki/Sprite_(lightning) [/wx nerd] |
|
| Author: | zhammy [ Wed Nov 18, 2015 9:15 am ] |
| Post subject: | Re: My First Sprite |
Quote: Sprites have been blamed for otherwise unexplained accidents involving high altitude vehicular operations above thunderstorms. Sprite-bombs!! |
|
| Author: | Laurel [ Wed Nov 18, 2015 3:29 pm ] |
| Post subject: | Re: My First Sprite |
zhammy wrote: Laurel wrote: I imagined this was about your discovery of a delicious carbonated beverage or even the discovery of a tiny magical being. After reading, I prefer to still imagine that to be the truth Haha I will make a Shiny Sprite just for you. Need.....more.....skill, first. |
|
| Author: | zhammy [ Tue Dec 22, 2015 8:22 pm ] |
| Post subject: | Re: My First Sprite |
Had a bit of a setback here. Went from sprites to circles and squares, but it's all good, 'cause I can take what I've learned and apply it to mythical winged creatures. I may draw and scan in the frames myself... Darn French side of me an it's artsy-fartsy OCD.... |
|
| Author: | zhammy [ Wed Dec 23, 2015 7:09 pm ] |
| Post subject: | Re: My First Sprite |
The Shiny Spite Demo!! 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....) http://Youtu.be/3iWv6OcpxdA 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. |
|
| Author: | Laurel [ Thu Dec 24, 2015 1:47 am ] |
| Post subject: | Re: My First Sprite |
s'lovely <3 |
|
| Author: | zhammy [ Tue Dec 29, 2015 3:19 pm ] |
| Post subject: | Re: My First Sprite |
Laurel wrote: s'lovely <3 Why thank you! Updated with a simple application of 3 or 4 colors, nothing major, but she looks more, spritely! Been researching how to create NES games, yes, legitimate NES games. Utilizing a 6502 CPU with an addressable 64 KB of RAM, the NES only has 2 KB of usable RAM for variables and 2 KB of RAM for the screen buffer. This means that everything that we've ever player on the NES was optimized to the fullest. Just thinking of programming The Legend of Zelda via traditional methods just boggles my mind. And by traditional methods, I'm talking Assembly! The lowest level of any programming language, but, it's also why old NES games were absolutely rock-solid compared to today's "standards of acceptibility". With all that said, I'm still going to stick with C++... But I may develop some classes around building games for the NES just for my homeschoolers, as it really gives you a fundamental understanding of what it is that occurs behind the scenes with computers. On to the next order of business. After making my sprite turn this was and that, and move where I wanted her to, later that night I read one of my household's favorite books to my daughter.... Harold and the Purple Crayon. While I was flipping through the white pages with the contrasting purple,l it struck me as to how similar that looked to my demo, when, suddenly.... Oh my goodness, epiphany! I decided that my first, honest to goodness, full-blown game, will be, Harold and the Purple Crayon. It will be similar to the old Tron Lightbike games, where you cannot cross the lines that you've already drawn. It will be simple enough to accomplish fairly easily, yet, provides enough of a game to be actually playable. The main lesson that will be learned from this endeavor will be Collision Detection, which is always a struggle for budding game devs. Once that is done, it's on to a real JRPG which is going to be set in the Asheron's Call universe. The playable character will be Elysa Strathelar and the storyline will revolve around her escape from the Olthoi to the slaying of the Olthoi Queen. The playable characters will be, of course, Elysia, as well as Thorsten Cragstone, and at least one other playable character. There will be no magic as of yet, just melee based combat in a 100% single player offline experience. The hardest part for me will be to develop the story, and create the building of Elysa and Thorsten's romantic relationship; it needs to be believable, and it needs to create an emotional attachment for the players so that the final battle (and a key event) has a huge impact. Doing that, will be difficult. After that I have one more story that will branch from this to pursue; perhaps introducing the magic system. The third and final installment will be on-line RPG that will be based upon an unfinished quest line that I wrote for AC which details the history of Auralaana and the Terrahim following the actions of the players which causes the "contamination", of the Terrahim and results in an epic struggle to save the world (this was actually thought of to be the catactlysmic event that occurrs between Asheron's Call 1 and 2). Phew. I have said too much as it is..... |
|
| Author: | zeppelinmage [ Tue Dec 29, 2015 9:19 pm ] |
| Post subject: | Re: My First Sprite |
zhammy wrote: And by traditional methods, I'm talking Assembly! Well... at least it's not straight-up machine code. 1100100101001010110011010010010111010101011011110110111.... |
|
| Author: | zhammy [ Fri Jan 01, 2016 12:52 pm ] |
| Post subject: | Re: My First Sprite |
zeppelinmage wrote: zhammy wrote: And by traditional methods, I'm talking Assembly! Well... at least it's not straight-up machine code. 1100100101001010110011010010010111010101011011110110111.... C94ACD25D.... |
|
| Author: | zeppelinmage [ Fri Jan 01, 2016 8:12 pm ] |
| Post subject: | Re: My First Sprite |
zhammy wrote: C94ACD Mmmm, fuschia. |
|
| Author: | zhammy [ Tue Jan 05, 2016 8:21 am ] |
| Post subject: | Re: My First Sprite |
zeppelinmage wrote: zhammy wrote: C94ACD Mmmm, fuschia. Your swatch is bigger then mine.... |
|
| Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|