Thursday, 6 August 2009

Implementing Transient Events: An example

This is a video of a simple usage of the TGameTimer class - to increase and decrease the FOV of the Player. This takes place using an event of 30 turns duration.

The default radius of the FOV for this demo is 3 squares (normally it is 7), and at the start of the event, this is increased to 9. Half-way through (15 turns later), this is reduced to 6, and then 15 turns after that, the radius is reduced to 3. Appropriate messages are displayed in the messagelog.

I'll go through the code required to produce this in my next post.


It is worthwhile to note that this means that I can now implement variable stage poisons and sickness, like Crawl posseses. But I have many ideas for Kharne beyond even what Crawl implements.

No comments: