Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 178

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 183

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 184

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 220

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 223

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 235

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 250

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 252

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 257

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 268

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 270

Deprecated: Function create_function() is deprecated in /var/www/laserbrainstudios.com/public_html/forum/Sources/Load.php on line 273

Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /var/www/laserbrainstudios.com/public_html/forum/SSI.php on line 172
Laserbrain Studios » Objectives and timers

Laserbrain Studios

Games Forum Blog Contact

Objectives and timers

June 25th, 2012 by Christian Knudsen

Last week I managed to complete the saving and loading stuff. I also figured out how to use zlib compression, so map files are only about 10 kB in size (compared to more than 1 MB uncompressed) and save files just over a kilobyte. Right now, the entirety of Hostile Takeover is under 20 MB in size, in case you’re wondering. But that will of course grow as more maps and assets get added.

After the saving and loading stuff, I was planning on doing the last big optimization, but plans are made to be broken, so I instead added a ‘current objective’ button (that also provides tutorial hints), as well as a ‘mission restart’ button (won’t yet be fully implemented in the first pre-alpha release) and a timer.

Click to enlarge

Click to enlarge

Currently, there’s only one use for the timer: If your stealth level drops all the way down to zero, you’ll have a few minutes to complete your assassination and escape the map or you’ll fail the mission. In the finished game, I’d like for the mission to not just fail automatically when the timer runs out, but instead have extra police/security guards drive onto the map and surround the building. So you’ll still have a chance of completing your mission – getting out alive will just be very hard.

I’m now diving into that optimization thing. For real this time!


This post has 1 Comment on the forums.