From b7dea8016b5b1328808e28b76cc12343907de63e Mon Sep 17 00:00:00 2001 From: Arnold <27396817+arngo@users.noreply.github.com> Date: Sun, 26 Dec 2021 18:39:15 -0500 Subject: implement ai randomizer, gameover screen, and other bug fixes * Cleaned up factory. Fixed most bugs with death(last bug should be with move camera). * check if player entity is nil before shooting or moving camera * implement ai randomizer * separate button click detection to new system * implement gameover screen with button to return to menu * use reverse_each instead of cloning Co-authored-by: realtradam --- app/tick.rb | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'app/tick.rb') diff --git a/app/tick.rb b/app/tick.rb index 20ff3e9..a48fce3 100644 --- a/app/tick.rb +++ b/app/tick.rb @@ -4,29 +4,8 @@ #@pause = false @camera = FF::Cmp::SingletonCamera[0] -@scatter = false -@target = true -@timer = 0 FF::Sys::InitTitleScreen.call def tick args - #puts @timer - @timer += 1 - if @timer >= 100 && !FF::Cmp::SingletonTitle[0].title_screen - @timer -= 100 - #puts "scatter: #{@scatter}" - #puts "target: #{@target}" - @scatter = !@scatter - if @scatter - FF::Sys::Scatter.call - elsif @target - @target = false - FF::Sys::Rejoin.call - else - @target = true - FF::Sys::TargetPlayer.call - end - end - args.outputs.background_color = [0,0,0] args.outputs.solids << [-10_000, -10_000, 20_000, 20_000, 223, 246, 245] -- cgit v1.2.3