Doesn't allegro alow using of tiled textures. I think that in allegro they are refered as "atlas bitmaps".
Othervise it is quite similar as handling snapping tile to grid that we discussed in one of your other threads.
Doesn't allegro alow using of tiled textures. I think that in allegro they are refered as "atlas bitmaps".
Othervise it is quite similar as handling snapping tile to grid that we discussed in one of your other threads.
imcold, thanks.
SilverWarrior: Yeah, it support it, but as much as TCanvas does - i.e. you need to copy rects yourself. But thanks to imcold I'll manage it.
Allegro means "Allegro Low-Level game routines" and tile stuff is high-level. Allegro just allows you to load, create and draw bitmaps, but doesn't provide any "tile map" functionality.
The Allegro.pas' demo game does use tiles, but the engine was written from scratch. Anyway you (Darkhog) should take a look into the sources (tilemap.pas and sprites.pas). The sprites unit shows how to calculate the "tile ID" from the sprite position.
No signature provided yet.
Bookmarks