|
9 | 9 | "name": "ScoreCounter", |
10 | 10 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/48ec8784eacd92181e4a3bde4755962b5f6edf986e624fc85ea423a31408450d_counter.svg", |
11 | 11 | "shortDescription": "An animated score counter with an icon and a customisable font.", |
12 | | - "version": "1.2.1", |
| 12 | + "version": "1.3.0", |
13 | 13 | "description": [ |
14 | 14 | "An animated score counter with an icon and a customisable font.", |
15 | 15 | "", |
|
28 | 28 | ], |
29 | 29 | "dependencies": [], |
30 | 30 | "globalVariables": [], |
31 | | - "sceneVariables": [ |
32 | | - { |
33 | | - "name": "RisingPitch", |
34 | | - "type": "number", |
35 | | - "value": 1 |
36 | | - } |
37 | | - ], |
| 31 | + "sceneVariables": [], |
38 | 32 | "eventsFunctions": [ |
39 | 33 | { |
40 | 34 | "description": "Check if the events are running for the editor.", |
|
2949 | 2943 | "ambientLightColorB": 200, |
2950 | 2944 | "ambientLightColorG": 200, |
2951 | 2945 | "ambientLightColorR": 200, |
| 2946 | + "camera2DPlaneMaxDrawingDistance": 5000, |
2952 | 2947 | "camera3DFarPlaneDistance": 10000, |
2953 | 2948 | "camera3DFieldOfView": 45, |
2954 | 2949 | "camera3DNearPlaneDistance": 3, |
|
3141 | 3136 | "events": [ |
3142 | 3137 | { |
3143 | 3138 | "type": "BuiltinCommonInstructions::Standard", |
3144 | | - "conditions": [], |
3145 | | - "actions": [ |
3146 | | - { |
3147 | | - "type": { |
3148 | | - "value": "SetNumberVariable" |
3149 | | - }, |
3150 | | - "parameters": [ |
3151 | | - "Score", |
3152 | | - "=", |
3153 | | - "Value" |
3154 | | - ] |
3155 | | - }, |
| 3139 | + "conditions": [ |
3156 | 3140 | { |
3157 | 3141 | "type": { |
3158 | | - "value": "ScoreCounter::RollingCounter::SetValue" |
| 3142 | + "inverted": true, |
| 3143 | + "value": "ScoreCounter::IsInGameEdition" |
3159 | 3144 | }, |
3160 | 3145 | "parameters": [ |
3161 | | - "Counter", |
3162 | | - "RollingCounter", |
3163 | | - "=", |
3164 | | - "Score", |
| 3146 | + "", |
3165 | 3147 | "" |
3166 | 3148 | ] |
3167 | | - } |
3168 | | - ] |
3169 | | - }, |
3170 | | - { |
3171 | | - "type": "BuiltinCommonInstructions::Standard", |
3172 | | - "conditions": [ |
| 3149 | + }, |
3173 | 3150 | { |
3174 | 3151 | "type": { |
3175 | | - "inverted": true, |
3176 | | - "value": "ScoreCounter::IsInGameEdition" |
| 3152 | + "value": "NumberVariable" |
3177 | 3153 | }, |
3178 | 3154 | "parameters": [ |
3179 | | - "", |
3180 | | - "" |
| 3155 | + "Value", |
| 3156 | + ">", |
| 3157 | + "Score" |
3181 | 3158 | ] |
3182 | 3159 | } |
3183 | 3160 | ], |
|
3194 | 3171 | "", |
3195 | 3172 | "\"RisingPitch\"", |
3196 | 3173 | ">", |
3197 | | - "1" |
| 3174 | + "PitchTimeout" |
3198 | 3175 | ] |
3199 | 3176 | } |
3200 | 3177 | ], |
3201 | 3178 | "actions": [ |
3202 | 3179 | { |
3203 | 3180 | "type": { |
3204 | | - "value": "SetNumberVariable" |
| 3181 | + "value": "ScoreCounter::ScoreCounter::Function" |
3205 | 3182 | }, |
3206 | 3183 | "parameters": [ |
3207 | | - "RisingPitch", |
3208 | | - "=", |
3209 | | - "0.8" |
| 3184 | + "Object", |
| 3185 | + "" |
3210 | 3186 | ] |
3211 | 3187 | } |
3212 | 3188 | ] |
|
3221 | 3197 | }, |
3222 | 3198 | "parameters": [ |
3223 | 3199 | "", |
3224 | | - "Collect coin 1.wav", |
| 3200 | + "IncreasingScoreSound", |
3225 | 3201 | "no", |
3226 | 3202 | "100", |
3227 | | - "RisingPitch" |
| 3203 | + "CurrentPitch" |
3228 | 3204 | ] |
3229 | 3205 | }, |
3230 | 3206 | { |
3231 | 3207 | "type": { |
3232 | 3208 | "value": "SetNumberVariable" |
3233 | 3209 | }, |
3234 | 3210 | "parameters": [ |
3235 | | - "RisingPitch", |
| 3211 | + "CurrentPitch", |
3236 | 3212 | "*", |
3237 | | - "1.01" |
| 3213 | + "PitchFactor" |
3238 | 3214 | ] |
3239 | 3215 | }, |
3240 | 3216 | { |
|
3283 | 3259 | ] |
3284 | 3260 | } |
3285 | 3261 | ] |
| 3262 | + }, |
| 3263 | + { |
| 3264 | + "type": "BuiltinCommonInstructions::Standard", |
| 3265 | + "conditions": [ |
| 3266 | + { |
| 3267 | + "type": { |
| 3268 | + "value": "NumberVariable" |
| 3269 | + }, |
| 3270 | + "parameters": [ |
| 3271 | + "Value", |
| 3272 | + "<", |
| 3273 | + "Score" |
| 3274 | + ] |
| 3275 | + } |
| 3276 | + ], |
| 3277 | + "actions": [ |
| 3278 | + { |
| 3279 | + "type": { |
| 3280 | + "value": "ScoreCounter::ScoreCounter::Function" |
| 3281 | + }, |
| 3282 | + "parameters": [ |
| 3283 | + "Object", |
| 3284 | + "" |
| 3285 | + ] |
| 3286 | + } |
| 3287 | + ] |
| 3288 | + }, |
| 3289 | + { |
| 3290 | + "type": "BuiltinCommonInstructions::Standard", |
| 3291 | + "conditions": [], |
| 3292 | + "actions": [ |
| 3293 | + { |
| 3294 | + "type": { |
| 3295 | + "value": "SetNumberVariable" |
| 3296 | + }, |
| 3297 | + "parameters": [ |
| 3298 | + "Score", |
| 3299 | + "=", |
| 3300 | + "Value" |
| 3301 | + ] |
| 3302 | + }, |
| 3303 | + { |
| 3304 | + "type": { |
| 3305 | + "value": "ScoreCounter::RollingCounter::SetValue" |
| 3306 | + }, |
| 3307 | + "parameters": [ |
| 3308 | + "Counter", |
| 3309 | + "RollingCounter", |
| 3310 | + "=", |
| 3311 | + "Score", |
| 3312 | + "" |
| 3313 | + ] |
| 3314 | + } |
| 3315 | + ] |
| 3316 | + } |
| 3317 | + ], |
| 3318 | + "parameters": [ |
| 3319 | + { |
| 3320 | + "description": "Object", |
| 3321 | + "name": "Object", |
| 3322 | + "supplementaryInformation": "ScoreCounter::ScoreCounter", |
| 3323 | + "type": "object" |
| 3324 | + } |
| 3325 | + ], |
| 3326 | + "objectGroups": [] |
| 3327 | + }, |
| 3328 | + { |
| 3329 | + "description": "Reset the pitch to the baseline value.", |
| 3330 | + "fullName": "Reset pitch", |
| 3331 | + "functionType": "Action", |
| 3332 | + "name": "Function", |
| 3333 | + "private": true, |
| 3334 | + "sentence": "Reset the pitch of _PARAM0_", |
| 3335 | + "events": [ |
| 3336 | + { |
| 3337 | + "type": "BuiltinCommonInstructions::Standard", |
| 3338 | + "conditions": [], |
| 3339 | + "actions": [ |
| 3340 | + { |
| 3341 | + "type": { |
| 3342 | + "value": "SetNumberVariable" |
| 3343 | + }, |
| 3344 | + "parameters": [ |
| 3345 | + "CurrentPitch", |
| 3346 | + "=", |
| 3347 | + "RandomFloatInRange(PitchBaselineMin, PitchBaselineMax)" |
| 3348 | + ] |
| 3349 | + } |
| 3350 | + ] |
3286 | 3351 | } |
3287 | 3352 | ], |
3288 | 3353 | "parameters": [ |
|
3305 | 3370 | "description": "Default score", |
3306 | 3371 | "group": "Value", |
3307 | 3372 | "name": "Score" |
| 3373 | + }, |
| 3374 | + { |
| 3375 | + "value": "", |
| 3376 | + "type": "Resource", |
| 3377 | + "label": "Increasing score sound", |
| 3378 | + "group": "Sound", |
| 3379 | + "extraInformation": [ |
| 3380 | + "audio" |
| 3381 | + ], |
| 3382 | + "choices": [], |
| 3383 | + "name": "IncreasingScoreSound" |
| 3384 | + }, |
| 3385 | + { |
| 3386 | + "value": "0.7", |
| 3387 | + "type": "Number", |
| 3388 | + "label": "Min baseline pitch", |
| 3389 | + "group": "Sound", |
| 3390 | + "advanced": true, |
| 3391 | + "name": "PitchBaselineMin" |
| 3392 | + }, |
| 3393 | + { |
| 3394 | + "value": "0.8", |
| 3395 | + "type": "Number", |
| 3396 | + "label": "Max baseline pitch", |
| 3397 | + "group": "Sound", |
| 3398 | + "advanced": true, |
| 3399 | + "name": "PitchBaselineMax" |
| 3400 | + }, |
| 3401 | + { |
| 3402 | + "value": "1.01", |
| 3403 | + "type": "Number", |
| 3404 | + "label": "Pitch factor", |
| 3405 | + "group": "Sound", |
| 3406 | + "advanced": true, |
| 3407 | + "name": "PitchFactor" |
| 3408 | + }, |
| 3409 | + { |
| 3410 | + "value": "1", |
| 3411 | + "type": "Number", |
| 3412 | + "unit": "Second", |
| 3413 | + "label": "Pitch reset timeout", |
| 3414 | + "group": "Sound", |
| 3415 | + "advanced": true, |
| 3416 | + "name": "PitchTimeout" |
| 3417 | + }, |
| 3418 | + { |
| 3419 | + "value": "0.8", |
| 3420 | + "type": "Number", |
| 3421 | + "label": "Current pitch", |
| 3422 | + "hidden": true, |
| 3423 | + "name": "CurrentPitch" |
3308 | 3424 | } |
3309 | 3425 | ] |
3310 | 3426 | } |
|
0 commit comments