diff options
| author | Amir Rajan <[email protected]> | 2021-08-07 00:13:33 -0500 |
|---|---|---|
| committer | Amir Rajan <[email protected]> | 2021-08-07 00:13:33 -0500 |
| commit | a503afe87619ff82201c0a43818fa1c3f070a548 (patch) | |
| tree | 0b228a6456d17f6d0c6ea54c9ecd6a045ddbdf59 /samples/99_genre_platformer | |
| parent | bea150381f495630f92f89d23d5f3445ec289b2d (diff) | |
| download | dragonruby-game-toolkit-contrib-a503afe87619ff82201c0a43818fa1c3f070a548.tar.gz dragonruby-game-toolkit-contrib-a503afe87619ff82201c0a43818fa1c3f070a548.zip | |
Samples folder synced.
Diffstat (limited to 'samples/99_genre_platformer')
| -rw-r--r-- | samples/99_genre_platformer/clepto_frog/app/main.rb | 2 | ||||
| -rw-r--r-- | samples/99_genre_platformer/gorillas_basic/app/repl.rb | 17 | ||||
| -rw-r--r-- | samples/99_genre_platformer/the_little_probe/app/main.rb | 2 |
3 files changed, 2 insertions, 19 deletions
diff --git a/samples/99_genre_platformer/clepto_frog/app/main.rb b/samples/99_genre_platformer/clepto_frog/app/main.rb index e1ddffb..a4eb069 100644 --- a/samples/99_genre_platformer/clepto_frog/app/main.rb +++ b/samples/99_genre_platformer/clepto_frog/app/main.rb @@ -485,7 +485,7 @@ class CleptoFrog return if state.world_lookup.keys.length > 0 return unless state.world.length > 0 - # Searches through the world and finds the coordinates that exist + # Searches through the world and finds the cordinates that exist state.world_lookup = {} state.world.each do |x, y, w, h| state.world_lookup[[x, y, w || state.tile_size, h || state.tile_size]] = true diff --git a/samples/99_genre_platformer/gorillas_basic/app/repl.rb b/samples/99_genre_platformer/gorillas_basic/app/repl.rb deleted file mode 100644 index 4428c4b..0000000 --- a/samples/99_genre_platformer/gorillas_basic/app/repl.rb +++ /dev/null @@ -1,17 +0,0 @@ -begin - if $gtk.args.state.current_turn == :player_1_angle - $gtk.args.state.player_1_angle = "#{60 + 10.randomize(:ratio).to_i}" - $you_so_basic_gorillas.input_execute_turn - $gtk.args.state.player_1_velocity = "#{30 + 20.randomize(:ratio).to_i}" - $you_so_basic_gorillas.input_execute_turn - elsif $gtk.args.state.current_turn == :player_2_angle - $gtk.args.state.player_2_angle = "#{60 + 10.randomize(:ratio).to_i}" - $you_so_basic_gorillas.input_execute_turn - $gtk.args.state.player_2_velocity = "#{30 + 20.randomize(:ratio).to_i}" - $you_so_basic_gorillas.input_execute_turn - else - $you_so_basic_gorillas.input_execute_turn - end -rescue Exception => e - puts e -end diff --git a/samples/99_genre_platformer/the_little_probe/app/main.rb b/samples/99_genre_platformer/the_little_probe/app/main.rb index 5c0ce61..8fcf279 100644 --- a/samples/99_genre_platformer/the_little_probe/app/main.rb +++ b/samples/99_genre_platformer/the_little_probe/app/main.rb @@ -33,7 +33,7 @@ class FallingCircle { text: "mission control, this is sasha. landing on europa successful.", distance_gate: 0 }, { text: "operation \"find earth 2.0\", initiated at 8-29-2036 14:00.", distance_gate: 0 }, { text: "jupiter's sure is beautiful...", distance_gate: 4000 }, - { text: "hmm, it seems there's some kind of anomaly in the sky", distance_gate: 7000 }, + { text: "hmm, it seems there's some kind of anomoly in the sky", distance_gate: 7000 }, { text: "dancing lights, i'll call them whisps.", distance_gate: 8000 }, { text: "#todo... look i ran out of time -_-", distance_gate: 9000 }, { text: "there's never enough time", distance_gate: 9000 }, |
