03. August 2017

Drunken JavaScript

This is also posted on Code Koalas’s site.

Here in The Crossroads of Kansas City on the first Friday of every month people open their offices and art galleries to show off new art and have a party. It’s called First Fridays. Not the most creative name, but at Code Koalas we wanted to do something a little more than just show off art and offer drinks and snacks. Since we’re a development company, we figured we should teach people to code. I was the one tasked with figuring out what that would look like and ultimately the one teaching this class every month.

I ended up deciding to teach people JavaScript, but specifically using Canvas to make a ball bounce around the screen. I’ve already written the blog on the JavaScript teaching I give every First Friday, and I’ve taught Canvas at Texas Camp. This blog isn’t a tutorial for how to write JavaScript, but more about what I’ve learned and experienced through teaching JavaScript to many people over the year, many of which were quite drunk.

more

11. July 2017

I Can't Even Canvas, But Now You Can!

This is also posted on Code Koalas’s site.

If you’re anything like me a couple years ago, you probably have avoided doing animations in Canvas because it’s crazy complicated and you’re just a person who can make websites, not a real programmer who can make games and things. But here’s the thing: you’re wrong. Making animations and games in Canvas is very easy and fun, I’d argue it’s easier than writing JavaScript for sites. If you can make a mobile menu, a carousel, or even just an alert() you can make a small animation in Canvas. I’ve taught this to children and very drunk people who know nothing about coding at Code Koalas First Friday events we host.

more

07. September 2016

100 Days of Code - Day 7

I just finished day 7! Where did the other days go you say… well I did them but only on github without blogs. I’ve been busy :) This in 7-10 hours is actually becoming a real thing. At this point here’s some key features I have done:

  • Fly around the screen with turning and when you hit the edge of the screen you go to the other side of the screen
  • You can shoot lasers by pressing the space key
  • Randomly generated asteroids appear and fly across the screen
  • You can shoot the asteroids and they disappear and you get a point
  • You can get hit by an asteroid and they disappear and you lose a point
  • I just today fixed my words which weren’t showing up. Turns out they were alwasy there… just black instead of white.

Most of the things in that list don’t work great but they work, I’m honestly impressed with how little I’ve worked on this.

more

03. September 2016

100 Days of Code - Day 3

Day 3 and I’ve hit my first big struggle! Turns out math is hard, or I’m just using it wrong. It’s probably me just using it wrong. I don’t know the equation to calculate your movement on a grid based on your current rotation, so I’m trying to make one up. I know all numbers I have to play with and what answer I’m looking for, it’s just trying to manuplulate those numbers to produce that answer is where I’m having the issue.

more

02. September 2016

100 Days of Code - Day 2

Great, it’s day two of 100 days of code. Guess what!? I sort of already failed… I got to work at 7:30am and left at 11:40pm. In that time I was able to get 45 minutes throughout the day where I worked on this code. I’m going to count it because I’ll make it up tomorrow and I coded the whole time and taught classes on how to code from 6pm-11pm so you cannot be too made at me.

more

01. September 2016

100 Days of Code - Day 1

Some people at work, Code Koalas, have decided to start doing the 100DaysOfCode. So I decided to do it too! I created a Trello Board where me and some people from work have posted their ideas on possible projects or things they want to learn. I don’t have a ton of time as I’m currently at work staying late on projects and took a hour break to do this. But here’s a link to my commit I got pretty far because I’ve previously created a Canvas template in CodePen which had probably 75% of that code you see.

I’m not 100% sure what I want to do with this project but right now the plan is for an Asteroids type of game. I’m trying to think of some cool multiplayer aspect to the game.

Well thanks for reading have a good night.

:wq

10. May 2016

Next-Level Drupal - Applied progressive decoupling with JavaScript

This is my first Drupal session I attended about decoupling Drupal from the frontend and using a JavaScript framework. This is interesting to me because I sit on the fence as a Acquia Certified Drupal Developer & a JavaScript developer who wants to do everything in JavaScript these days. Once again this is uploaded right after the session so probably has typos.

more

23. February 2016

Canvas Helicopter Game

I made another game in canvas! This time I went for the classic flash game where you’re a helicopter in a cave trying to not hit the stalagmites & stalactites (think flappy bird but from 2000). Here’s the game:

more

03. January 2016

Pong in Canvas

I started playing with Canvas last year, but I finally made a game now!

more