<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://pico8wiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=37.0.94.188</id>
	<title>Pico-8 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://pico8wiki.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=37.0.94.188"/>
	<link rel="alternate" type="text/html" href="http://pico8wiki.com/index.php?title=Special:Contributions/37.0.94.188"/>
	<updated>2026-11-28T14:15:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://pico8wiki.com/index.php?title=Split&amp;diff=11976</id>
		<title>Split</title>
		<link rel="alternate" type="text/html" href="http://pico8wiki.com/index.php?title=Split&amp;diff=11976"/>
		<updated>2020-11-15T14:01:48Z</updated>

		<summary type="html">&lt;p&gt;37.0.94.188: Added split() page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ApiReference&lt;br /&gt;
|name=split&lt;br /&gt;
|shortdesc=Split a string into a table of elements delimited by the given separator (defaults to &amp;quot;,&amp;quot;).&lt;br /&gt;
|str||The string.&lt;br /&gt;
|separator|optional|The separator (defaults to &amp;quot;,&amp;quot;).&lt;br /&gt;
|convert_numbers|optional|When convert_numbers is true, numerical tokens are stored as numbers (defaults to true).&lt;br /&gt;
}}The &amp;lt;code&amp;gt;split()&amp;lt;/code&amp;gt; function splits a string into a table of elements delimited by the given separator (defaults to &amp;quot;,&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Empty elements are stored as empty strings.&lt;br /&gt;
&lt;br /&gt;
When the separator is &amp;quot;&amp;quot;, every character is split into a separate element.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
split(&amp;quot;1,2,3&amp;quot;) -- returns {1,2,3}&lt;br /&gt;
split(&amp;quot;one:two:3&amp;quot;,&amp;quot;:&amp;quot;,false) -- returns {&amp;quot;one&amp;quot;,&amp;quot;two&amp;quot;,&amp;quot;3&amp;quot;}&lt;br /&gt;
split(&amp;quot;1,,2,&amp;quot;) -- returns {1,&amp;quot;&amp;quot;,2,&amp;quot;&amp;quot;}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Lua]]&lt;br /&gt;
* [[Tables]]&lt;br /&gt;
[[Category:Reference]]&lt;br /&gt;
[[Category:API]]&lt;/div&gt;</summary>
		<author><name>37.0.94.188</name></author>
	</entry>
	<entry>
		<id>http://pico8wiki.com/index.php?title=Export&amp;diff=9427</id>
		<title>Export</title>
		<link rel="alternate" type="text/html" href="http://pico8wiki.com/index.php?title=Export&amp;diff=9427"/>
		<updated>2020-06-15T11:20:29Z</updated>

		<summary type="html">&lt;p&gt;37.0.94.188: Added `.bin` to CommandReference&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{CommandReference&lt;br /&gt;
|name=export&lt;br /&gt;
|shortdesc=Exports the cartridge in various forms.&lt;br /&gt;
|filename||The filename to export, ending in &amp;lt;code&amp;gt;.html&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.png&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;.bin&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;.wav&amp;lt;/code&amp;gt;.&lt;br /&gt;
}}The &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; command serves several functions. It can be used to produce a standalone version of the cartridge that can be added to a website and played in a browser. It can also be used to generate a PNG image of the sprite sheet, or a WAV audio file of the sound effects or music.&lt;br /&gt;
&lt;br /&gt;
Exported files are created in the current working directory of the [[CartridgeStorage|cartridge storage area]]. You can use the [[Folder|folder]] command to access this area with your operating system&#039;s file browser.&lt;br /&gt;
&lt;br /&gt;
== Exporting a web player ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame.html&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To export the cartridge so it can be embedded in a website, use a filename that ends in &amp;lt;code&amp;gt;.html&amp;lt;/code&amp;gt;. PICO-8 generates two files: an HTML file with this name, and a JavaScript file with a similar name and a &amp;lt;code&amp;gt;.js&amp;lt;/code&amp;gt; extension.&lt;br /&gt;
&lt;br /&gt;
The HTML file contains the code that adds the cart to the page along with control features. You can include this code in your website and modify it as needed.&lt;br /&gt;
&lt;br /&gt;
The JS file contains the cartridge data and a standalone PICO-8 player that runs in a web browser. This file is referenced by the HTML file, and should not be changed.&lt;br /&gt;
&lt;br /&gt;
== Exporting a desktop app ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame.bin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To export the cartridge so it can be downloaded and played on Windows, Linux (64-bit), and macOS computers, use the &amp;lt;code&amp;gt;.bin&amp;lt;/code&amp;gt; filename extension.&lt;br /&gt;
&lt;br /&gt;
This creates a folder named &amp;lt;code&amp;gt;mygame.bin&amp;lt;/code&amp;gt; containing a &amp;lt;code&amp;gt;windows/&amp;lt;/code&amp;gt; subdirectory with the Windows files, a &amp;lt;code&amp;gt;linux/&amp;lt;/code&amp;gt; subdirectory with the Linux files, and the &amp;lt;code&amp;gt;mygame.app&amp;lt;/code&amp;gt; macOS bundle.&lt;br /&gt;
&lt;br /&gt;
These are standalone versions of the game and do not require PICO-8 to play.&lt;br /&gt;
&lt;br /&gt;
== Exporting the sprite sheet ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame_sprites.png&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To export the sprite sheet as a PNG file, use a filename that ends in &amp;lt;code&amp;gt;.png&amp;lt;/code&amp;gt;. The image is 128 pixels wide and 128 pixels high, and uses the PICO-8 palette.&lt;br /&gt;
&lt;br /&gt;
This file is suitable for importing into another cartridge with the [[Import|import]] command.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note:&#039;&#039; If the cartridge uses the bottom half of the sprite sheet for map data, this data will be included in the exported image. See [[Graphics]].&lt;br /&gt;
&lt;br /&gt;
== Exporting sound effects ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame_sfx.wav&lt;br /&gt;
&lt;br /&gt;
&amp;gt; export mygame_sfx_%d.wav&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To export the sound effects as WAV audio files, use a filename that ends in &amp;lt;code&amp;gt;.wav&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The audio file contains each of the sound effects, one after another. To export each sound effect as a separate audio file, include &amp;lt;code&amp;gt;%d&amp;lt;/code&amp;gt; somewhere in the filename, e.g. &amp;lt;code&amp;gt;mygame_sfx_%d.wav&amp;lt;/code&amp;gt;. This will be replaced by the number of the sound effect (&amp;lt;code&amp;gt;mygame_sfx_01.wav&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
There is no way to import sound effects.&lt;br /&gt;
&lt;br /&gt;
== Exporting music ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame_music.wav&lt;br /&gt;
&lt;br /&gt;
&amp;gt; export mygame_music_%d.wav&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
To export the music tracks as WAV audio files, make sure the music tab is open in the PICO-8 editor, press ESC, and then type the export command using a filename that ends in &amp;lt;code&amp;gt;.wav&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;io&amp;quot;&amp;gt;&lt;br /&gt;
&amp;gt; export mygame.html&lt;br /&gt;
&lt;br /&gt;
&amp;gt; export mygame_sprites.png&lt;br /&gt;
&lt;br /&gt;
&amp;gt; export mygame_sfx.wav&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Graphics]]&lt;br /&gt;
* [[Sound]]&lt;br /&gt;
* [[Import|&amp;lt;code&amp;gt;import&amp;lt;/code&amp;gt;]]&lt;br /&gt;
* [[Save|&amp;lt;code&amp;gt;save&amp;lt;/code&amp;gt;]]&lt;br /&gt;
[[Category:Reference]]&lt;br /&gt;
[[Category:Command]]&lt;/div&gt;</summary>
		<author><name>37.0.94.188</name></author>
	</entry>
	<entry>
		<id>http://pico8wiki.com/index.php?title=Talk:Poke/@comment-75.156.35.44-20200606060149/@comment-37.0.94.188-20200611185544&amp;diff=11887</id>
		<title>Talk:Poke/@comment-75.156.35.44-20200606060149/@comment-37.0.94.188-20200611185544</title>
		<link rel="alternate" type="text/html" href="http://pico8wiki.com/index.php?title=Talk:Poke/@comment-75.156.35.44-20200606060149/@comment-37.0.94.188-20200611185544&amp;diff=11887"/>
		<updated>2020-06-11T18:55:44Z</updated>

		<summary type="html">&lt;p&gt;37.0.94.188: Created page with &amp;quot;It allows you to directly write to memory. Can be useful if you&amp;#039;re working with compressed images or music, as you write the data directly to memory&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It allows you to directly write to memory. Can be useful if you&#039;re working with compressed images or music, as you write the data directly to memory&lt;/div&gt;</summary>
		<author><name>37.0.94.188</name></author>
	</entry>
</feed>