Skip to content

Instantly share code, notes, and snippets.

@git2358
git2358 / Rotations.lua
Created August 27, 2020 13:51 — forked from KinoAR/Rotations.lua
The Pico-8 code showing off rotations math.
--rotations by eis - kino
--globals
--The sprites, the position (x and y) of both star1 and star2
star1 ={sprite=2, x = 58, y = 58}
star2 ={sprite=3, x = 0, y = 0}
degrees = 0
function _update()
--Here we rotate star2 around star1 by giving rotate star1's position(x, y).
@git2358
git2358 / git-version-control.markdown
Last active August 27, 2020 01:23 — forked from albatrocity/git-version-control.markdown
Some basic Git instructions for Github for Mac and the command line

Using Git version control for code projects

Creating a new code repo from a local working copy

  1. From the repositories view in the app, drag the project folder to the bottom of the left sidebar.
  2. Hit "Yes" when it asks if you want to create a local git repository
  3. Go to "Changes" view (⌘2)
  4. Select the files that you want to commit their current state to the repository. You can view the changes of the file by clicking on the double up arrow on the file name bar.
[
{
"backcolor": "#C2C3C7",
"name": "PICO-8 devkit keyboard",
"author": "tobiasvl",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-G1xx"
},
[
@git2358
git2358 / put-a-flip-in-it.p8
Created August 14, 2020 13:33 — forked from kometbomb/put-a-flip-in-it.p8
#PutAFlipInIt! #pico8
-- 1. Paste this at the very bottom of your PICO-8
-- cart
-- 2. Hit return and select the menu item to save
-- a slow render gif (it's all automatic!)
-- 3. Tweet the gif with #PutAFlipInIt
--
-- Notes:
--
-- This relies on the max gif length being long
-- enough. This can be set with the -gif_len
@git2358
git2358 / rayzzz-0.2.p8
Created August 14, 2020 08:24 — forked from Powersaurus/rayzzz-0.2.p8
Pico-8 raycaster version 0.2
pico-8 cartridge // http://www.pico-8.com
version 8
__lua__
-- raycaster demo
-- by @powersaurus
-- based heavily on http://lodev.org/cgtutor/raycasting.html
-- and http://lodev.org/cgtutor/raycasting2.html
-- and inspired by the work of @matthughson
-- thanks for advice from @kometbomb and @doyousketch2 and @krajzeg
--
@git2358
git2358 / SMBDIS.ASM
Created August 11, 2020 13:06 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@git2358
git2358 / GIF-Screencast-OSX.md
Created August 7, 2020 05:03 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@git2358
git2358 / outline_sprite.p8.lua
Created July 30, 2020 04:58 — forked from Liquidream/outline_sprite.p8.lua
Useful sprite draw function for PICO-8 (and maybe Lua in general)
--
-- draws a sprite to the screen with an outline of the specified colour
--
function outline_sprite(n,col_outline,x,y,w,h,flip_x,flip_y)
-- reset palette to black
for c=1,15 do
pal(c,col_outline)
end
-- draw outline
for xx=-1,1 do
@git2358
git2358 / crt.html
Created July 23, 2020 00:35 — forked from KHN190/crt.html
PICO-8 webgl CRT effect.
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PICO-8 Cartridge</title>
<meta name="description" content="">
<STYLE TYPE="text/css">
<!--
@git2358
git2358 / pico8-crt.html
Created July 23, 2020 00:35 — forked from morningtoast/pico8-crt.html
CRT export template for PICO-8 games
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PICO-8 Cartridge</title>
<meta name="description" content="">
<STYLE TYPE="text/css">
<!--