Commit Graph

7 Commits

Author SHA1 Message Date
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
085f7adc09 Added previously missing font asset.
Font was originally found on OpenFontLibrary.
2018-11-04 00:58:44 +09:00
cafa63e6ab File splitting. 2018-11-04 00:57:20 +09:00
01c835567e Map generator is split from Map class. 2018-11-04 00:47:55 +09:00
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
04c5e35f52 WIP keyboard Event classes. 2018-11-02 21:17:05 +09:00
73d1206edb Initial commit. 2018-11-01 21:29:41 +09:00