I'm gonna have fun with this one...
Special thanks to Kerm for the idea. Hopefully this project will get me familiar with Hybrid Basic commands.
Coding stuff:
So I will have to use hybrid basic commands and sprites and stuff.
I will not be using different sprites for each picture, just the meme and text.
Questions: Is it possible to transfer an image to a sprite? Or at least get the basic idea? Also what are sprite sheets and how do they work? What kind of sprite techniques would you suggest I use for this?"

Meme Image stuff:
Anyway, I will include a few popular memes and pictures and a few cemetech specific ones.
I need help deciding! A lot of the popular pictures are very funny

Anyway, Cemetech ones:

http://i.imgur.com/JnEiCeA.jpg
http://i.imgur.com/bCv4NgO.jpg
http://i.imgur.com/40gnse5.jpg
http://i.imgur.com/bezFqen.jpg
I'm surprised how on-point those are, actually. Nice job. Smile What's your plan of action for building this? Start with the image, get the images to display, and then move on to text?
APotato wrote:
Questions: Is it possible to transfer an image to a sprite? Or at least get the basic idea? Also what are sprite sheets and how do they work? What kind of sprite techniques would you suggest I use for this?"
First of all, the sole currently-available and easy-to-use tool for creating xLIBC spritesheets, tilemaps, images, and backgrounds is TokenIDE, so grab it if you don't already have it. For better or worse, SourceCoder does not support xLIBC images/backgrounds. Your best option is probably to use xLIBC backgrounds, which are 80x60 pixels, have a palette of 256 possible colors, and are ~5KB each.
I for one support this endeavor. Should combine this with Kerm's calc-camera and a (as of yet unmade?) pic to xLIBC background converter for on-the-fly background creation.
APotato, these pictures are hilarious
These are great! Smile I do like that double posting one; I could have used that on myself some times. Smile
Hahaha thats awesome! Meme's on a calc?!

There are also the 32 colour xLIBC images as well if you need more details.
KermMartian wrote:
I'm surprised how on-point those are, actually. Nice job. Smile What's your plan of action for building this? Start with the image, get the images to display, and then move on to text?First of all, the sole currently-available and easy-to-use tool for creating xLIBC spritesheets, tilemaps, images, and backgrounds is TokenIDE, so grab it if you don't already have it. For better or worse, SourceCoder does not support xLIBC images/backgrounds. Your best option is probably to use xLIBC backgrounds, which are 80x60 pixels, have a palette of 256 possible colors, and are ~5KB each.

Yes, first display images, then text. Thanks everyone else for the feedback. I will open up TokenIDE again and figure this out!
*7 hours later*
I have no idea how to use TokenIDE
How do I create a background? Do I actually have to draw it? I remember tr1p1ea was kind enough to offer me a little demo type thing with a fingerprint. How was that sprite made?
Sorry for being total newbie, I even googled it and looked in the TokenIDE topic Wink
Hey man, you can use Tokens by Merthsoft to create and save the images. It should be in his thread. Then there are just a few commands to get it to display, which I can help you with Smile.
TokenIDE > Tools > Image Editor

select the black and white option and change to xlibc

Adjust values of size to match what it should be (80x60?)

File > Save As..

Under the file type drop down, pretty sure it's just Xlib picture .8xv
Yeah there are 2 types of fullscreen pictures:

BGPIC - 80x60 (scaled to fullscreen) @ 256 xLIBC colours - 4800bytes
BGPIC32 - 160x120 (scaled to fullscreen) @ 32 xLIBC colours - 12000bytes

The former is much smaller whereas the latter offers a higher resoultion but less colours.
tr1p1ea wrote:
Hey man, you can use Tokens by Merthsoft to create and save the images. It should be in his thread. Then there are just a few commands to get it to display, which I can help you with Smile.

Ok displaying commands?
There seem to be so many! Which one am I supposed to use? Razz
Ok I made an example program for you.

Basically it just shows the difference between the 2 image types so you can see colours vs resolution.

The images are drawn and then the xLIBC DrawString function writes the text over the top. For the outline I simply drew each string 4 times beforehand at 1-pixel offsets and black.

Here is the code:

Quote:
"SET LCD 2X MODE
real(0,1,1,0
"DRAW BG & 32COLOUR IMAGES
"THEN DRAW TEXT OVER THE TOP
"NOTE: BLACK STRINGS FORM THE OUTLINE EFFECT
"BGGRUMP0
real(5,2,0
"I HAD FUN ONCE
real(6,0,22,4,0,0,0
real(6,0,24,4,0,0,0
real(6,0,23,3,0,0,0
real(6,0,23,5,0,0,0
real(6,0,23,4,255,0,0
"IT WAS HORRIBLE
real(6,0,19,108,0,0,0
real(6,0,21,108,0,0,0
real(6,0,20,107,0,0,0
real(6,0,20,109,0,0,0
real(6,0,20,108,255,0,1
Pause
"BGGRUMP1
real(5,7,0
"I HAD FUN ONCE
real(6,0,22,4,0,0,0
real(6,0,24,4,0,0,0
real(6,0,23,3,0,0,0
real(6,0,23,5,0,0,0
real(6,0,23,4,255,0,0
"IT WAS HORRIBLE
real(6,0,19,108,0,0,0
real(6,0,21,108,0,0,0
real(6,0,20,107,0,0,0
real(6,0,20,109,0,0,0
real(6,0,20,108,255,0,1
Pause

"BGBCAT0
real(5,2,0
"I NEED YOU TO STAY
real(6,0,7,4,0,0,0
real(6,0,9,4,0,0,0
real(6,0,8,3,0,0,0
real(6,0,8,5,0,0,0
real(6,0,8,4,255,0,0
"LATE TONIGHT
real(6,0,29,13,0,0,0
real(6,0,31,13,0,0,0
real(6,0,30,12,0,0,0
real(6,0,30,14,0,0,0
real(6,0,30,13,255,0,0
"WE REALLY NEED TO
real(6,0,11,100,0,0,0
real(6,0,13,100,0,0,0
real(6,0,12,99,0,0,0
real(6,0,12,101,0,0,0
real(6,0,12,100,255,0,0
"CATCH THAT RED DOT
real(6,0,6,109,0,0,0
real(6,0,8,109,0,0,0
real(6,0,7,108,0,0,0
real(6,0,7,110,0,0,0
real(6,0,7,109,255,0,1
Pause
"BGBCAT1
real(5,7,0
"I NEED YOU TO STAY
real(6,0,7,4,0,0,0
real(6,0,9,4,0,0,0
real(6,0,8,3,0,0,0
real(6,0,8,5,0,0,0
real(6,0,8,4,255,0,0
"LATE TONIGHT
real(6,0,29,13,0,0,0
real(6,0,31,13,0,0,0
real(6,0,30,12,0,0,0
real(6,0,30,14,0,0,0
real(6,0,30,13,255,0,0
"WE REALLY NEED TO
real(6,0,11,100,0,0,0
real(6,0,13,100,0,0,0
real(6,0,12,99,0,0,0
real(6,0,12,101,0,0,0
real(6,0,12,100,255,0,0
"CATCH THAT RED DOT
real(6,0,6,109,0,0,0
real(6,0,8,109,0,0,0
real(6,0,7,108,0,0,0
real(6,0,7,110,0,0,0
real(6,0,7,109,255,0,1
Pause

"CLEAR SCREEN (BOTH SIDES)
real(0,3,4,255,1
real(0,3,4,255,0
"RESTORE LCD MODE
real(0,1,0,1


The DrawBGPIC functions simply take the name of the appvar in Ans, and whether or not you want to update the LCD.

More info can be found here on the wiki: http://dcs.cemetech.net/index.php/DCSE:BasicLibs:ManagePic

Here is a screenie showing the demo:



Note that I roughly converted the images, if you spend time on them you can reduce the colour bleeding and artifacts etc to make them look nicer.

The example program can be downloaded here: http://tr1p1ea.net/files/downloads/xmeme.zip

Simply copy the appvars to your calc (archive recommended) and run the program XMEMETUT.8XP. Press enter to progress through the images.

Hope this helps!
What about drawing a sprite that is not a background? (Just for other projects)
I made this small example here for drawing+moving a simple sprite: http://www.cemetech.net/forum/viewtopic.php?p=226698#226698
Nice! This is definitely another reason to get this calc model!

I second Unknownloner's motion! Very Happy
Progress on this project will be paused due to Contest 13.
Again, thank you so much to everyone for the support Smile
APotato wrote:
Progress on this project will be paused due to Contest 13.
Again, thank you so much to everyone for the support Smile


Of course, of course, I understand. But I can't wait to see what the final result is! Smile
Alright, after almost a month of near-inactivity, I think I'm ready to begin this project again. Still in the planning phase.
Firstly, I would like a nice interface with maybe a small HUD. Any ideas?
Next, I have a quick question, in the Token IDE image editor, which output do I select for saving to get a BGPic (80x60)?
Please leave any ideas you have! Smile
Yay! I really enjoyed looking at those memes, (I feel they are spot on), and can't wait to see where this goes! Good Luck! Smile As for the TokenIDE question, I am not quite sure. Merth would know that one. Very Happy
Can't wait for this, very cool idea Smile.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement