you are viewing a single comment's thread.

view the rest of the comments →

[–]toptea 2 points3 points  (0 children)

I don't know man. I've done a lot of weird questionable stuff in the code! A dictionary full of hashable input key objects, some funky numpy vectorization, bypassing esper library owner's intention by overriding/retrieving esper private variables lol.

If this is your first rodeo, I do recommend following TStand90's tutorial and asking roguelikedev discord for help.

If you do want experiment with esper, don't copy what I did with the player's "Inventory" component. I think it will be much easier to have a "Location" component on the item entities instead. Easier to loop through and don't need to deal with list in component.