#Need help making a game engine

3 messages · Page 1 of 1 (latest)

old python
#

I'm making a game engine for a game similar to screeps, but in rust and embedded lua using mlua crate. I want to make tick event be able to modify data in Unit, specifically the action. Same for other events. I also want actions be able to modify units in act method (for example, change the position of the unit), but I keep getting stuck because I either get into a situation with multiple mutable borrows or immutable borrow and mutable.

old python
#

Need help making a game engine

old python
#

I'm trying to figure this out for more than 2 days already, pls help