Skip to content

Instantly share code, notes, and snippets.

View richtaur's full-sized avatar
👁️
valadria.com

Matt Hackett richtaur

👁️
valadria.com
View GitHub Profile
4a0bae9 Matt Hackett (HEAD, master) don't collide with owner (found a bug in collision related to this) (8 minutes ago)
8e63226 Matt Hackett just whitespace and cleaning (9 minutes ago)
461e3b2 Matt Hackett oops put those timers back (73 minutes ago)
c194380 Matt Hackett chest, naming tweaks, explosiveRune (79 minutes ago)
4b9fe89 Matt Hackett new entity added placeholder polish (2 hours ago)
b1c3793 Matt Hackett (origin/master) ok NOW that showing-wrong-inventory-item bug is fixed (3 hours ago)
6c27ac4 Matt Hackett this is a little simpler though i don't think the problem is here anymore (3 hours ago)
9fb4841 Matt Hackett lil less tracks (3 hours ago)
33e6c49 Matt Hackett Newly spawned entity grid snapping (3 hours ago)
af14d3d Matt Hackett clearer which inventory entity is selected (3 hours ago)
Geoff: hello!
Geoff: prefabs/player.prefab.js
Geoff: playerPrefab.js
Matt: solidComponent.js
Geoff: components/solidComponent.js
Matt: view/DoorView
Matt: Text.js
Matt: djinn/ui/Text.js
@richtaur
richtaur / lavaBladeLevelData.js
Created October 2, 2012 08:44
Lava Blade procedural level data
{
"levels": [{
"base": {
"conf": {
"monsters": ["goblin", "turtle"],
"platforms": ["streamer", "trees"]
},
"type": "generic"
},
"difficulty": {
define([
"djinn/intl",
"djinn/stage",
"djinn/View",
"djinn/TileMapView",
"djinn/Collection",
"djinn/utils/keys",
"djinn/ViewCollection",
"djinn/masks/Letterbox",
"djinn/math/core",
========== <-- the easy road
..==..==.. <-- monsters on these platforms
....==.... <-- coins etc. on the bottom platform to entice you to risk it
// Before
this._stageCollection.add(new LevelButton({
parent: this._container,
stage: stageId,
stageId: stages[levelNumber],
levelNumber: levelNumber,
x: (offsetX + levelNumber - 1) * buttonStyle.width,
y: offsetY * buttonStyle.height
}));
@richtaur
richtaur / lb_polish.js
Created June 21, 2012 00:03
An empty Lunch Bug method, ready for polish code!
_showUnlock: function (buttonIndex) {
// Play the eating sound
// Bring the bugs in to feed on the current level berry
// Change the current level graphic
// -- Is the next button on the next screen? Scroll now…
// Move the bugs to the next level
this.getChildByTag("button", function (view) {
view.opacity = 0;
view.tween({
opacity: 1
});
});
define([
"djinn/Game",
"djinn/assets",
"djinn/Sprite",
"djinn/TextView",
"djinn/utils/viewEffects"
], function (Game, assets, Sprite, TextView, effects) {
return Game.extend({
// TODO: support \n
// TODO: pagination (use height)
// TODO: typewriter effect?
var Canface = (function() {
var Canface = function(conf) {
this._drawData = [];
this._imageData = {};
for (var key in conf) {
this[key] = conf[key];
}