From 6ca2d379f7a09ea26683c3535beaf3ded482ecf8 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Wed, 19 Feb 2025 03:48:38 +0000 Subject: [PATCH] bring in cozette-sml so we can draw text --- .gitmodules | 3 +++ fcore/constants.sml | 3 +++ oms.mlb | 2 ++ vendored/cozette-sml | 1 + 4 files changed, 9 insertions(+) create mode 160000 vendored/cozette-sml diff --git a/.gitmodules b/.gitmodules index 4860291..0beb6ff 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "vendored/brolib-sml"] path = vendored/brolib-sml url = https://github.com/hummy123/brolib-sml +[submodule "vendored/cozette-sml"] + path = vendored/cozette-sml + url = https://github.com/hummy123/cozette-sml diff --git a/fcore/constants.sml b/fcore/constants.sml index 2ec06d4..9202f5c 100644 --- a/fcore/constants.sml +++ b/fcore/constants.sml @@ -1,5 +1,8 @@ structure Constants = struct + val fontSpace = 13 + val fontSize: Real32.real = 30.0 + val worldWidth = 1920 val worldHeight = 1080 val worldWidthReal: Real32.real = 1920.0 diff --git a/oms.mlb b/oms.mlb index 69e7faa..a291493 100644 --- a/oms.mlb +++ b/oms.mlb @@ -1,6 +1,8 @@ $(SML_LIB)/basis/basis.mlb (* fcore *) +vendored/cozette-sml/fonts/cozette-ascii.mlb + fcore/constants.sml fcore/level/collision.sml diff --git a/vendored/cozette-sml b/vendored/cozette-sml new file mode 160000 index 0000000..25eee9f --- /dev/null +++ b/vendored/cozette-sml @@ -0,0 +1 @@ +Subproject commit 25eee9f3e6678d5e4698e686dbec60c300ce0a2c