chore: split monolithic header to proper program files, add vec2 ruby class to proxy element position etc., other cleanup

This commit is contained in:
2026-06-01 22:13:50 +01:00
parent 872d878ddc
commit dcb8b46245
21 changed files with 3153 additions and 2037 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
App.run 720, 480, "Stress Test", fps: 120
App.run 720, 480, "Stress Test", fps: 60
scene = Scene.new
@@ -30,7 +30,7 @@ App.localize(:en, :btn_text, "Stress Test %{count}")
App.localize(:en, :text, "Random Text")
1.times do |i|
1000.times do |i|
elements << ElementText.new(
:text,
font,
@@ -43,7 +43,7 @@ App.localize(:en, :text, "Random Text")
)
end
500.times do |i|
1000.times do |i|
elements << ElementImage.new(
animations.sample,
position: { x: rand(0..700), y: rand(0..450) },
@@ -54,7 +54,7 @@ end
)
end
500.times do |i|
1000.times do |i|
elements << ElementRect.new(
20 + rand(100),
20 + rand(100),