Best method for tile maps in Blitz2

  • Thread starter Thread starter htdreams
  • Start date Start date
  • Replies Replies 3
  • Views Views 1599

htdreams

Member
AmiBayer
Joined
Oct 24, 2012
Posts
187
Country
Spain
Region
A Coruna
Hi there!

I'm developing a game using Blitz2 with an Amiga 600 (2mb and hd, although that is not important for this question :) )

Currently i'm getting the grip on Blitz programming, i have the official manual and reference guide, and i try to search this questions in google but, at least for now, without success.

I'm trying to have a big map (a 255x255 byte array) with a tile map, and i use getashape to get 16x16 tiles from an iff image, and then use block inside a double for loop to put the map section the player is in into the two bitmaps wich are used for double buffering

My question is, is there a better known method?

What is the shape number limit? can i have more than 255 shapes? i would use them for all soft sprite frames and all tiles (i'm using near 30 shapes for now)

Can i use blockscroll with the same bitpmap to scroll all tiles to the right, for example, to put only new one column of tiles in the bitmap and use that to get smooth scrolling with a bitmap a bit larger than the screen?

Hope there are someone that could light me the way to go... :-)
 
It's been years and years since I did BB2 tilemap routines, but do remember that shapes are for sprites, not for background tile blocks. And, yes, depending on your scroll speed you would blit a tile or two every frame on the edge that you're scrolling into. Can't remember the specific BB2 commands though. Sorry :)

Edit: looks line you are already using blocks and not shapes, so forget that :) There is no better way, but you can't do the full screen every frame and expect a decent frame rate. What kind of game are you doing?
 
Hi!

I'm making an adventure game, but not the kind of games like Sierra or Lucas ones, it will be more arcade like, something between Where Time Stood Still and Zelda games...

The fact is that before starting up the game itself i'm learning how to do several things, so i can design the gameplay and game elements and graphics knowing what kind of limits i have (this is very different to using unity 3D :-) )

For now i'm focused on getting a player controlled sprite walking around in a tiled map with smooth 8-way scrolling and collision detection.

I'm using Block to blit my tiles, but that way i must use shapes, as block works with shapes... i was thinking about it, and may be i need to use another method to copy tiles from tile library bitmap and then do a full blockscroll...

Is there a way to use block with bitmaps instead of shapes?

Thanks!
 
Sounds like an interesting game :)

I seem to remember not using shapes for blocks, but memory may be failing me on it.
 
Back
Top Bottom