Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 20:59:19 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 7 8 [9] 10 11 12   Go Down
  Print  
Author Topic: Correlation: A New Project Aimed at Ti-Basic Programmers -  (Read 9761 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 20:53:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50642


Total Post Ratings: +2640

View Profile WWW
« Reply #120 on: 30 December, 2010, 10:14:45 »
0

Ah ok. Well I was kinda worried what you did was just alternate automatically between two tiles, which would have been a bit hard in BASIC, not to mention the user may want to have the freedom to manually change. 4 frames might be enough, I think. 8 might be good too, if you have scrolling water, although it's not very common in BASIC.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #121 on: 30 December, 2010, 17:31:34 »
0

Ah ok. Well I was kinda worried what you did was just alternate automatically between two tiles, which would have been a bit hard in BASIC, not to mention the user may want to have the freedom to manually change. 4 frames might be enough, I think. 8 might be good too, if you have scrolling water, although it's not very common in BASIC.

I'm thinking 8 for people who want something such as radar screens, clocks and sensors Wink
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 20:53:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50642


Total Post Ratings: +2640

View Profile WWW
« Reply #122 on: 31 December, 2010, 06:31:24 »
0

Yeah true, that would be nice Cheesy

The only worry I have is that it would take a lot of space shocked (and even waste some if some maps have several tiles that aren't animated like buildings)
« Last Edit: 31 December, 2010, 06:32:16 by DJ Omnimaga » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #123 on: 31 December, 2010, 07:53:02 »
0

Yeah true, that would be nice Cheesy

The only worry I have is that it would take a lot of space shocked (and even waste some if some maps have several tiles that aren't animated like buildings)

Ah, but you only need space for the tiles that are animated. Grin  If you have 50 tiles that are not animated and 2 that are, you can have 1 font 52 tiles big and 7 fonts only 2 tiles big.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 20:53:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50642


Total Post Ratings: +2640

View Profile WWW
« Reply #124 on: 31 December, 2010, 23:49:03 »
0

Oh but how would that work? How would the tile data and maps look like? Huh? How would it detect which tile has to be animated and which one doesn't?
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #125 on: 31 December, 2010, 23:54:51 »
0

Oh but how would that work? How would the tile data and maps look like? Huh? How would it detect which tile has to be animated and which one doesn't?

Let's say that you have two tiles for the characters "A" and "B."  Let's say that "A" displays a tree, and "B" displays water.  You only want the water to move (an animation of 2 frames), not the tree.

So your main font will contain graphical data for both "A" and "B".  Your second font will ONLY contain graphical data for "B."  Correlation will detect this kind of thing automatically.  Does that make sense?

Ln(1,1,"AABBBBAA"  = Tree, Tree, 2-Frame Water, 2-Frame Water, 2-Frame Water, 2-Frame Water, Tree, Tree
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #126 on: 01 January, 2011, 01:23:45 »
0

So does separate fonts mean separate files?
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #127 on: 01 January, 2011, 01:47:18 »
0

So does separate fonts mean separate files?

Pretty much. You can use different fonts to display different "pictures".  One font might display a tree for the letter "A", and another might display a rock for the letter "A."  You can have up to 8 open for Correlation to draw animated tiles, but you can display text with only one font at a time.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 20:53:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50642


Total Post Ratings: +2640

View Profile WWW
« Reply #128 on: 01 January, 2011, 02:20:10 »
0

Oh but how would that work? How would the tile data and maps look like? Huh? How would it detect which tile has to be animated and which one doesn't?

Let's say that you have two tiles for the characters "A" and "B."  Let's say that "A" displays a tree, and "B" displays water.  You only want the water to move (an animation of 2 frames), not the tree.

So your main font will contain graphical data for both "A" and "B".  Your second font will ONLY contain graphical data for "B."  Correlation will detect this kind of thing automatically.  Does that make sense?

Ln(1,1,"AABBBBAA"  = Tree, Tree, 2-Frame Water, 2-Frame Water, 2-Frame Water, 2-Frame Water, Tree, Tree
But how will it detect it? Will the second string look like "  BBBB  "? Because in that case it wouldn't even save a single byte of space.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #129 on: 01 January, 2011, 08:11:39 »
0

Oh but how would that work? How would the tile data and maps look like? Huh? How would it detect which tile has to be animated and which one doesn't?

Let's say that you have two tiles for the characters "A" and "B."  Let's say that "A" displays a tree, and "B" displays water.  You only want the water to move (an animation of 2 frames), not the tree.

So your main font will contain graphical data for both "A" and "B".  Your second font will ONLY contain graphical data for "B."  Correlation will detect this kind of thing automatically.  Does that make sense?

Ln(1,1,"AABBBBAA"  = Tree, Tree, 2-Frame Water, 2-Frame Water, 2-Frame Water, 2-Frame Water, Tree, Tree
But how will it detect it? Will the second string look like "  BBBB  "? Because in that case it wouldn't even save a single byte of space.

Oh man, I am not doing well Grin

I hope this helps explain: you won't need a second string.  If you turn on animated tiles and select your fonts in the order you want tiles animated, you only need "AABBBBAA."  Correlation will see the "B", and draw a different frame of the "B" tile everytime the string is drawn.  One string.  So if your single string is drawn 10 FPS, you will see ten frames of animation every second.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #130 on: 01 January, 2011, 23:25:29 »
0

Oh, I get it. So you define B as a tree in the wind by defining B1 as one frame of the tree, and then B2 as the other frame.  But Correlation doesn't use B1 and B2, it only uses B and handles the change in sprites every time you redraw the string.
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #131 on: 02 January, 2011, 01:04:14 »
0

Oh, I get it. So you define B as a tree in the wind by defining B1 as one frame of the tree, and then B2 as the other frame.  But Correlation doesn't use B1 and B2, it only uses B and handles the change in sprites every time you redraw the string.

I think you've got it.  Let's say FONT1000.8xp contains characters for the letters "A" and "B", so "B" will contain one frame of the tree in the wind.  "A" is defined as a rock.  FONT2000.8xp contains the OTHER character for the letter "B", the other frame of the tree.  Notice there's no "A" in FONT2000.8xp.

real(FONT10001  means that FONT1000.8xp is your first font for your animations. real(FONT20002 means FONT2000.8xp is your second font.  Like you said, Correlation uses only "B" and automatically handles the changes in sprites.  Since there's no "A" in FONT2000.8xp, the rock won't move a muscle.


I've decided to describe creating animated tiles in its own chapter.  It's certainly a confusing topic, and I know that now  Angel
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

graphmastur
King Graphmastur
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 February, 2013, 08:34:45
Date Registered: 03 June, 2010, 21:15:55
Posts: 2262


Total Post Ratings: +60

View Profile
« Reply #132 on: 02 January, 2011, 01:25:37 »
0

Oh, I get it. So you define B as a tree in the wind by defining B1 as one frame of the tree, and then B2 as the other frame.  But Correlation doesn't use B1 and B2, it only uses B and handles the change in sprites every time you redraw the string.

I think you've got it.  Let's say FONT1000.8xp contains characters for the letters "A" and "B", so "B" will contain one frame of the tree in the wind.  "A" is defined as a rock.  FONT2000.8xp contains the OTHER character for the letter "B", the other frame of the tree.  Notice there's no "A" in FONT2000.8xp.

real(FONT10001  means that FONT1000.8xp is your first font for your animations. real(FONT20002 means FONT2000.8xp is your second font.  Like you said, Correlation uses only "B" and automatically handles the changes in sprites.  Since there's no "A" in FONT2000.8xp, the rock won't move a muscle.


I've decided to describe creating animated tiles in its own chapter.  It's certainly a confusing topic, and I know that now  Angel
Yeah. One feature request, though, is changing tiles.  If you've got a building that's standing in one scene, but gets blown up or something, you could use the same map (text) but different tiles.
Logged

Hot_Dog
If you can't find a cat, look for its tail.
Project Author
LV11 Super Veteran (Next: 3000)
*
Online Online

Gender: Male
Last Login: Today at 20:50:29
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2943


Topic starter
Total Post Ratings: +432

View Profile
« Reply #133 on: 02 January, 2011, 01:29:05 »
0

Yeah. One feature request, though, is changing tiles.  If you've got a building that's standing in one scene, but gets blown up or something, you could use the same map (text) but different tiles.

I'll add that!  The only restriction is that you'll need to have both your original tile and the one you want to change in the same font.  Correlation will simply swap their positions so that you don't lose either one.
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 20:53:35
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50642


Total Post Ratings: +2640

View Profile WWW
« Reply #134 on: 02 January, 2011, 02:56:15 »
0

I see I think, but I would probably understand even better if I knew how the data looked like in both font files.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: 1 ... 7 8 [9] 10 11 12   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.337 seconds with 33 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.