Friday, June 20, 2014

Just Another Tetris Clone

Someone sucks at Tetris.
Despite WildStar's critical hit on my free time this past month, I've managed to code a little. Let me introduce both of my blog readers to the buggiest and most poorly coded version of Tetris they've ever seen.

Don't ask why it's called Flipsy. That was just the name of the
folder when I started and I didn't bother to change it.

I did follow the Tetris guidelines to the best of my coding ability. The obvious things, like piece colors are there. With the exception of the square. One cube on the square red so I could see it was rotate. Less obvious Tetris familiarity is the piece randomness. There are a ton of guidelines I haven't implemented yet.

The primary goal of this project was to increase my familiarity with, an HTML5 game framework. It takes care of the lame part of game crafting, drawing stuff on a canvas, and lets you focus on the look and logic of the game. Their site has a lot of examples to help you. I found most of their examples are for every game type imaginable except a falling block puzzle game. They are none the less helpful at getting concepts across.

This was also a personal experiment with the 10 minute hack.

The idea behind the 10 minute hack is to work on something for 10 minutes every day. The idea is that once you get into a project it is easier to keep going. If you are just not in the mood you can at least say you thought about it for 10 minutes. I am certain, had this stupid WildStar game not come out there would have been less days of only 10 minutes. To be honest there were a couple of days I didn't even get my 10 minutes in. Every day I did do the 10 minute hack I made a note of it in a text file. Like a 10 minute hack daily journal. Most entries were a sentence, but I found the reflection to be useful.

I'd post my 10 minute hack journal, but my biggest mistake was using the hack to work on multiple projects at once. I think in the future, for at least a few weeks at a time, decide which project the 10 minute hack will be used on.

For the future of this project, first thing will be some major refacroting. Then some bug fixing. For example; if you go nuts with the rotate key and left/right arrows at the same time you can split a piece apart. Especially weird stuff can happen at the edge of the screen. After that I'd like to start making some serious changes, like make it more than another Tetris clone.


james anderson said...

Love the honesty! Despite Tetris struggles, coding is coding. Your dedication to the 10-minute hack is inspiring. Looking forward to seeing Flipsy evolve. Keep at it
New Jersey Order of Protection

Anonymous said...

The Abbott Elementary Bradley Cooper Varsity Jacket is a stylish and iconic piece inspired by the character from the hit TV show. Featuring classic varsity design elements like contrasting sleeves, ribbed cuffs and hem, and a snap-button front closure, this jacket exudes retro charm with a modern twist. Made from high-quality materials, it offers comfort, durability, and a touch of nostalgia for fans of the series. Perfect for casual wear or showing off your love for Abbott Elementary and Bradley Cooper's character.

jossyrascon said...

It's an inspiring example of how hands-on projects can supplement traditional learning methods, ultimately fostering a deeper understanding of complex topics. And if any student feels overwhelmed, they might be tempted to search for pay someone to do my university assignment to lighten their load.