Lillapojkenpåön Posted September 30, 2020 Share Posted September 30, 2020 27 minutes ago, Mord said: The process to create the tiled maps are the same however you have to remember the width of a 160B sprite is half the width of a 160A sprite. If your tiled map is still assuming 8 pixel wide tiles from the 160A sample, then it's going to cause 7800Basic to do exactly what you saw happen. You'll have to adjust the tile sizes on your map in Tiled to width of 4 from 8 before exporting it. That makes my map 40 columns wide, but 32 is the highest to choose when plotting, so would making two maps and plotting them next to eachother be a good choice? Quote Link to comment Share on other sites More sharing options...
Mord Posted September 30, 2020 Share Posted September 30, 2020 That's essentially what you'd have to do yeah. When I was fiddling with it in the past I'm pretty sure I just made two equally sized plots, one for the left hand of the screen and one for the right. 1 Quote Link to comment Share on other sites More sharing options...
+SmittyB Posted September 30, 2020 Share Posted September 30, 2020 The plotmap command has optional parameters '[map_x_off map_y_off map_width]' to make it easy to draw specific parts within a larger tilemap so you can have the one map and then draw it in 2 halves (or as many as it takes to get what you want) without too much difficulty. Here's an example from my code. The first draws the left half, and the second draws the right. I'm using doublewide so the width of my screen is 20 tiles rather than 40, and similarly each half is 10 tiles rather than 20. plotmap wallsTileMap 7 0 4 10 10 0 0 20 plotmap wallsTileMap 7 80 4 10 10 10 0 20 1 1 Quote Link to comment Share on other sites More sharing options...
Lillapojkenpåön Posted September 30, 2020 Share Posted September 30, 2020 Even better! Thanks! Btw, what does displaymode affect? Since I have it as 160A but the tiles for my background as 160B, and how can that be good for extra colors like mksmith described? Quote Link to comment Share on other sites More sharing options...
Mord Posted September 30, 2020 Share Posted September 30, 2020 Easiest way to remember it would be that 160B is an extra format usable with 160A. The technical reason essentially is a bit in the Display List entries that 7800Basic is creating for you when it plots something. Setting/unsetting that bit would essentially determine if that sprite is displayed as 160A or 160B. 7800Basic handles all that for you based on whether you incgraphic an image as 160A or 160B. Displaymode is only used to set the "base" mode for lack of a better term. IE: 160A, 320A, or 320C. The same thing happens with the 320 modes. You would select 320A mode with displaymode, but you'd also be able to use 320C sprites at the same time. Or 320B mode and also be able to use 320D sprites. 2 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.