main_script.gd 632 B

12345678910111213141516171819202122232425262728
  1. extends Node2D
  2. # class member variables go here, for example:
  3. # var a = 2
  4. # var b = "textvar"
  5. const TitleScreen = preload("title_screen.gd")
  6. onready var title_screen = TitleScreen.new()
  7. var frame_img = preload("data/images/engine/menu/frame.png")
  8. func _ready():
  9. # Called every time the node is added to the scene.
  10. # Initialization here
  11. OS.set_window_size(Vector2(1280, 800))
  12. OS.set_window_title("SuperTux")
  13. OS.set_message_translation(true)
  14. get_node("frame").set_texture(frame_img)
  15. pass
  16. func _draw():
  17. #draw_texture(frame_tex, Vector2())
  18. #draw_rect(Rect2(0, 0, 100, 100), Color(1, 0, 0))
  19. # title_screen.draw()
  20. pass