Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How do I make a game playable on the web?

A topic by steveRoll created Oct 14, 2020 Views: 178 Replies: 2
Viewing posts 1 to 2
Submitted(+2)

I made a game with my own assembler, and I want it to be playable on the web. How can I achieve this?

HostSubmitted (1 edit) (+3)

Octo can be used to create a standalone HTML build from an existing .ch8 file; it just takes a few steps:

1) Use your assembler to create a .ch8 binary file.

2) In the "Binary Tools" panel of the toolbox, choose "Open .ch8..." and select the file. This will load the file and display its contents as a hex dump in the field above.

3) Create a minimal Octo program- A "main" label followed by the hex dump, like this:

: main
  0xA2 0x1E 0xC2 0x01 0x32 0x01 0xA2 0x1A 0xD0 0x14 0x70 0x04 0x30 0x40 0x12 0x00
  0x60 0x00 0x71 0x04 0x31 0x20 0x12 0x00 0x12 0x18 0x80 0x40 0x20 0x10 0x20 0x40
  0x80 0x10

4) Customize your palette in the "Appearance" panel, adjust compatibility flags or touch controls  in the "Options" panel (as necessary),  and test your program by running it.

5) When you're satisfied, choose "Save HTML..." from the "Binary Tools" panel, and confirm the remaining settings. Your browser will then save a file to your default download location. You may need to rename it to add a ".html" extension.

Alternatively, if you have nodejs installed locally, you can use Octo's CLI to create a standalone HTML build- see the readme for an explanation.

Does all of that make sense?

Submitted(+1)

Yes, thank you for the comprehensive explanation! I will upload my game soon.