|
 |
>> Heh, just use a language that has first-class functions, and store a
>> collection of functions. ;-)
>
> Except I want objects, and not just functions. They all have state, and
> (worse) they tend to keep pointers to each other. The gridplane needs to
> remember how big you want the grid, and it also needs to know where the
> camera is so it can draw itself, for example. The guy in the maze needs
> to know where the camera is, needs the maze structure, needs the
> reference to the gamepad, etc.
It wasn't an entirely serious suggestion. (Although you could probably
make it work. Just have the functions point to the state you want them
to mutate...)
Post a reply to this message
|
 |