diff --git a/examples/curlywas/control.cwa b/examples/curlywas/control.cwa index 623aade..e9202b5 100644 --- a/examples/curlywas/control.cwa +++ b/examples/curlywas/control.cwa @@ -13,7 +13,11 @@ data 0x20000 { i8(14, 10, 10, 10) // scroll down 2 lines i8(31, 40, 3, 14, 10, 15, 0xf0) "Other colors" i8(24, 0xb0) "inverted" + i8(13, 10, 8, 8) "->" + i8(10, 10, 9, 9, 1) "|<-" i8(5, 31, 7, 28+17, 15, 0xe3) "Graphics text!" i8(5, 31, 6, 28+16, 15, 0xe5) "Graphics text!" + i8(4, 24, 14, 10, 0x90, 0x80, 0xf1) + i8(31, 37, 29, 0xf1, 0x80, 0x90) i8(0) } diff --git a/platform/bin/platform.uw8 b/platform/bin/platform.uw8 index 7c8c182..5ae23fa 100644 Binary files a/platform/bin/platform.uw8 and b/platform/bin/platform.uw8 differ diff --git a/platform/src/platform.cwa b/platform/src/platform.cwa index b704a1b..67ef63e 100644 --- a/platform/src/platform.cwa +++ b/platform/src/platform.cwa @@ -326,7 +326,7 @@ fn printSingleChar(char: i32) { if char == 4 | char == 5 { graphicsText = char == 5; - textCursorX = 0; + textCursorX = 0; textCursorY = 0; return; } @@ -341,6 +341,9 @@ fn printSingleChar(char: i32) { } if char == 9 { + if !graphicsText & textCursorX >= 320 { + printChar(0xd0a); + } textCursorX = textCursorX + 8; return; } @@ -406,6 +409,10 @@ fn printSingleChar(char: i32) { return; } + if char < 31 { + return; + } + drawChar(char); } diff --git a/site/content/_index.md b/site/content/_index.md index ccdd576..5cf5fdc 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -120,7 +120,7 @@ possible but no examples are provided, yet. ## Examples * [Fireworks](v0.1pre5#AgwvgP+M59snqjl4CMKw5sqm1Zw9yJCbSviMjeLUdHus2a3yl/a99+uiBeqZgP/2jqSjrLjRk73COMM6OSLpsxK8ugT1kuk/q4hQUqqPpGozHoa0laulzGGcahzdfdJsYaK1sIdeIYS9M5PnJx/Wk9H+PvWEPy2Zvv7I6IW7Fg==) (127 bytes): Some fireworks to welcome 2022. -* [Skip Ahead](v0.1pre4#AiP94km33q5hBFbBcKl2W1ZMY67wHByUz15/qRHIr71Dvq8bTVux/DXZzSTKU5MufRXxnGEn6mOul4dil/5WLT1Y+Y/4TGd1E3U4rQaxlpcKObxc5YLdr4xo6jyBND96a569LoECv6Q4EIqxJi+3QPE21r/++js41XsBLr44X/O2XpP3kHQva3B8o6duD5WkLCf7PhsxjTBeND1ADIaJe05JCrBim18RPY9VYFmltqQ9gVzbxE/ZpojR/GJ4aCbx0hRn73RPhpA7Cd4jk0AVSOeRx+7kuHrLzpaeqeYWK5pYd/4Rv+8=) (230 bytes): A port of my [TIC-80 256byte game](http://tic80.com/play?cart=1735) from LoveByte'21 +* [Skip Ahead](v0.1pre5#AgyfpZ80wkW28kiUZ9VIK4v+RPnVxqjK1dz2BcDoNyQPsS2g4OgEzkTe6jyoAfFOmqKrS8SM2aRljBal9mjNn8i4fP9eBK+RehQKxxGtJa9FqftvqEnh3ez1YaYxqj7jgTdzJ/WAYVmKMovBT1myrX3FamqKSOgMsNedLhVTLAhQup3sNcYEjGNo8b0HZ5+AgMgCwYRGCe//XQOMAaAAzqDILgmpEZ/43RKHcQpHEQwbURfNQJpadJe2sz3q5FlQnTGXQ9oSMokidhlC+aR/IpNHieuBGLhFZ2GfnwVQ0geBbQpTPA==) (229 bytes): A port of my [TIC-80 256byte game](http://tic80.com/play?cart=1735) from LoveByte'21 * [OhNoAnotherTunnel](v0.1pre4#Ag95rdCB5Ww5NofyQaKF4P1mrNRso4azgiem4hK99Gh8OMzSpFq3NsNDo7O7pqln10D11l9uXr/ritw7OEzKwbEfCdvaRnS2Z0Kz0iDEZt/gIqOdvFmxsL1MjPQ4XInPbUJpQUonhQq29oP2omFabnQxn0bzoK7mZjcwc5GetHG+hGajkJcRr8oOnjfCol8RD+ha33GYtPnut+GLe4ktzf5UxZwGs6oT9qqC61lRDakN) (177 bytes): A port of my [entry](http://tic80.com/play?cart=1871) in the Outline'21 bytebattle final * [Technotunnel](v0.1pre4#AqL8HeK1M9dn2nWNIF5vaq/Vh64pMt5nJIFoFKpBMPUsGtDtpqjo1JbT9LzPhAxCqJ7Yh4TA6oTGd4xhLowf+cWZMY73+7AZmfXJJsBi4cej/hH+4wlAgxFIrnOYnr/18IpnZbsHf0eGm1BhahX74+cVR0TRmNQmYC7GhCNS3mv/3MJn74lCj7t28aBJPjEZhP9fGXdG2u5Egh/Tjdg=) (158 bytes): A port of my [entry](https://tic80.com/play?cart=1873) in the Outline'21 bytebattle quater final * [Font & Palette](v0.1pre4#AgKaeeOuwg5gCKvFIeiitEwMpUI2rymEcu+DDB1vMu9uBoufvUxIr4Y5p4Jj2ukoNO4PE7QS5cN1ZyDMCRfSzYIGZxKlN2J6NKEWK7KVPk9wVUgn1Ip+hsMinWgEO8ETKfPuHoIa4kjI+ULFOMad7vd3rt/lh1Vy9w+R2MXG/7T61d3c7C6KY+eQNS0eW3ys4iU8R6SycuWZuuZ2Sg3Qxp826s+Kt+2qBojpzNOSoyFqyrVyYMTKEkSl0BZOj59Cs1hPm5bq0F1MmVhGAzMhW9V4YeAe): Just a simple viewer for the default font and palette. diff --git a/site/static/v0.1pre5/index.html b/site/static/v0.1pre5/index.html index 658f372..2aa2b1a 100644 --- a/site/static/v0.1pre5/index.html +++ b/site/static/v0.1pre5/index.html @@ -1 +1 @@ -