diff options
| author | Frederico Linhares <fred@linhares.blue> | 2022-10-10 16:13:12 -0300 | 
|---|---|---|
| committer | Frederico Linhares <fred@linhares.blue> | 2022-10-10 16:15:09 -0300 | 
| commit | 9d6d723846d737b0bcc6b51afefcf313f723dcd0 (patch) | |
| tree | d4b6ea5556fc9c56e28ea01ffe8375bee0a464bb /test/src | |
| parent | 63d7d305da643ec20fed3cdd60c4daec29272c41 (diff) | |
feat Move configuration from YAML file to game
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/main.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/test/src/main.rb b/test/src/main.rb index aaffbfb..be0ae0b 100644 --- a/test/src/main.rb +++ b/test/src/main.rb @@ -16,6 +16,12 @@ CAMERA_ROTATION_SPEED = Math::PI/45;  BOX_ROTATION_SPEED = Math::PI/180;  TRANSLATION_SPEED = 0.5; +def config() +  CandyGear.game_name = "Candy Gear Test"; +  CandyGear::Graphic.display_width = 1280; +  CandyGear::Graphic.display_height = 720; +end +  def init()    texture = CandyGear::Texture.from_image("textures/color_texture.png");    mesh = CandyGear::Mesh.new("meshes/cube.cgmesh"); | 
