summaryrefslogtreecommitdiff
path: root/test/src/mode/title.rb
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2025-06-21 16:51:22 -0300
committerFrederico Linhares <fred@linhares.blue>2025-06-21 16:51:22 -0300
commit8bedf8a366cb6c1179bc89678c863517b9356d48 (patch)
tree4a285592f804802d59f2af090113f607344ffdce /test/src/mode/title.rb
parentb3428170ac0a1837d3568f7b49312cbb01179f5d (diff)
refa Remove View2DHEADmaster
View2D is almost useless and add too much complexity for the engine, so I am removing it.
Diffstat (limited to 'test/src/mode/title.rb')
-rw-r--r--test/src/mode/title.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/src/mode/title.rb b/test/src/mode/title.rb
index 6347b70..2e5a35b 100644
--- a/test/src/mode/title.rb
+++ b/test/src/mode/title.rb
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Frederico de Oliveira Linhares
+# Copyright 2022-2025 Frederico de Oliveira Linhares
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -15,12 +15,11 @@
module Mode
class Title
def initialize()
- @view = CandyGear::View2D.new(
+ @view = CandyGear::View.new(
CandyGear::Vector4D.new(0, 0, 1280, 720), 640, 360);
- CandyGear.views = [@view];
+ CandyGear.change_views([@view], 640, 360);
@menu = CandyGear::Menu.new(
- @view,
$global_data[:menu_view], 10, 10,
[
{text: "Demo", action: -> {change_mode(:demo);}},