PICO-8 Wiki
Edit Page

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 23: Line 23:
 
== Examples ==
 
== Examples ==
 
Consider a utility cartridge that generates map data and saves it to a different cartridge:
 
Consider a utility cartridge that generates map data and saves it to a different cartridge:
  +
<pre>
βˆ’
<syntaxhighlight lang="lua">
 
 
-- generate some map data
 
-- generate some map data
 
generate_map()
 
generate_map()
Line 29: Line 29:
 
-- save the map data to a separate cartridge
 
-- save the map data to a separate cartridge
 
cstore(0x2000, 0x2000, 0x1000, 'mygame.p8')
 
cstore(0x2000, 0x2000, 0x1000, 'mygame.p8')
  +
</pre>
βˆ’
</syntaxhighlight>
 
   
 
== See also ==
 
== See also ==

Please note that all contributions to the PICO-8 Wiki are considered to be released under the CC-BY-SA

Cancel Editing help (opens in new window)

Template used on this page: