Author |
Message |
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 19 Nov 2005 04:51:11 pm Post subject: |
|
|
So, would you like to see this happen? If you don't know what CATs are, you can read about them here. They are 8x8 sprites generated from two integers from 0 to 255. Essentially it is a method of extracting an 8x8 sprite from two bytes.
Download some assembly programs to play around with the CATs here.
Last edited by Guest on 19 Nov 2005 04:52:42 pm; edited 1 time in total |
|
Back to top |
|
|
alexrudd pm me if you read this
Bandwidth Hog
Joined: 06 Oct 2004 Posts: 2335
|
Posted: 19 Nov 2005 04:56:08 pm Post subject: |
|
|
How big is the code to create the tiles? I can see this being useful if you are using a large number of different sprites, but manually storing the information is better for a small number. |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 19 Nov 2005 05:41:29 pm Post subject: |
|
|
Quote: How big is the code to create the tiles? I can see this being useful if you are using a large number of different sprites, but manually storing the information is better for a small number.
Ahem. (All 49 lines of it is posted in the topic.)
Quote: If you don't know what CATs are, you can read about them here.
The point is more so that you don't have to include pic variables in your basic program. |
|
Back to top |
|
|
elfprince13 Retired
Super Elite (Last Title)
Joined: 11 Apr 2005 Posts: 3500
|
Posted: 19 Nov 2005 08:00:41 pm Post subject: |
|
|
sweet. It wold be helpful. Generate a Pic at the beginning of game and use that as a sprite sheet. then delete it at the end |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 19 Nov 2005 09:53:36 pm Post subject: |
|
|
Quote: sweet. It wold be helpful. Generate a Pic at the beginning of game and use that as a sprite sheet. then delete it at the end smile.gif Actually I was thinking that you wouldn't need pic variables at all; instead of taking the pic variable number and coordinates, it would take the rule and seed of the CAT.
I'm glad that people are liking the idea. I suggested it as an enhancement to xLIB here at Omnimaga. It might be better to integrate it rather than put it in a separate program. |
|
Back to top |
|
|
leofox INF student
Super Elite (Last Title)
Joined: 11 Apr 2004 Posts: 3562
|
Posted: 20 Nov 2005 10:11:37 am Post subject: |
|
|
we get this in our basic programs?
weehhee i wants!
[serious]
sounds useful, basic games usually eat space when it comes to tiles.. but wouldnt it be slow? |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 20 Nov 2005 03:27:08 pm Post subject: |
|
|
Quote: sounds useful, basic games usually eat space when it comes to tiles.. but wouldnt it be slow? It probably wouldn't save a lot of space except in pic variables, and you might still need pic variables for the character sprites. It is not slow, because it would be an assembly utility. |
|
Back to top |
|
|
DJ Omnimaga http://i-lost-the-ga.me
Calc Guru
Joined: 14 Nov 2003 Posts: 1196
|
Posted: 20 Nov 2005 04:04:48 pm Post subject: |
|
|
leofox wrote: we get this in our basic programs?
weehhee i wants!
[post="62003"]<{POST_SNAPBACK}>[/post]
me too ^^ |
|
Back to top |
|
|
bananaman Indestructible
Calc Guru
Joined: 12 Sep 2005 Posts: 1124
|
Posted: 25 Nov 2005 10:14:50 am Post subject: |
|
|
Ha, I already got's one, and he's a nice one at that. He will sleep in my lap and doesn't ever hiss, bite, or scratch. |
|
Back to top |
|
|
DarkerLine ceci n'est pas une |
Super Elite (Last Title)
Joined: 04 Nov 2003 Posts: 8328
|
Posted: 25 Nov 2005 01:45:03 pm Post subject: |
|
|
Surprisingly enough, the conversation was NOT, previously, about kittens. Nor will it be. |
|
Back to top |
|
|
Jacobbus
Member
Joined: 20 Aug 2005 Posts: 106
|
Posted: 26 Nov 2005 04:45:29 am Post subject: |
|
|
a 8*8 sprite in 2 bytes, thats 4 times smaller than normal, how can you do that. |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 26 Nov 2005 08:58:33 pm Post subject: |
|
|
Quote: a 8*8 sprite in 2 bytes, thats 4 times smaller than normal, how can you do that. It's magic. Of course there are only a fourth of the normal sprites possible, and they are better suited for background textures than characters.
Quote: Ahem. (All 49 lines of it is posted in the topic.)
Quote: If you don't know what CATs are, you can read about them here. |
|
Back to top |
|
|
DarkerLine ceci n'est pas une |
Super Elite (Last Title)
Joined: 04 Nov 2003 Posts: 8328
|
Posted: 27 Nov 2005 11:46:00 am Post subject: |
|
|
Only 1/2^48 of the 8x8 sprites are actually possible, very far from a fourth (two bytes mean 2^16 possibilities as opposed to 2^64). However, because the possible sprites are very evenly spread through the set of all 8x8 sprites, this still allows for considerable freedom. |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 27 Nov 2005 03:36:55 pm Post subject: |
|
|
Sorry, thanks for the correction. Yes, the exponent is only a fourth, meaning the entire amount is a lot less than a fourth. The idea is that most of those possible sprites are random garbage anyway, so we only include the useful ones. The hard part is figuring out how to generate only useful ones. Cellular automata work pretty well for generating useful background textures.
Last edited by Guest on 27 Nov 2005 03:37:13 pm; edited 1 time in total |
|
Back to top |
|
|
bananaman Indestructible
Calc Guru
Joined: 12 Sep 2005 Posts: 1124
|
Posted: 27 Nov 2005 09:49:01 pm Post subject: |
|
|
Can CAT generate cool kitten pictures?
Then I could make a pocketpet game with all cats. |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 27 Nov 2005 11:28:55 pm Post subject: |
|
|
Cellular Automata Tiles cannot generate kitten images. But you could make an encoding scheme that will. I am planning on making a program to help generate encoding schemes like that, and you can use that when I finish. |
|
Back to top |
|
|
bananaman Indestructible
Calc Guru
Joined: 12 Sep 2005 Posts: 1124
|
Posted: 28 Nov 2005 03:53:25 pm Post subject: |
|
|
That's nifty. I didn't know it could do that. I was mainly posting for a pun. (CAT creates cats) But I definately would use CAT for other programs. |
|
Back to top |
|
|
axcho
Active Member
Joined: 09 Nov 2004 Posts: 555
|
Posted: 02 Dec 2005 08:29:39 pm Post subject: |
|
|
Okay, tr1p1ea has confirmed that he is not planning on adding CAT support to xLIB soon. So I will make my own program. Can anyone give me some advice on features it should include, and what the interface should be like? By interface, I mean the way its routines are called by basic programs. It should not interfere with xLIB. |
|
Back to top |
|
|
|