Log In  

Syrian-American gamedev & Arabic localizer.

:: Unfold ::

Cart #ar_spr-0 | 2019-08-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

ArSpr is a set of 2 utility functions that let’s you write Arabic text in Pico8. You input a Latin text and it will transliterate it to Arabic. I made it because I want to make localized Pico8 games, and to practice writing my own implementation for Right-to-Left text and Arabic Shaping.

ArSpr’s specifications:

2 sprites
510 out of 8192 tokens
~30% of compressed space
No dropped frames when filling the screen

Usage is easy, but slightly different from the regular Print() function in Pico8; you have to initialize a variable to contain the text data then draw it. Here’s an example:

function _init()

function _draw()
  draw_ar(text1, [x], [y])

You can read how the font is encoded in this blogpost.

This project was inspired by TinyText which uses a similar method, but my cart is written from scratch and has an Arabic Shaper that's not in TinyText.

P#66908 2019-08-24 09:33 ( Edited 2019-08-24 11:00)

Follow Lexaloffle:          
Generated 2023-01-28 23:07:59 | 0.070s | Q:9