Difference between revisions of "Pico 8"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Tutorials)
(Download)
 
(26 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
You can also download it from Moodle using the link below, It can be run from your compiled storage folder in college without the need to purchase it. The license means it can be installed on any computer within an educational establishment for free. You will need to enter your moodle login details:
 
You can also download it from Moodle using the link below, It can be run from your compiled storage folder in college without the need to purchase it. The license means it can be installed on any computer within an educational establishment for free. You will need to enter your moodle login details:
  
[https://vle.thomroth.ac.uk/pluginfile.php/49012/mod_folder/content/0/Pico%208/Pico-8.zip?forcedownload=1 Pico 8 Moodle Download]
+
[https://vle.thomroth.ac.uk/pluginfile.php/49012/mod_folder/content/0/Pico%208/pico-8.zip?forcedownload=1 Pico 8 Moodle Download]
 +
 
 +
=Create a Shortcut=
 +
Now you have downloaded the Pico 8 files, in the college environment you will need to store these in a folder on your compiled storage drive. Select the 'pico-8.exe' and then right click, and select 'Send to', and then 'Desktop (create shortcut)'.
 +
 
 +
Now you have a shortcut, we need to edit it. So right click it and choose properties.
 +
 
 +
Find the 'Target' section, and add the '-root_path ....' as below:
 +
 
 +
I:\pico-8\pico8.exe -root_path i:\
 +
 
 +
In the example above 'i:\' is my compiled storage drive, this will be the location for all of your game saves and loads.
 +
 
 +
=Coding=
 +
It can be really annoying using the code editor in Pico 8, the font is so blocky and can be difficult to read. This also makes it difficult to see very much of your program at any one time. So far i have created the basic code within Pico 8, and then installed 'Sublime Text' and added the Pico 8 plugin. It can then be used to edit the '.P8' file.
 +
 
 +
===Basic Game Structure===
 +
Type this into the Pico 8 editor:
 +
 
 +
<syntaxhighlight lang=lua>
 +
function _init()
 +
 
 +
end
 +
 
 +
function _update()
 +
 
 +
end
 +
 
 +
function _draw()
 +
 
 +
end
 +
</syntaxhighlight>
 +
 
 +
Now switch back to the command prompt and type:
 +
 
 +
SAVE MYFILENAME
 +
 
 +
It should give you a message to say 'MYFILENAME.P8' has been created.
 +
 
 +
==Editing==
 +
You can open the '.p8' file in editors such has notepad++ or sublime. This might be easier than using the Pico8 editor due to the low resolution and blocky fonts. Some editors have a plugin to use for Pico8, they also tend to have built in Lua features.
 +
 
 +
===Adding Pico 8 Plugin===
 +
So in  'Sublime Text' you need to:
 +
#Open the command palette with ctrl+shift+p.
 +
#Run Package Control: Install Package command.
 +
#Search for PICO-8 and install it.
 +
#Restart Sublime Text.
 +
 
 +
Now find where your game is saved, You should be able to double click this and choose 'Sublime Text' to open this file.
 +
 
 +
===Alternatively===
 +
I have created this zip file which inlcudes Sublime Text with the PICO 8 support installed, get it from '''[https://1drv.ms/u/s!AmySufVu3o8fhKEyds6YqeuElROrpQ?e=Q0HnCe HERE]''' and then extract it to your compiled storage.
  
 
=Tutorials=
 
=Tutorials=
Line 13: Line 65:
 
[https://mboffin.itch.io/gamedev-with-pico-8-issue1?download Pico 8 Tutorial]
 
[https://mboffin.itch.io/gamedev-with-pico-8-issue1?download Pico 8 Tutorial]
  
[https://studentthomrothac-my.sharepoint.com/:b:/g/personal/wayne_jones_thomroth_ac_uk/ETl5sVpCB3dOlNhjxq808RwB6VtCXUWN3S8Qi3UUcnKPHQ?e=rO1gXb Alternative for Above tutorial]
+
[https://studentthomrothac-my.sharepoint.com/:b:/g/personal/wayne_jones_thomroth_ac_uk/ETl5sVpCB3dOlNhjxq808RwB6VtCXUWN3S8Qi3UUcnKPHQ?e=rO1gXb Alternative Link for Above Tutorial(ie in college)]
 +
 
 +
This tutorial covers all of the keyboard shortcuts for Pico 8, A basic game structure, and some individual game tutorials. The game loop example on page 21 would be a good place to start using Pico-8.
 +
 
 +
===Tutorial for a Space Shooter:===
 +
 
 +
[https://ztiromoritz.github.io/pico-8-shooter/ Pico 8 - Space Shooter]
 +
 
 +
===MagPi Tutorials:===
 +
[https://studentthomrothac-my.sharepoint.com/:b:/g/personal/wayne_jones_thomroth_ac_uk/ETtsJKlRZM5Eqg4qnDeiG4cBj4XoJzwDD3rLCHJqyLEMLw?e=hDRGnH Learn Lua with Pico 8]
 +
 
 +
[https://studentthomrothac-my.sharepoint.com/:b:/g/personal/wayne_jones_thomroth_ac_uk/EQc6hRAUxEpPnjVnWxCSOscBCzwRy6pQfoD7YqJK1dDMzQ?e=NXbP8q Sprites in Pico 8]
 +
 
 +
[https://studentthomrothac-my.sharepoint.com/:b:/g/personal/wayne_jones_thomroth_ac_uk/EXaFHPQuVK5IspkKVl4k1fUBDu7WuWGwNEa4gaWVSLk4_A?e=hchF1i Music in Pico 8]
 +
 
 +
==Youtube==
 +
===Playlists===
 +
 
 +
[https://www.youtube.com/playlist?list=PLyhkEEoUjSQtUiSOu-N4BIrHBFtLNjkyE Pico 8 - Platformer]
 +
 
 +
[https://www.youtube.com/playlist?list=PLea8cjCua_P3LL7J1Q9b6PJua0A-96uUS Pico 8 - RougeLike]
 +
 
 +
[https://www.youtube.com/playlist?list=PLea8cjCua_P0qjjiG8G5FBgqwpqMU7rBk Pico 8 - Breakout]
 +
 
 +
[https://www.youtube.com/channel/UCAY9qxuOLj82c4TmLoVKnJg/videos Pico 8 - Space Invaders + More Tutorials]
 +
 
 +
===Videos===
 +
Here is an extremely in-depth Youtube tutorial that goes through all the fundamentals of using Pico 8 and will allow you to create a fully fledged brick-breaker style game on the system.
 +
 
 +
[https://www.youtube.com/watch?v=M7azf71z0QE&list=PLYND9uft5u_1YCkmXiMrPU7tiBG3hIKAZ Pico-8 Hero Tutorial]
 +
 
 +
=Other Resources=
  
 
Wireframe Magazine also had a Pico 8 special, the link to the pdf is:
 
Wireframe Magazine also had a Pico 8 special, the link to the pdf is:
Line 19: Line 102:
 
[https://magazines-static.raspberrypi.org/issues/full_pdfs/000/000/074/original/Wireframe12.pdf?1556015922 Wireframe Issue 12]
 
[https://magazines-static.raspberrypi.org/issues/full_pdfs/000/000/074/original/Wireframe12.pdf?1556015922 Wireframe Issue 12]
  
Basic features and functions tutorial:
+
===More resources:===
  
 
[https://thenewstack.io/retro-game-pico-8-basics/ Pico 8 Basics]
 
[https://thenewstack.io/retro-game-pico-8-basics/ Pico 8 Basics]
 
Awesome Pico 8 Resources:
 
  
 
[https://github.com/pico-8/awesome-PICO-8 Awesome Pico 8]
 
[https://github.com/pico-8/awesome-PICO-8 Awesome Pico 8]
 
Eugene Library Tutorials:
 
  
 
[https://eugene.libguides.com/gamedesign/pico8 Eugene Library Tutorials]
 
[https://eugene.libguides.com/gamedesign/pico8 Eugene Library Tutorials]
  
Pico 9 Fandom wiki:
+
[https://pico-8.fandom.com/wiki/Pico-8_Wikia Pico 8 Fandom Wiki]
  
[https://pico-8.fandom.com/wiki/Pico-8_Wikia Pico 8 Fandom Wiki]
+
[https://neko250.github.io/pico8-api/ Pico 8 Cheat Sheets]
  
Pico 8 Cheat Sheets:
+
[https://sectordub.itch.io/pico-8-fanzine-1 Pico 8 Fanzine #1]
  
[https://neko250.github.io/pico8-api/ Pico 8 Cheat Sheets]
+
[https://imgur.com/iGrP5bK Pico 8 Cheat Sheet Image]

Latest revision as of 07:54, 22 April 2021

Download

You can download Pico 8 from the website below, it costs $15 for a personal copy:

Pico-8

You can also download it from Moodle using the link below, It can be run from your compiled storage folder in college without the need to purchase it. The license means it can be installed on any computer within an educational establishment for free. You will need to enter your moodle login details:

Pico 8 Moodle Download

Create a Shortcut

Now you have downloaded the Pico 8 files, in the college environment you will need to store these in a folder on your compiled storage drive. Select the 'pico-8.exe' and then right click, and select 'Send to', and then 'Desktop (create shortcut)'.

Now you have a shortcut, we need to edit it. So right click it and choose properties.

Find the 'Target' section, and add the '-root_path ....' as below:

I:\pico-8\pico8.exe -root_path i:\

In the example above 'i:\' is my compiled storage drive, this will be the location for all of your game saves and loads.

Coding

It can be really annoying using the code editor in Pico 8, the font is so blocky and can be difficult to read. This also makes it difficult to see very much of your program at any one time. So far i have created the basic code within Pico 8, and then installed 'Sublime Text' and added the Pico 8 plugin. It can then be used to edit the '.P8' file.

Basic Game Structure

Type this into the Pico 8 editor:

function _init() 

end

function _update()

end

function _draw() 

end

Now switch back to the command prompt and type:

SAVE MYFILENAME

It should give you a message to say 'MYFILENAME.P8' has been created.

Editing

You can open the '.p8' file in editors such has notepad++ or sublime. This might be easier than using the Pico8 editor due to the low resolution and blocky fonts. Some editors have a plugin to use for Pico8, they also tend to have built in Lua features.

Adding Pico 8 Plugin

So in 'Sublime Text' you need to:

  1. Open the command palette with ctrl+shift+p.
  2. Run Package Control: Install Package command.
  3. Search for PICO-8 and install it.
  4. Restart Sublime Text.

Now find where your game is saved, You should be able to double click this and choose 'Sublime Text' to open this file.

Alternatively

I have created this zip file which inlcudes Sublime Text with the PICO 8 support installed, get it from HERE and then extract it to your compiled storage.

Tutorials

On the Pico 8 website it does list some documentation, one of them is a large tutorial covering 2 different games and most of the concepts. The direct link to the tutorials is:

Pico 8 Tutorial

Alternative Link for Above Tutorial(ie in college)

This tutorial covers all of the keyboard shortcuts for Pico 8, A basic game structure, and some individual game tutorials. The game loop example on page 21 would be a good place to start using Pico-8.

Tutorial for a Space Shooter:

Pico 8 - Space Shooter

MagPi Tutorials:

Learn Lua with Pico 8

Sprites in Pico 8

Music in Pico 8

Youtube

Playlists

Pico 8 - Platformer

Pico 8 - RougeLike

Pico 8 - Breakout

Pico 8 - Space Invaders + More Tutorials

Videos

Here is an extremely in-depth Youtube tutorial that goes through all the fundamentals of using Pico 8 and will allow you to create a fully fledged brick-breaker style game on the system.

Pico-8 Hero Tutorial

Other Resources

Wireframe Magazine also had a Pico 8 special, the link to the pdf is:

Wireframe Issue 12

More resources:

Pico 8 Basics

Awesome Pico 8

Eugene Library Tutorials

Pico 8 Fandom Wiki

Pico 8 Cheat Sheets

Pico 8 Fanzine #1

Pico 8 Cheat Sheet Image