Coder Social home page Coder Social logo

wh0am1-dev / pico8-api Goto Github PK

View Code? Open in Web Editor NEW
144.0 144.0 41.0 363 KB

Unofficial PICO-8 API with a lovely design ! ::

Home Page: https://carlos-aguilar.com/pico8-api

License: Other

CSS 14.86% HTML 85.14%
api cheatsheet docs documentation game-development gamedev pico-8

pico8-api's Introduction



website    email    linkedin    x

self-taught polymath
f: coffee → code




vscode js react html css sass
node graphql sql git github terminal

github stats




spotify

pico8-api's People

Contributors

anthonydigirolamo avatar malte-j avatar morgan3d avatar oli414 avatar seleb avatar wh0am1-dev 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar

pico8-api's Issues

Info on coroutines need update

In the latest manual (https://www.lexaloffle.com/pico8_manual.txt):
coresume returns a bool value, and can take additional parameters as the coroutine's parameters.
costatus now returns one of three string value: "running","suspended","dead"

Copied from official manual for convenience

:: Coroutines

	Coroutines offer a way to run different parts of a program in a somewhat concurrent 
	way, similar to threads. A function can be called as a coroutine, suspended with 
	yield() any number of times, and then resumed again at the same point.
	
		function hey()
			print("doing something")
			yield()
			print("doing the next thing")
			yield()
			print("finished")
		end
		
		c = cocreate(hey)
		for i=1,3 do coresume(c) end
	
	
	cocreate f
	
		Create a coroutine for function f.
		

	coresume c [p0 p1 ..]
	
		Run or continue the coroutine c. Parameters p0, p1.. are passed to the
		coroutine's function.
		
		Returns true if the coroutine completes without any errors
		Returns false, error_message if there is an error.
		
		** Runtime errors that occur inside coroutines do not cause the program
		to stop running. It is a good idea to wrap coresume() inside an assert().
		If the assert fails, it will print the error message generated by 
		coresume.
		
		assert(coresume(c))


	costatus c
	
		Return the status of coroutine c as a string:
			"running"
			"suspended"
			"dead"
	
	yield
		
		Suspend execution and return to the caller.

SUGGESTION: Also include musical notes on piano image?

I often find that I know the notes that I want to enter into PICO-8 (e.g. E, C#, A, etc.), but have NO IDEA which keys map to which note.
So, was thinking it might be helpful if your (already v.useful) piano image also included the musical notes (for those of us that aren't piano players!)
I realise this may be a bit tricky as there are different octaves, but either way - wondered if you though this would be as useful as I would?
Thanks! 😃

The number of player should be noted

In the Input section, the number of player is written like PLAYER 1 and PLAYER 2, which is referenced as 0-based index in code.

There should be a note or warning about this.

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.