Commit Graph

10 Commits

Author SHA1 Message Date
Kurt
a9810c7d03 Merge Field Item back into Item
Different means of expression for the 8 byte item structure's FreeParam

Will be expanding the ItemEditor so that it has a checkmark to toggle Extension Item editing behavior.

Removes IHeldItem as there's no need to abstract it.
2020-05-08 12:20:24 -07:00
Kurt
bf841b8ecf Show item sprites in item editor
put a folder named "items" with the english named item sprites (tbd if we change to a more sane filename format)

bring your own files, it's like 45 MB so not distributing with the EXE.
2020-05-05 22:13:29 -07:00
Kurt
928e699168 misc performance improvements
Preallocate the terrain-building objects and reuse

changed:
- grid alternates with a slightly-darker to help indicate the larger 2x2 tile grid.
- put plaza & buildings behind the gridlines
2020-05-02 23:02:37 -07:00
Kurt
33b9e7f170 Show terrain map behind field item view
Adds a transparency slider to have the field items fade so you can see the underlying terrain tile.

Not really optimized (allocates every time), but it should be fine for now.

Make the None item transparent, so that the entire map bleeds through (clear clarity).
2020-04-28 21:08:57 -07:00
Kurt
4efbb00b4e Add pro design r/w 2020-04-23 17:09:52 -07:00
Kurt
6ce0d1595d Remove allocation for field item editor
Allocate once on init, and reuse objects

pretty much buttery smooth now :)
2020-04-09 16:01:20 -07:00
Kurt
cf889668d3 Minor perf improvements
Move repeat calculations from inner loop to outer loop
Extract some methods for reusability
2020-04-09 14:35:09 -07:00
Kurt
557a34edbc Minor clean
Reduce array get counts by 16 (from 17->1)
2020-04-08 17:13:00 -07:00
Kurt
5e99e24628 Add fast pixel upscale
1->X sized scaling; preferred when scale is large enough and you want to retain raw access to pixel data.
2020-04-08 14:34:52 -07:00
Kurt
2ce535c67c Refactoring
Move sprite resources to subfolder for organization
Add FieldItem class (replaces MapItem), might work in a field item editor (similar to building editor)
2020-04-07 10:19:58 -07:00