Knuckle Cracker

Creeper World 3 => Custom Map Discussion => Colonial Space Map Discussion => Topic started by: AutoPost on July 28, 2017, 05:33:07 AM

Title: Custom Map #4636: Real time score. By: builder17
Post by: AutoPost on July 28, 2017, 05:33:07 AM
This topic is for discussion of map #4636: Real time score
(http://knucklecracker.com/creeperworld3/queryMaps.php?query=thumbnailid&id=4636)

Author: builder17
Size: 132x99

Desc:
Getting good score in this is hard #CRPL
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: GoodMorning on July 28, 2017, 05:53:22 AM
You left the trace on. Any chance of a code dump?
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: Builder17 on July 28, 2017, 08:37:37 AM
There you go. :)
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: GoodMorning on July 28, 2017, 08:58:08 AM
Interesting. What led you to do it that way? My default would be:

once
    0 ->Lifetimer
endonce

<-Lifetimer IsPaused add ->Lifetimer
<-Lifetimer SetGameTimeFrames

:awake
    1 OperateWhilePaused

:destroyed
    0 OperateWhilePaused


I'm interested in how you arrived at that form.
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: Builder17 on July 28, 2017, 11:29:13 AM
For some unknown reason it didn't work first.
So I did lot of changes to it

and adding OperateWhilePaused to once block solved problem.

That's creative use of IsPaused in your script.
I didn't know it can be used in that way. :O

Does that script work? :)
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: D0m0nik on July 28, 2017, 05:04:10 PM
Sorry for being stupid but not sure what the CRPL does? Does it just affect the score rather than the time?
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: D0m0nik on July 28, 2017, 05:08:34 PM
Just noticed the clock. Nice!

Be great if you could make a second one of these but with a bit more challenge, spores, digitalis, runners, the full works!
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: GoodMorning on July 28, 2017, 07:16:44 PM
D0m0nik: You asked for it, here it is... The clock keeps ticking while the game is paused.

Builder17: There's a reason that (since computers use numbers to represent things) it is convention to use 1 for true and 0 for false. In CRPL, 'TRUE' and '1' do the same thing, and similarly for '0' and 'FALSE'. It is bad for readability, and hard to understand if you don't yet know that TRUE is 1. Sorry about doing that.

I haven't tested the script, but it should work.
Title: Re: Custom Map #4636: Real time score. By: builder17
Post by: Builder17 on July 29, 2017, 04:25:57 AM
I see. :) Thanks.