The Daily Click ::. Projects ::. TAHC2
 

Project: TAHC2
Project Started: 20th October, 2009 Last Update: 8th April, 2012
Project Owner: 3kliksphilip Project Members: Mr_Tom James Luke
Project Type: Secret Project Progress:

Lighting
Posted 14th Oct 10, by 3kliksphilip  
This is an important part of the game, since it's all about scary night-time encounters and the like.

In the first game, it gets dark, then light again in the morning. This is all from an overlay over the screen that changes in transparency depending on the time.

I tried something a bit more complicated for TAHC2. The first method I experimented with was to have a line 1440 pixels long (24 x 60), each pixel representing a minute. I could then make the line consist of gradients, going from black, to red (sunrise), to blue (midday) etc. This was a very flexible system and I thought it would be cool because people could port their own 'light sticks' into the game for their own campaigns. Unfortunately, 1440 pixels didn't lead to smooth transitions, so it would have to be a lot longer.

It ended getting complicated and I had to ask myself who would actually bother making a colour grid. It would also have to include another line representing the transparency of the light (since the darkness at night time would have to be more pronounced than, say, the faint glow of midday sun). I scrapped the idea, though it might be worth considering for future projects.

The final result is 4 simple coloured boxes; night, morning, afternoon and evening. I also add an extra layer to act as the darkness at night. I find this is nice, effective and smooth, as the colours blend between each other very smoothly and I don't feel that much more will be needed. With HWA I can place about 50 of these transparent layers before it begins to slow down on my LAPTOP, so I'm guessing that 5 should be fine for anyone's PC. (Expect another one for weather, mind).

Sure, these blogs are specialised in subject, but hopefully this has helped anybody who wants to try and make something similar and needs some possible methods to try out. I'm just pleased that I'm managing to make this game superior to the original in every possible way.

Posted by Marko 14th October, 2010

That was very interesting and i'm sure i'll pick up on that idea when i start adding weather to my future games - cheers dude

BTW, i REALLY want to play this. If you need a play tester, i'm volunteering! (again)
 
Posted by 3kliksphilip 15th October, 2010

Thanks, Marko, I appreciate that. I'll let you know if I do.
 
Posted by Dean James Reynolds 15th October, 2010

Also me, Ever since v1.40 everyday I've checked this project page

I must Over-Like this game

This 'Lightning' has made it more interesting!
 


 



Project Forums


Favourite

Advertisement

Worth A Click