noita-tools icon indicating copy to clipboard operation
noita-tools copied to clipboard

EPIC – Add biome info

Open TwoAbove opened this issue 3 years ago • 1 comments

Add handling of data/biome/_biomes_all.xml, the creation of rooms, and migrate lua functions for all biomes in that list, and figure out a good way to display this data without porting Noita's engine into the browser.

Notable notes:

  • RegisterSpawnFunction: (hex: number, functionToRun: function) => void; Uses the images in data/wang_tiles/${biome}.png to generate items on those cords (the coords look like they are a square of 10 pixels?, this needs testing)
  • The creation of the levels is somewhere in the exe, so much digging is needed.
  • Since the data jsons are getting large, I think splitting them all and deferring loading is needed now (this will likely at least triple the amount of data sent to the browser)

TwoAbove avatar Jan 26 '22 05:01 TwoAbove

I think kaliuresis already has a biome display feature for his noita orb atlas site. Unless you're looking for something more detailed, this should shoot some pointers: https://github.com/kaliuresis/noa

BurritoSuicide avatar Apr 23 '22 00:04 BurritoSuicide