Commit Graph

28 Commits (c00a8cf3c3a33a88c5a8aba152d06d9f483921a5)

Author SHA1 Message Date
Maikel de Vries 3808c22df4 make time object more editor friendly 2018-03-13 22:32:03 +01:00
Sven Eberhardt f3f475e38a Fix Time default initialization and add editor props 2016-08-30 02:00:02 -04:00
Maikel de Vries 64af1e2a8a stars: fix placement and allow scenarios to change placement 2015-12-30 11:36:30 +01:00
Maikel de Vries f6aee9927c add function to init the time object with a definition call 2015-12-16 20:19:09 +01:00
Maikel de Vries 2e297b6563 time isday and isnight return true and false if no time object is present 2015-12-12 18:15:55 +01:00
Maikel de Vries 9d88a259a2 fix flickering of sky in time object 2015-11-22 09:28:53 +01:00
Maikel de Vries 2be6988829 fix updating of time object when set by script 2015-11-21 21:25:16 +01:00
Maikel de Vries 9a9486d0fe Do not XOR booleans (Time.ocd) 2015-11-08 22:34:09 +01:00
Armin 1b35755ce4 Fix blinking sky when using the time object. 2015-11-07 11:24:22 +01:00
Armin 41e2bd8d6f Fix time controller ignoring custom SkyAdjust (#1311). 2015-10-27 22:52:49 +01:00
Maikel de Vries 4c66cc4ad7 change time interface to remove connection between System.ocg and Objects.ocd 2015-09-22 23:31:17 +02:00
Clonkonaut b8652fa5ba Fixed IsNight. It never worked. 2015-07-23 12:45:01 +02:00
Maikel de Vries 73ebce9f9a remove celestial environment object in favor of scenario callback 2015-04-08 20:18:24 +02:00
Maikel de Vries f4324664e7 use ambient brightness for time of day 2015-04-08 20:18:24 +02:00
Maikel de Vries 041532505b reduce lag when night by removing gamma change
The cool effect is then gone, but it has to be replaced anyways by shader effects.
2015-01-29 18:04:46 +01:00
Mark 850bf1b9d4 CreateObject/CreateObjectAbove (#1214)
Renamed CreateObject() to CreateObjectAbove() and replaced all occurrences in script files.
Added CreateObject(), the function may need a rewrite though, see comment in code.
Updated documentation
2015-01-11 19:02:03 +01:00
Sven Eberhardt 5094cc5c1b Reworked "Save as scenario" option in editor to write a script file instead of Game.txt. 2013-12-27 17:10:09 +01:00
Tobias Zwick d1be5d109c adjust gamma calculation of time 2013-05-25 22:26:41 +02:00
Pyrit 6b8b386658 Added SetGamma() to the time object, so that the whole game gets dark at night, not just the sky.
Signed-off-by: Tobias Zwick <newton@westnordost.de>
2013-05-25 20:55:20 +02:00
Maikel de Vries 7613277191 Never do this again
This really is the last warning, after this I'll just revert!
2012-11-04 15:03:41 +01:00
Tobias Zwick 2335abcc23 fix hide stars and moon during day 2012-10-30 22:01:57 +01:00
Tobias Zwick 095645a7bb dont draw stars and moon at all during the day, only fade all celestial objects and cloud on dawn and dusk (performance optimization) 2012-10-30 00:48:50 +01:00
Tobias Zwick bf7742760d made the night sky more beautiful with stars 2012-10-30 00:10:00 +01:00
Tobias Zwick 117e9ec90f make day->night->day fading smoother,
add sunset/dawn fade in between,
clouds don't turn invisible in the night
2012-10-28 18:48:02 +01:00
Tobias Zwick f22fe90484 Nachtfalter's new moon 2012-10-14 01:38:09 +02:00
Charles Spurrill e1c511311e Clouds darken at night; variable 'blueness' of night relative to moon phase 2012-05-22 13:16:48 -07:00
Felix Wagner eb6b7be7ee Fixed various unused vars 2012-02-20 11:58:58 +00:00
Armin Burgmeier 675c077ed2 Change .c4d extension to .ocd 2011-03-13 16:55:00 +01:00