Sunday, 13 April 2014

Game 4: Demolish

I've heard good things about Phaser so I decided to try it out this week, along with learning a bit of JavaScript. Phaser has a physics engine so I thought I'd have a go at making a physics-based game.

I found JavaScript nice and easy to get started. I thought it would be similar to Java but they don't have much in common. I prefer JavaScript's classes to LUA's but I definitely still prefer Java. It's interesting to see how other languages work though.

Phaser was a bit of work to get started but that's just because I'm not very proficient with servers. It has a great list of example mini games showcasing various features with commented code underneath, which is a good way to get started or to see what can be done with the various systems. I found it quite difficult to learn how to do things outside of those examples though. There were three types of physics engine inside of Phaser and it was tricky to find the difference between them and which bits are shared. I ended up using P2JS and it worked alright, thought it was a bit of a pain to get set up.

I just moved in with a friend and I fell a bit behind with the coding due to getting house things sorted out, being distracted by friends and a bit of laziness! I ended up programming almost all of it on the last day, but I think it turned out ok in the end.

Next week I'll try C++!

No comments:

Post a Comment