diff options
| author | Dan Healy <[email protected]> | 2020-10-09 19:27:13 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-09 19:27:13 -0700 |
| commit | 131acd61d88e559dac3067384a116ee8dec50982 (patch) | |
| tree | 55cfbb4a9842bac5855b588a6c669c9a583b23ec /samples/22_trace_debugging_classes | |
| parent | 732e813bbc03ab14b89e3f4e2d6196fcd696879e (diff) | |
| parent | cdf663a63bf59af5eddfd6e9f4ba065516082c13 (diff) | |
| download | dragonruby-game-toolkit-contrib-131acd61d88e559dac3067384a116ee8dec50982.tar.gz dragonruby-game-toolkit-contrib-131acd61d88e559dac3067384a116ee8dec50982.zip | |
Merge branch 'master' into performance-tracing
Diffstat (limited to 'samples/22_trace_debugging_classes')
| -rw-r--r-- | samples/22_trace_debugging_classes/app/main.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/samples/22_trace_debugging_classes/app/main.rb b/samples/22_trace_debugging_classes/app/main.rb deleted file mode 100644 index a6804ae..0000000 --- a/samples/22_trace_debugging_classes/app/main.rb +++ /dev/null @@ -1,22 +0,0 @@ -class Foobar - def initialize - trace! # Trace is added to the constructor. - end - - def clicky args - return unless args.inputs.mouse.click - try_rand rand - end - - def try_rand num - return if num < 0.9 - raise "Exception finally occurred. Take a look at logs/trace.txt #{num}." - end -end - -def tick args - args.labels << [640, 360, "Start clicking. Eventually an exception will be thrown. Then look at logs/trace.txt.", 0, 1] - args.state.foobar = Foobar.new if args.tick_count - return unless args.state.foobar - args.state.foobar.clicky args -end |
