Friday, February 16, 2018

Skipping Ahead

This is not good. I haven't finished testing the game I defined for my IntFiction and I have already begun rewriting the engine's client app. In the course of coding the engine I learned better ways to do things and am painfully aware of problems that came up late in development.

One idea I had never thought of, for some reason, is using multiple 'input listeners' (Essentially main game loop). In the original client there was one primary input loop. Any special modes like fughting or admin had to be driven by a mode variable that had to be checked all over the place.

In my new code - special modes are handled by their own inout loops, and you don't leave that loop until that mode is done with you. Each mode can easily have its own prompt and may be nothing more than a bunch of wizards or an entire sub parser in the engine.

I am also hoping to do more of an on-demand pattern for data loading. I'm hoping this will make room loading much faster than the first client.

No comments:

Post a Comment