Coterie Released

(Aug 3, 2016 Update: Coterie is now playable on mobile or touch devices as well. Play Coterie) Growing up I deeply enjoyed two specific cards games: Triple Triad in Final Fantasy VIII and Tetra Master in Final Fantasy IX. Having some extra time this past week I developed a simple card game variant called Coterie. What started as an excuse to get more familiar with flexbox in css ended up actually being fun to play! ...

August 3, 2016 · 2 min

Cleaner complex IF Statements

Writing clean code like Uncle Bob describes can be complicated sometimes. So you have this long if statement that’s relatively simple in design but ugly to the eyes and somewhat hard to read. if( x1>=img.left&&x1=img.top&&y1=img.left&&x2=img.top&&y2=lowerX&&x1=lowerY&&y1=lowerX&&x2=lowerY&&y2=a&&this=img.left&&x1=img.left&&x2=img.top&&y2=img.top&&y2r)){ img.scaling = Math.pow(x1-x2,2)+Math.pow(y1-y2,2); } //end if At what point does sacrificing performance become worth it for code readability?

May 12, 2016 · 1 min

NPM Module: Jugs

App generator jugs makes development fun again! You can view the source code here. Vite.js : Performant Module bundler with tree-shaking, hot module reloading & minification Babel : Transpile modern javascript, formerly called 6to5 Eslint : Lint your javascript in its modern format Stylus : Powerful CSS Preprocessor with a beautiful syntax Ion-Cloud : A micro library for animations & game development Simply install this app generator globally: npm i -g jugs mkdir appName cd appName jugs File Structure: ...

January 30, 2016 · 1 min

Automata Generated Caverns

Randomly generated dungeons are a lot of fun to program, but sometimes they can be pretty difficult to originally wrap your head around. For this years 7DRL I added Automata Generated Caverns as one of the algorithms I wanted to figure out completely. You can read more specifically on the theory here.

November 13, 2015 · 1 min