Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

nice to have: a RNG Spawn Point generator that checks "In World" for dungeons and "Within World" for items/monsters #67

Closed Rushwind13 closed 3 weeks ago

Rushwind13 commented 1 month ago

this will drop out all the GetRandom(0,DUNG_WIDTH) type calls

can expand to "give me a vector" or "Give me a rect" and "bounds are this" can be in nice wrappers for ROOM, HALLWAY, Item, Monster, ...

Rushwind13 commented 3 weeks ago

a lot of this work is in https://github.com/Rushwind13/JMoria/pull/80 AnyOpenTile() is the cool function also Contains() and Nearby() and IsInRect / IsWithinRect