This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
AaroneusTheGreat


Advanced Member


Joined: 01 May 2007
Posts: 290

Posted: 30 May 2007 06:11:35 pm    Post subject:

I know how to import tiles and create map code, i just need the map code to reflect the tiles i put in the maps. For instance, in my game 13ghosts, the brick tile is equal to 3 in the map file

if i had a map like this

3,3,3,3,3,3,3,3,3,3,3,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,3,3,3,3,3,3,3,3,3,3,3

that would make a small rectangle with walls around the outside that look like bricks

what i'm getting is 1 for the first tile i decide to put on the map, no matter what the tile's actual value is supposed to be.

How do i set the tiles to have their own distinct value?

I want to know this so i can use the Tile Studio program to create maps for the next project i'm going to work on, Doom.

Doom's going to be a HUGE game so i need a way to quickly create levels.

I'm going to use negative values for where sprites/enemies are supposed to go, and special negative values for types of doors. My program will handle all of this accordingly and assign the right doors/tiles/sprites to the locations on the map described by the negative value.

For instance if i set -15 to be a shotgun,

3,3,3,3,3,3,3,3,3,3,3,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,0,0,0,0,0,-15,0,0,0,0,3,
3,0,0,0,0,0,0,0,0,0,0,3,
3,3,3,3,3,3,3,3,3,3,3,3

The shotgun would be in the map in roughly the middle.

How does one do this?

The code generation script in TileStudio responsible for making the right map codes in thriteen ghosts is;



Code:
; thirteenghosts

#tileset
#file maps.txt
<MapCount>,
#map
<MapWidth>,<MapHeight>,
#mapdata
<TileNumber:"%2d">,
#end mapdata
#end map
#end file
#end tileset



is there something wrong with this? ( i used the arena 3d TileStudio code as an example)


Last edited by Guest on 30 May 2007 06:12:18 pm; edited 1 time in total
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 30 May 2007 06:35:12 pm    Post subject:

What language is this in? For computer or calculator?
Back to top
AaroneusTheGreat


Advanced Member


Joined: 01 May 2007
Posts: 290

Posted: 30 May 2007 09:23:52 pm    Post subject:

It's TileStudio on the computer. I didnt think there was a tile studio for the calcs. I could be wrong.
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 30 May 2007 10:00:23 pm    Post subject:

I don't know if anybody will be familiar with that.
Back to top
AaroneusTheGreat


Advanced Member


Joined: 01 May 2007
Posts: 290

Posted: 30 May 2007 10:54:20 pm    Post subject:

perhaps not but i did find a way to make the basic construct of the map, eg. the way the walls are organized. from there i can do a find/replace and just put the desired textures in their place. It's very tedious though. Not as tedious as writing the map code from scratch tho. I'm glad that's one thing i can do slightly quicker.

I have level 10's construct, textures, and doors in place thanks to that. :)

Only the level 9 and 10 details and three more whole levels and this game is done. :D

although if anyone here knows of a better program for map development i'd love to hear what that is.


Last edited by Guest on 30 May 2007 10:56:12 pm; edited 1 time in total
Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement