Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: elfprince13 on August 05, 2006, 02:38:00 pm

Title: pure basic tile mapper
Post by: elfprince13 on August 05, 2006, 02:38:00 pm
QuoteBegin-xlibman+Aug 4 2006, 08:49 PM-->
QUOTE (xlibman @ Aug 4 2006, 08:49 PM)
cool let us know what you came up with. :)smile.gif are you working on other stuff as well btw?  

 Im fixing my Sudoku solver, and working on the faster pure Basic tilemapper in history, plus a couple other helpful RPG routines to use in version 2 of my no-lib maps and sprites tutorial.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 05, 2006, 03:10:00 pm
oooooh I c, sound promising, is the tilemapper the ASCII one that you were working on or a pure basic sprite one?
Title: pure basic tile mapper
Post by: elfprince13 on August 06, 2006, 06:03:00 am
sprites :Dbiggrin.gif I can fit a 4200 tile map in under 4300 bytes. If I go for a much higher sprite limit then I currently have, it may take as much as 8500 bytes (depending on how many sprites are needed, and how many of those are in the upper range of the numbering scheme).
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 06, 2006, 08:47:00 am
wow thats great o.oblink.gif will you have screenies soon?
Title: pure basic tile mapper
Post by: elfprince13 on August 06, 2006, 02:39:00 pm
as soon as I finish the scrolling routines
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 06, 2006, 02:43:00 pm
cool, *xlibman
Title: pure basic tile mapper
Post by: elfprince13 on August 07, 2006, 08:53:00 am
hah, like you wouldn't believe. remember my fast sprite routine? combine that with a tilemapper that can cache up to 10 screens of recent data.
Title: pure basic tile mapper
Post by: elfprince13 on August 10, 2006, 03:02:00 pm
:|neutral.gif bad news, I had a RAM reset. fortunately I have a 4 hour car trip tomorrow and a couple of ideas to speed stuff up even more.
Title: pure basic tile mapper
Post by: elfprince13 on August 11, 2006, 02:18:00 pm
:Dbiggrin.gif and its no been fixed and is incredibly fast for pure Basic. under 5ish seconds to load a screen the first time. It caches the last ten screens you've visited, so if you go back somewhere you've been before, the loading time is under a second.

In the mean time I discovered several annoying quirks of TI-Basic.

this is not allowed:
c1-->
CODE
ec1Pic1->Pic3c2
ec2

nor is this:
c1
-->
CODE
ec1
1->A
RecallPic A
c2
ec2

:|neutral.gif oh well. I managed anyway.
Title: pure basic tile mapper
Post by: Dragon__lance on August 11, 2006, 04:07:00 pm
Wow amazing! Can't wait to see a demo :Dbiggrin.gif Yeah,the TI-OS recall pic commands are very limited :(sad.gif unless you use xlib...  :rainbowdevil:rainbowdevil.gif
Title: pure basic tile mapper
Post by: elfprince13 on August 12, 2006, 01:21:00 am
QuoteBegin-Dragon__lance+Aug 11 2006, 10:07 PM-->
QUOTE (Dragon__lance @ Aug 11 2006, 10:07 PM)
Wow amazing! Can't wait to see a demo :Dbiggrin.gif Yeah,the TI-OS recall pic commands are very limited :(sad.gif unless you use xlib...  :rainbowdevil:rainbowdevil.gif

 unfortunately, Im away from any connection software for a week. of course using xlib defeats the purpose of this program....

and as I said before, the program is a little bigger, but its still fast and most of the added size is in non-speed critical areas.
Title: pure basic tile mapper
Post by: Dragon__lance on August 12, 2006, 04:07:00 am
I meant it as a joke :Dbiggrin.gif I still can't believe your getting that kind of speed out of this,is it on a 83+ normal,or SE? And how does the mapper work,via lists,matrixes?
Title: pure basic tile mapper
Post by: kalan_vod on August 13, 2006, 09:49:00 am
So, the 10 screens of recent data is the 10 TIOS pics? Sounds like a smart idea, I hope to see more of this!
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 13, 2006, 10:39:00 am
QuoteBegin-elfprince13+Aug 12 2006, 08:21 AM-->
QUOTE (elfprince13 @ Aug 12 2006, 08:21 AM)
QuoteBegin-Dragon__lance+Aug 11 2006, 10:07 PM-->
QUOTE (Dragon__lance @ Aug 11 2006, 10:07 PM)
Wow amazing! Can't wait to see a demo :Dbiggrin.gif Yeah,the TI-OS recall pic commands are very limited :(sad.gif unless you use xlib...
Title: pure basic tile mapper
Post by: elfprince13 on August 15, 2006, 08:54:00 am
QuoteBegin-xlibman+Aug 13 2006, 04:39 PM-->
QUOTE (xlibman @ Aug 13 2006, 04:39 PM)
QuoteBegin-elfprince13+Aug 12 2006, 08:21 AM-->
QUOTE (elfprince13 @ Aug 12 2006, 08:21 AM)
QuoteBegin-Dragon__lance+Aug 11 2006, 10:07 PM-->
QUOTE (Dragon__lance @ Aug 11 2006, 10:07 PM)
Wow amazing! Can't wait to see a demo :Dbiggrin.gif Yeah,the TI-OS recall pic commands are very limited :(sad.gif unless you use xlib...
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 15, 2006, 09:52:00 am
oooh I c, I was sure you were back at home >.<
Title: pure basic tile mapper
Post by: elfprince13 on August 15, 2006, 12:14:00 pm
QuoteBegin-xlibman+Aug 15 2006, 03:52 PM-->
QUOTE (xlibman @ Aug 15 2006, 03:52 PM)
oooh I c, I was sure you were back at home >.<  

 oh well, I have another awesome game that Ive been working on since I finished the mapper and it should be ready to release by the time I get home in a week or so. yesterday I hiked the 3rd highest mountain in Maine (Old Speck)....then I hiked down it this morning.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 15, 2006, 12:40:00 pm
oooh I c lol, how is your trip so far?
Title: pure basic tile mapper
Post by: elfprince13 on August 16, 2006, 01:29:00 am
QuoteBegin-xlibman+Aug 15 2006, 06:40 PM-->
QUOTE (xlibman @ Aug 15 2006, 06:40 PM)
oooh I c lol, how is your trip so far?  

 excellent. As some of you know, my 16th birthday was Sunday. I went lasertagging and tubing. plus we have a kid from the fresh air fund staying with us for the 4th summer in a row.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 05:09:00 am
i c, what is fresh air fund?
Title: pure basic tile mapper
Post by: elfprince13 on August 16, 2006, 06:41:00 am
QuoteBegin-xlibman+Aug 16 2006, 11:09 AM-->
QUOTE (xlibman @ Aug 16 2006, 11:09 AM)
i c, what is fresh air fund?

an organization that lets kids from NYC spend the summer with families in places like Vermont and Pennsylvania. we've had the same kid all 4 years, cause we keep inviting him back.


[edit]

lol, how do my topics get so offtopic?


also, btw Croquet 83+ is completed, bug free, and awaiting release, although I recommend it for SE only.

here are my projects which I hope to release when I get home tuesday
  • the tile mapper
  • Croquet 83+
  • Between ::: A game of wit*
*Should be done by then....

EDIT kevin: test
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 06:59:00 am
Test
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 10:00:00 am
some posts seems to be missing...

i guess its cuz of the database error earlier
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 10:16:00 am
test again
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 10:17:00 am
where is the other posts? o.oblink.gif
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 10:17:00 am
test
Title: pure basic tile mapper
Post by: elfprince13 on August 16, 2006, 12:17:00 pm
merging topics. read back a bit.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 16, 2006, 12:49:00 pm
aah good, I hope you can edit post again now >.<
Title: pure basic tile mapper
Post by: elfprince13 on August 16, 2006, 03:23:00 pm
yup, just tested that.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 17, 2006, 02:50:00 am
yeah it should be fine now


sorry everyone for the spam above %)rolleyes2.gif
Title: pure basic tile mapper
Post by: elfprince13 on August 17, 2006, 04:27:00 am
kk, discussion is now back on track.
Title: pure basic tile mapper
Post by: DJ Omnimaga on August 17, 2006, 06:13:00 am
how is it progressing now?
Title: pure basic tile mapper
Post by: elfprince13 on August 17, 2006, 06:31:00 am
croquet is done.

the tile mapper is done.

Between is almost done.
Title: pure basic tile mapper
Post by: elfprince13 on September 10, 2006, 02:26:00 pm
lol forgot about this,

here's how it works

Str1 stores the map, length(Str1) must be a multiple of 60.
 R is the number rows of screens you have, C is the number of columns of screens you have, in other words, R*C*60 must equal length(Str1)

prgmADVSPRTE draws the sprite number stored in Ans, if Ans is not a valid sprite number nothing happens. It should be replaced with your own sprite drawing routine which takes the X and Y coordinates in X and Y and Ans as the sprite number to draw, however I recommened modeling this routine after the way it is setup in the current prgmADVSPRTE.

prgmADVRDW selects the tile to draw at sub(Str1,X,1) based on the index of the token at sub(Str1,X,1) in Str2.

This means Str1 mus consist entirely of characters in Str2.

http://rancidmoose.unitedti.org/members/software/ticalc/map.zip

oh yeah, and prgmADVMAP itself is where the key detection goes, so thats where you should insert anyother sorts of key detection you want
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 10, 2006, 03:17:00 pm
cool I have to go now so I'll prbly check tomorrow
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 11, 2006, 02:32:00 am
hmm i dont quite understand how to use it could u provide an example map?
Title: pure basic tile mapper
Post by: elfprince13 on September 11, 2006, 03:00:00 am
here's how it works, the maps are stored as giant strings of tokens in Str1. Each screen is displayed 10 length by 6 high group of tiles along with the bordering tiles around it. This means the map must have a length that is a multiple of 60. R and C determine how the string is wrapped. for example if you have Str1 that is of length 4200, and R is 10 and C is 7, then Str1 will be wrapped into a map that is 60 tiles long and 70 tiles high. Next, when displaying the map, The index of the current tile in Str2 determines which tile prgmADVRDRW  will ask prgmADVSPRTE to display
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 11, 2006, 03:18:00 am
lol could you make the map for me? I think anyone who release an editor should provide examples. This week I'll prbly not have the time to make my own map >.< and I dont have motivation to make one anyway, I guess I'm too lazy ._.
Title: pure basic tile mapper
Post by: elfprince13 on September 11, 2006, 09:00:00 am
this isn't really an editor, but if you want a sample map run the following code:


QuoteBegin-"prgmMAPGEN"+-->
QUOTE ("prgmMAPGEN")

:Prompt R,C
:" ->Str1
:"123456->Str2
:For(I,1,RC60
:Str1+sub(Str2,randint(1,6),1->Str1
:Disp int(IE2/(RC60
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 12, 2006, 01:41:00 am
sound cool, those sprites would be good for a strategy/war game i think as well ^^
Title: pure basic tile mapper
Post by: elfprince13 on September 12, 2006, 06:05:00 am
that was http://www.answers.com/topic/strategic-conquest <--(look at the version 3.0 screenshot)
Title: pure basic tile mapper
Post by: kalan_vod on September 12, 2006, 07:58:00 pm
I saw the SS on RS I believe, and it looks GREAT! I really love it, I haven't tried it yet but I hope to XDsmiley.gif.
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 13, 2006, 01:44:00 am
wow that sound great! are you still planning to make this game?
Title: pure basic tile mapper
Post by: elfprince13 on September 13, 2006, 02:53:00 am
I am in fact planning to make it, its easily feasible since the Strategic Conquest 3.0 map is only 60*80 tiles and it only requires the following sprites:

battleship
carrier
destroyer
transport
submarine
tank
fighter
bomber
city
land
water

all of which can be ripped directly from the game :Dbiggrin.gif
Title: pure basic tile mapper
Post by: Liazon on September 13, 2006, 10:31:00 am
*Liazon
Title: pure basic tile mapper
Post by: kalan_vod on September 13, 2006, 11:29:00 am
user posted image

From RS, sorry if you didn't want it here..
Title: pure basic tile mapper
Post by: elfprince13 on September 13, 2006, 12:42:00 pm
thats fine, I just wasn't gonna hotlink off of RS, and I was having issues with imageshack earlier
Title: pure basic tile mapper
Post by: DJ Omnimaga on September 13, 2006, 02:17:00 pm
wow cool O_Oshocked2.gif I saw your other thread, I'll createa  project forum for it asap!
Title: pure basic tile mapper
Post by: elfprince13 on September 13, 2006, 02:23:00 pm
thankee kindly
Title: pure basic tile mapper
Post by: kalan_vod on September 13, 2006, 02:34:00 pm
QuoteBegin-elfprince13+13 Sep, 2006, 18:42-->
QUOTE (elfprince13 @ 13 Sep, 2006, 18:42)
thats fine, I just wasn't gonna hotlink off of RS, and I was having issues with imageshack earlier  

 Same here, that is why i hotlinked it from RS :Ptongue.gif.
Title: pure basic tile mapper
Post by: elfprince13 on September 14, 2006, 12:18:00 am
lol, goodstuff, goodstuff
Title: pure basic tile mapper
Post by: Liazon on September 14, 2006, 11:58:00 am
O_Oshocked2.gif that is really good.