Coder Social home page Coder Social logo

pico8-vscode's Introduction

pico8-vscode

A new vscode extension for editing and running pico8 files.

Example of running a pico8 workspace

I recommend having a separate pico8 workspace for doing dev in. I keep mine at ~/Projects/pico8 and it looks a bit like this

pico8
├── backup
├── bbs
├── carts
│   └── hello.p8
├── cdata
├── config.txt
├── cstore
├── log.txt
└── sdl_controllers.txt

This then allows me to open the workspace from the command line like

joho6[19:22:03]:~/Projects/pico8
👻  code .

The benefit of this is that any edits and saves you make within pico8 (for example doing graphics or sound) will be written back into the workspace where you would expect it, rather than into the default home which is likely to be far, far away from the warm embrace of source control

Features

  • Syntax highlighting for *.p8 files
  • If used in workspace mode will set the pico8 home to your workspace
  • CMD+R to open automatically run the .p8 you're editing in pico8
  • A humane licence (no twitter egg anti-sjw MIT variant here)

Requirements

You need to have pico8.

Extension Settings

This extension contributes the following settings:

  • pico8.executablePath: path to where your pico8 actually is (default is /Applications/PICO-8.app/Contents/MacOS/pico8)

Known Issues

Best I can say is that it "works on my machine"

Release Notes

0.0.1

Initial release of pico8-vscode

License

All code is by John Barton and MIT licensed with the exception of the syntaxes folder which is covered by the original author's license

pico8-vscode's People

Contributors

joho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pico8-vscode's Issues

Suggestion: Add syntax highlighting to spritesheet data

Add syntax highlighting to spritesheet data, the part after __gfx__. 0 would be colored black, 1 dark blue, etc. It would make my life a lot easier when collaborating with other people.
Please correct me if this is complicated or impossible.

Problem running pico8 from editor

When trying to Super-R while editing a .p8 file nothing happens in the UI.
Harvested the following via VSCode's Toggle Developer Tools:
I can run pico8 by copying the path to pico8 from the extension's setting and pasting it into VSCode terminal window.

"Error: spawn ~/Programs/pico8/pico8 ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9)"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.