We have Music, Sound, UI but no Dependency Injection

So another night coding Hack24 fueled by sugar and Redbull (well cheapo versions). I wanted to try and get Dagger2 working on my project so I could do Dependency Injection which is something I am interested in learning.   I timed boxed it to 1 hour and failed 🙁 This was due mainly to not understanding how it works with Kotlin. This project has a lot of moving parts to make my life more difficult, if it was a straight forward Android project, life would be fairly simple, however, it uses the LibGDX game engine which is cross-platform and normally in Java, and I am writing it in Kotlin. There seems to be not a single example anywhere of doing these 2 things together. My issue at the moment is with Gradle and the mass of gradle.build files that LibGDX has.

On the positive side, I did add a sound manager that does sound effects and music (quick win), I skinned the buttons, added the Hack24 logo and started building the factory methods to build the buildings in the game!

My focus is to build a minimal viable product of Hack24 before Christmas and release it on a single platform (Probably Android) as a soft launch.

Main areas I need to look at still:

  • Networking and the server side
  • UI for hacking a building
  • The player logon model, e.g Apple Game Center, Google Play etc

Hack24 update

So progress on Hack24 hit a few walls as shown below but it is moving forward 🙂 Don’t worry about the nasty textures, they will be going.

Below is it running on OSX, we have spawning of buildings, and collision.

Lesson Learned : Sometimes pretty code is slower code!

Interesting lesson learned: I had written my own 3D engine for Hack24, however came across this book https://www.packtpub.com/game-development/building-3d-game-libgdx, the code was extremely well structured and I was about to bin my own framework and use this one as it was a bit further along.

I thought I would run a few performance tests, just to be on the safe side. Glad I did:
Theirs: 400 objects rendered: 22FPS
Mine: 4608 objects rendered: 15FPS

Hack24 V2 started :)

So, it may end up being called something else but I have now started writing a new (well kinda) game.  The last couple of weeks I have been bug fixing and improving the LibGDX framework / demo app that I made a few years ago.  Code can be found here: https://github.com/burf2000/BurfEngine

Yes, it has a terrible name!  Anyway it was my attempt at a simple game like Minecraft where you can place and remove cubes.  I added things like chunking, gravity, and culling.  It also has a database and network layer, custom collision code and works on iOS, Android, and Desktop.  It has been converted to Kotlin, which I am really liking 🙂

Now, after a few long nights of fixing, that code is being parked and anyone can use it!  I now plan to rip it apart and use the best bits to form the engine for Hack24 (v2).  Made aim is to make a 3D game that has the same look and feel as Hack24 that’s cross-platform and easy to develop further.

I will focus on a MVP first, which should not take too long, I will try and rewrite the server in NodeJS (Well KotlinJS).

So why am I doing this?  A few reasons:

I really liked Hack24 but it had some performance issues and really needs rewriting to use OpenGL VBO / VAO.  It also makes sense to make it cross-platform while I am at it.  I don’t fancy doing it in Unity and really want to learn Kotlin for work (which I can for LibGDX).  It would be nice if people enjoy playing it too, so I hope to make it bigger with more content 🙂

Watch this space!

 

 

Hack24 new version coming

So, seems people liked it so I am going to start making a new version of Hack24 in Unity

Building it in Unity will allow me to get past a lot of my performance issues.

If you enjoyed the game, please let me know what you liked and what you want in the next version!

 

 

GameJam : Friday 13th Unity Style!

So, a few of us gathered at Compsoft for another random GameJam, there was a theme but I don’t think anyone could remember what it was.  It was more of a hack some stuff together using Unity.  Now I am not the biggest fan of Unity, I love doing things the hard way, Unity seems to do too much for you, like Magic.

This time I focused on trying to get a simple example working for my Oculus Rift DK1 on a Mac, I thought this was going to be very hard.  I googled and saw Oculus’s new SDKs does not support OSX, I also saw very little mention of DK1.  I read about people hacking stuff together etc, things where not looking good.

However, the people at Unity rock, there was a simple tick box on the build settings for my project, that just made magic happen!  I had a simple 3D First person demo from the store, I ticked this box and BOOM, VR baby!.  I was actually blown away, to the point where I actually want to learn Unity!  I had a beautiful 3D Forest in VR without coding a single thing! (The demo of course had code but I had done nothing)

I couldn’t of made this by hand in a million years!  I then proceeded to add snow, a snowman and a elf!

Everyone has been telling me to use Unity, I think their right.  I just need to give in and learn it!

New version of Hack24 submitted!

I May of just solved a programming issue that’s been bugging me for many months. The only way I thought I could get round it was a complete rewrite of the 3D engine for Hack24. However it seems you can get around the massive performance with Hack24 by having multiple threads. Yes seems obvious however this is OpenGL world and that is completely different, the items have to created in the main context!

The fix worked, so a new version of Hack24 has been submitted (with other bug fixes!)

Humble Bundle Game Dev Edition

Humble

Humble Bundles generally consist of a number of indie games sold together at a low price in support of charity.  This time however it’s a bit different, as this one is composed almost entirely of game development tools and asset packs.  The bundle currently includes:

  • Axis Game Factory Starter Pack
  • Stencyl Indie Edition 1 year License
  • RPG Maker 90% off coupon
  • Humble Bundle Starter DLC ( sprite tiles and music tracks )
  • Indie Game Maker 2014 Finalist Pack ( more assets )
  • Labyrinth Dreams ( a game )
  • RPG Maker VX Ace Delux
  • Game Character Hub
  • Humble Bundle SciFi Pack
  • Humble Bundle New DLC Pack
  • Aveyond:Lord of Twilight ( a game )
  • Crimson Clover WORLD IGNITION ( a game )
  • App Game Kit 2
  • Spriter Pro
  • Sprite Lamp
  • Humble Bundle Fantasy DLC Pack
  • Goats on a Bridge ( a game )

The above list is the complete purchase list however, and requires an investment of at least 12$.  That said, Spriter alone usually has a 50$ price tag and Stencyl Indie is 99$, thats an extremely reasonable price tag.

More details about the Humble Game Making Bundle are available right here.