minimal.odin 408 B

1234567891011121314151617181920
  1. package karl2d_minimal_example
  2. import k2 "../.."
  3. import "core:log"
  4. main :: proc() {
  5. context.logger = log.create_console_logger()
  6. k2.init(1080, 1080, "Karl2D Minimal Program")
  7. k2.set_window_position(300, 100)
  8. for !k2.shutdown_wanted() {
  9. k2.process_events()
  10. k2.clear(k2.BLUE)
  11. k2.draw_text("Hellöpe!", {10, 10}, 64, k2.WHITE)
  12. k2.present()
  13. free_all(context.temp_allocator)
  14. }
  15. k2.shutdown()
  16. }