core_basic_window.bmx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. SuperStrict
  2. Framework Ray.Lib
  3. Const screenWidth:Int = 800
  4. Const screenHeight:Int = 450
  5. InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window")
  6. SetTargetFPS(60) ' Set our game to run at 60 frames-per-second
  7. '--------------------------------------------------------------------------------------
  8. ' Main game loop
  9. While Not WindowShouldClose() ' Detect window close button or ESC key
  10. ' Update
  11. '----------------------------------------------------------------------------------
  12. ' TODO: Update your variables here
  13. '----------------------------------------------------------------------------------
  14. ' Draw
  15. '----------------------------------------------------------------------------------
  16. BeginDrawing()
  17. ClearBackground(RAYWHITE)
  18. DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY)
  19. EndDrawing()
  20. '----------------------------------------------------------------------------------
  21. Wend
  22. ' De-Initialization
  23. '--------------------------------------------------------------------------------------
  24. CloseWindow() ' Close window and OpenGL context
  25. '--------------------------------------------------------------------------------------