Skip to content

Instantly share code, notes, and snippets.

😎

Jason Tu nucleartide

😎
Block or report user

Report or block nucleartide

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fencing.js
const verbs = [
'move horizontally',
'raise sword',
'lower sword',
'thrust sword',
]
const objects = [
'fencer with sword',
'piste',
@nucleartide
nucleartide / command.p8
Last active Apr 25, 2019
Command pattern in PICO-8 (basically, passing a callback)
View command.p8
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
-- here's a simple player class:
function player(o)
return {
x=64,
y=64,
on_input=o.on_input,
@nucleartide
nucleartide / verbs.txt
Created Jan 3, 2019
interesting verbs
View verbs.txt
- [ ] swing
- [ ] blow
- [ ] shake whipped cream / screenshake
- [ ] wash dishes
- [ ] cut / chop
- [ ] roll
- [ ] punch
- [ ] blow up
- [ ] cook (by breathing fire)
- [ ] jump
@nucleartide
nucleartide / mom_dad_game_dev.md
Last active Dec 17, 2018
Mom, Dad – I want to be a game developer. An outline of a learning roadmap.
View mom_dad_game_dev.md

Mom, Dad – I want to be a game developer.

Real talk.

Start small.

Finish projects.

It doesn’t matter what you use.

@nucleartide
nucleartide / fried_eggs.p8
Created Nov 13, 2018
You thought you liked breakfast...
View fried_eggs.p8
u=64
x,y=u,u
es={}
c=circfill
f=abs
q=3
g=0
p=cos
o=sin
function _update()
@nucleartide
nucleartide / sketch.tsx
Last active Mar 28, 2018
<canvas> game dev API sketches
View sketch.tsx
// Imperative, immediate-mode API. (Inspired by PICO-8.)
function _init() {
}
function _update() {
}
function _draw() {
cls(Color.Blue);
@nucleartide
nucleartide / controllers.application.js
Created Dec 10, 2017
notifyPropertyChange behavior
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
// this.foo = { bar: { baz: 4 } };
let foo = Ember.Object.create();
@nucleartide
nucleartide / darn-it-twitter.js
Last active Dec 10, 2017
My Twitter theme color picker doesn't show, here's a workaround
View darn-it-twitter.js
/*
To use,
Edit line 38-40 below with your desired Twitter theme color.
1. Go to your profile page.
2. Enter the code below into the console.
3. Click "Edit profile".
4. Make a one-character change in your Twitter bio.
@nucleartide
nucleartide / components.my-component.js
Created Dec 8, 2017
checking notifyPropertyChange behavior
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
'click first' () {
this.get('dog').notifyFirst()
},
'click second' () {
this.get('dog').notifySecond()
You can’t perform that action at this time.