A downloadable asset pack

Download NowName your own price

Donations are welcome & appreciated to keep improving this package!

Pico8Com is a Pico8-JS-Websocket communication project to serve as foundation for Pico8 web multiplayer projects. It provides the required Lua and JS Code for Pico8-JS communication as part of a basic test project with a simple broadcast websocket Node.JS server.

*

In order to test the demo project:

- Install Node.js (http://nodejs.org/).

- Run "npm install" inside "server" folder to install the server dependencies.

- Run "node server.js" inside "server" folder to run the server.

- Open 2 instances of pico8com.html.

Pico8 side integration:

- Call "update_msg" in your _update function.

- Process input messages in "process_input" function, message data is in "imsg" variable.

- Call "send_message(msg)" in order to send messages to the JS side.

JS side integration:

- Add <script async type="text/javascript" src="pico8comjs.js"></script> to your html container.

Download

Download NowName your own price

Click download now to get access to the following files:

pico8com.zip 343 kB

Comments

Log in with itch.io to leave a comment.

(1 edit)

I tried modifying the cart to include two players but when I open the html page it runs the old version of the cart. is there something I am missing?

i like this

I'm not very familiar with license types. Which one do you guys suggest? Cheers.

I think that an open source license would be great, like GPL or MIT

hi

It doesn't look like you set up a license. Any plan to do that? Having this licensed open source would be nice.