fd8a1cbabc
Add a hash mechanism to BaseMapSource.
...
This is needed to recognize what type of tiles a layer contains.
Client code has to fill in a map of hash => add_layer<T>() pointers.
As a layer is loaded, the correct add_layer<T>() is called based
on the hash saved with the layer itself.
2015-06-07 03:57:18 +02:00
ab6ef6c338
BaseMapSource doesn't need to know T. Only fetch() will need that.
2015-06-06 14:23:21 +02:00
72b400ac0c
Warning fix on clang.
2015-05-28 00:25:06 +02:00
a82e8c16f6
Helper recursive map loader.
...
Recursion not tested since the file format is not ready yet, sorry.
2015-05-28 00:20:40 +02:00
ea71478948
Refactoring in the data loading classes.
...
Lots of junk code removed, the architecture is now much simpler.
AsciiMapSource works as before.
2015-05-25 01:37:20 +02:00
1c5cb6299c
Show diamond-shaped tiles on a larger map.
2015-05-24 17:19:10 +02:00
a9630341c7
Draw tiles.
2015-05-22 14:50:10 +02:00
20a7e0450d
Buildfix.
...
Don't use surfaces, SDL2_image lets you create a texture
directly.
This is missing the graphic files that the code seeks to
load so it will not run.
2015-05-21 18:14:07 +02:00
bb7de4f4dd
Make and SDL2 window and try to load some textures, untested
2015-05-21 09:54:59 +02:00
2d61a84c13
AsciiMapReader works on raw data, so it needs to know
...
the map size (2D only) from the outside.
2015-05-21 09:52:45 +02:00
7a8ffe2060
Public header files moved into the doorkeeper subdirectory
2015-01-06 16:38:52 +01:00
436d738620
Refactoring in map reading code - part 1/2
...
Fixed a bug when iterating over a view that was smaller than the map size
Added a class to abstract map readers
2015-01-05 18:01:28 +01:00
c9381a4585
Advancing in the design of Tyler.
...
Iterating through tiles in viewports now works fine.
You can pass in a custom device as the data source for the tile map.
2014-12-29 16:17:59 +01:00
59801755cc
Some reordering in the directory.
...
This breaks the build.
2014-12-22 16:56:17 +01:00