Jump to content
Atarius Maximus

Creating 7800basic compatible maps with the Tiled app

Recommended Posts

I thought I'd review the steps on how to create a tiled background image for use with 7800basic, specifically for a map that will work with the 160A display mode along with 'set doublewide on' in your code. It works great and is a big time saver.

 

Before you start you'll of course need all of your graphics images completed. If you make any changes to your tileset graphics in the future, the changes will automatically be reflected in the map. Tiled does not create an image file, it creates an XML file that maps out and links to the different graphics images that you have. If you dramatically change your graphics images you will have to update your map file (or files).

 

Please Note (from post #5, RevEng):

 

The tutorial here assumes 160A mode (as stated) as well as the "set doublewide on" setting. Normally the width of one character in 160A mode is 4 pixels wide, but adding "doublewide" changes that to 8 pixels wide. This is why I used "8" for the "tile width" in Tiled.

If you wanted to adjust this tutorial for another mode, you can just lookup the width of one character in that mode in the table I linked to, and adjust for "set doublewide on" if you use it. That will be your value for "tile width". The "tile height" will be your zone height, and you can adjust the map size as you prefer.

 

-----------------------------------------------

 

First, download the Tiled app.

 

Once you've installed it, select File | New Map.

 

post-2143-0-87905400-1405432537_thumb.png
Make sure you select the correct options for your new map. Select an orthogonal orientation, XML format, 20x12 map size, and 8x16 tile size.
post-2143-0-46485200-1405432538_thumb.png
Now your ready to load up your tileset graphics. You can load multiple sets.
post-2143-0-53731500-1405432539.png
Click on browse to select your tileset. Make sure you set your options as seen in the screenshot.
post-2143-0-04858300-1405432540_thumb.png
Your first tileset is now loaded. I generally increase the size to 400% to make it easier to see.
post-2143-0-07881100-1405432541_thumb.png
You can now left click on a tile to use on the map, or hold down the CTRL button and select multiple tiles at a time.
post-2143-0-67581900-1405432541_thumb.png
You can now draw on the map screen. If you hold the left button mouse down you can drag the background tile to fill the map screen.
post-2143-0-23337700-1405432542_thumb.png
You can load multiple tilesets, each one will get their own tab. I generally increase the map size to 200% to make it easier to see.
post-2143-0-26235800-1405432543_thumb.png
Once you're happy with your map design you can save it as a tmx file and use it in your 7800basic program.
post-2143-0-39669900-1405432544_thumb.png

 

 

 

 

 

 

 

 

post-2143-0-87905400-1405432537_thumb.png

post-2143-0-46485200-1405432538_thumb.png

post-2143-0-53731500-1405432539.png

post-2143-0-04858300-1405432540_thumb.png

post-2143-0-07881100-1405432541_thumb.png

post-2143-0-67581900-1405432541_thumb.png

post-2143-0-23337700-1405432542_thumb.png

post-2143-0-26235800-1405432543_thumb.png

post-2143-0-39669900-1405432544_thumb.png

  • Like 5

Share this post


Link to post
Share on other sites

Excellent info here! I just have a small point to add.

 

The tutorial here assumes 160A mode (as stated) as well as the "set doublewide on" setting. Normally the width of one character in 160A mode is 4 pixels wide, but adding "doublewide" changes that to 8 pixels wide. This is why Atarius Maximus used "8" for the "tile width" in Tiled.

 

If you wanted to adjust this tutorial for another mode, you can just lookup the width of one character in that mode in the table I linked to, and adjust for "set doublewide on" if you use it. That will be your value for "tile width". The "tile height" will be your zone height, and you can adjust the map size as you prefer.

  • Like 2

Share this post


Link to post
Share on other sites

Excellent info here! I just have a small point to add.

 

The tutorial here assumes 160A mode (as stated) as well as the "set doublewide on" setting. Normally the width of one character in 160A mode is 4 pixels wide, but adding "doublewide" changes that to 8 pixels wide. This is why Atarius Maximus used "8" for the "tile width" in Tiled.

 

If you wanted to adjust this tutorial for another mode, you can just lookup the width of one character in that mode in the table I linked to, and adjust for "set doublewide on" if you use it. That will be your value for "tile width". The "tile height" will be your zone height, and you can adjust the map size as you prefer.

 

Thanks for the clarification, RevEng. I updated the first post with this info.

  • Like 2

Share this post


Link to post
Share on other sites

Sure, that's fine. You can also add the graphics tutorial if you like.

 

The first draft of both pages are done:

 

randomterrain.com/7800basic-creating-maps.html

 

randomterrain.com/7800basic-graphics.html

 

 

Links to those pages have been added here:

 

randomterrain.com/atari-2600-memories.html#7800basic

  • Like 3

Share this post


Link to post
Share on other sites

Yeah, the article you linked to specifies the way to do it. You can check any point, or set of points, on the sprite to see if they're over a particular tile-type.

Share this post


Link to post
Share on other sites

Yeah, the article you linked to specifies the way to do it. You can check any point, or set of points, on the sprite to see if they're over a particular tile-type.

 

 

Cool thanks. Another question does 7800Basic allow for nested GOSUBs? ie:

main_loop
  gosub drawplayer
  goto main_loop

drawplayer
 if playerdead then gosub deadplayer
 return

deadplayer
  lives=lives-1
  return

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...