1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
25 redef fun penalty_img
do return app
.assets
.penalty_hundred
27 redef fun flashes
do return [
28 new Flash(5.0, 0.0, 1.0, 0.0, 0.0, 1.25, 2.0),
29 new Flash(0.2, 0.0, 1.0, 1.0, 1.0, 1.0, 2.0)]
36 redef fun penalty_img
do return app
.assets
.penalty_twenty
42 var nuke
= new Nuke(app
.assets
.nuke
, 180.0*display_scale
, 780.0*display_scale
, 100) is lazy
45 var big_cactus
= new BigTrap(app
.assets
.big_cactus
, 242.0*display_scale
, 820.0*display_scale
, 20) is lazy
51 if game
.points
> 25 then
52 if 25.rand
== 0 then return game
.big_cactus
53 if game
.points
> 50 and 100.rand
== 0 then return game
.nuke