dum dum - dofi user manual(s)


Welcome to Dofi! Dofi is an open source fantasy console written in the C programming language, bundled w/ a few quirky features.


small list the creator (poyo) made for you :d!
  • 128x128px-sized smol screen!
  • it runs lua!
  • it has a cute(aww) lil editor that supports the following:
    • commenting
    • colours on keywords
    • bi-directional scrolling
    • a max of 65536 characters and newlines :P
  • it also has a sprite editor!
    • 16 colours to choose from
    • no transparency, at all!
    • a decently sized spritesheet

getting started >:d

so you wanna get started, huh?
...

that's great!!!

good news are, it's quite simple! when you first boot dofi, you are shown a boilerplate code with the three main functions:

init()ran once only when a game has been booted. use it for initializing variables!
update()ran 60 times per second, it is mainly used for performing the logic behind your games!
draw()as the name suggests, everything output-related should go here.
try using gfx.pset(x, y, r, g, b)! below there's (another) list showcasing the system functions:
  • gfx.pset(x, y, r, g, b)

    Sets a determinate pixel on the screen. DO NOT GO OUTTA BOUNDS!!!!

  • gfx.sprite(id, x, y)Draws a sprite onto the screen! Make sure it actually exists. x and y are used to determine its position.

executing code

To execute your very own (and possibly working) code, just click the play button! It'll let you know if there are any syntax errors :3