Commit Graph

4 Commits (1c454fd5238f440f7be40dee2d390f9ee9a575e4)

Author SHA1 Message Date
Luka Vandervelden 1c454fd523 Map & mapgen updates.
- More textures, more transition textures.
  - Old ImageLoader removed.
  - Number of tiles displayed reduced for more realistic benchmarking.
    Also makes running tests a bit faster.
2018-11-05 00:21:56 +09:00
Luka Vandervelden 9b33e7cbb5 Various.
- Map drawing is now possible with custom object-specific drawing
    code. A few examples have been added, including one that draws
    borders.
    Please note that those borders are still not perfect, however, as
    some inner angles are being rendered with plain/full-tile textures.
    The drawing code helpers will probably be moved to a location that
    makes them easy to reuse.
  - Some of the old map drawing code is still present (in particular in
    src/main.cr). That code is deprecated and will be removed soon.
  - WIP Naka::Map::ObjectReference. May or may not remain as it
    currently is.
  - Some mapgen updates to match the new drawing methods.
  - Possibly other minor tweaks or grooming.
2018-11-04 08:49:40 +09:00
Luka Vandervelden 085f7adc09 Added previously missing font asset.
Font was originally found on OpenFontLibrary.
2018-11-04 00:58:44 +09:00
Luka Vandervelden 9116227d70 Updates, various.
- Naka has been split to a separate file for better readability.
  - Naka::Noise2D added. Basically Perlin noise, but it adds a few APIs
    to sum stacks of octaves and such. Generation from seed is still
    missing even though it’s critical.
  - An example map is generated using several Naka::Noise2D.
  - Some assets added, and used to display an example map. Objects that
    are higher than one tile are displayed, but widths can’t overflow
    at the moment.
  - Maps are saved to disk. This is still minimal, however, and loading
    them from save files is not implemented at the moment.
  - Some Naka::Event were added at some point, although they’re still
    very much works in progress, and probably incomplete.
  - Maps are displayed in a very crude way. Transitions between terrain
    types are unsupported, for example.
2018-11-04 00:36:32 +09:00