Ten Second Sketch is coming to Android(and iOS)!

Our ludum dare entry this time around has had quite some overwhelming feedback! For this reason, we’ve decided to continue development of our game. This means that we’re bringing Ten Second Sketch to mobile devices! The game is going to be free of charge, aswell as free of adds!

Ten Second Sketch

In order to enhance the experiance for our users, we’ve taken multiple actions:

1. We’ve optimized the game rendering and collision detection.
Optimized rendering was achieved by batching all obstacles. We also added scaling of blocks, allowing us to use just one scaled block with repeating texture coordinates instead of multiple small. A huge performance boost compared to our old naive approach! On some levels we managed to cut down the amount of floats needed for our vertices from ~200k to ~5k! Adding this scaling of blocks also had a huge impact on collision detection. We’ve always been using first a broad phase where the obstacles at a nearby Z coordinate are found, and a narrow check where these objects are checked for collision. Now everytime you’re close to a wall, you’ll be checking collision against one block instead of the previous 100!

2. We’ve fixed bugs with the collision detection from our previous entry. It should, for example, no longer be possible to fall through the ground at level 8.

3. Garbage Collection removal
All unnecessary garbage collecting has been removed. This means that the game runs much more fluently on mobile devices. Pooling all obstacles before removing them from the current level was one of the major improvements that we did. We also had a lot of lazy additions of ”new Vector3″:s in our code. All of these have been replaced with static references to computation vectors.

4. Level polishing and additions.We’ve removed levels that we considered too boring, and replaced them (it) with multiple new and exciting levels! We’re still making new levels on a daily basis, and the game is going to contain some very difficult levels for the most dedicated!

5. New features!
We’ve added some new features to the game! Examples: Bouncy blocks and boost blocks! A bouncy block will cause you to bounce in the opposite direction of the one you’re heading – landing or driving on top of one will cause you to jump, rotating into it will cause you to rotate in the opposite direction for a moment. Boost blocks will cause you to travel at increased speed for a while after colliding with them (very similar to how the user controlled boost works). These two new block types allow us to create some very interesting and smooth levels – prepare to feel like a god while racing the pipe of Ten Second Sketch!

 

If you would like to look at our entry for LD27, visit Ludum Dare
If you would like to stay updated and be notified of the release of our game, please follow us on twitter: https://twitter.com/daggergamedev
Ten Second Sketch was made with the help of the amazing game framework libGDX.

Ten Second Sketch

Our second attempt on Ludum dare has just ended. The theme this time was 10 seconds. We were somewhat disappointed as we would have preferred a more original theme. While discussing the theme, we thought that there were going to be a lot of similar games and we wanted to stand out! For quite a while we struggled to come up with a unique idea fitting to this theme. We then remembered an idea we actually had talked about just the previous week.
The discussion started when we found a sketch of a game Edvard and Gustav were involved in during their bachelor's thesis. We sometimes do friendly harassing of each others and I jokingly told them that their sketch were much better looking then their final product, and that they should have made a game with those graphics instead. Then we thought about it, agreeing that it would actually be pretty cool!

We recalled that moment and decided to try it out! After our project was set up and we had a frame displaying a black sun with a long rod piercing through it, it was definite!
Last time we had a really talented artist with us, André, who unfortunately were too busy to join us this time. As none of us know any real modelling, we decided to proceed with simple quads, textures, and imagination.
My head nearly exploded trying to draw a 2D ship from that point of view.

Once again, we are impressed with what you can achieve in such a short time frame, and we are very proud to have completed yet another game.

The game can be played in the browser (Google Chrome preferred) over at http://www.dagger.se/LDAug or downloaded as a .jar file at http://www.dagger.se/ludum/ldaug.jar. If you would like to visit and rate our game over at ludum dare, here's a link to that too: http://www.ludumdare.com/compo/ludum-dare-27/?action=preview&uid=13074

We would love to hear what you think about the game. Feel free to leave a comment below!

Explosions with animated billboards

It’s been a while, but we’ve kept busy! Most of our recent work has been with the engine of our game, as well as the server. However, we recently started working on making the spells of our game look better – and this post is going to explain how we did explosions!

The Idea
So, the idea here is that we use a system very similiar to how the particles of our game work. This means that we’re batching a whole lot of quads, and rendering them each frame with just one drawcall. In order to keep the system dynamic and allow for the actual animation, we need to recalculate the vertices of the mesh each frame.

To do the animation, we provide a textureatlas containing (in our case) 8 rows and 8 columns. Each cell represents the state of the animation at a given time, and we set a variable called ”textureVal” to tell our system which cell it should use at any given time.

Below you can see what our Billboard and Billboard system classes look like:

Billboard Show

BillboardSystem Show

Rendering of the billboards
Rendering of the billboards is pretty simple. The rendering code looks like this:

Rendering code: Show

The shaders too are quite simple, and we use the very same shader for our particle system.

Vertex Shader: Show

Fragment Shader: Show

So, the approach we used was quite simple and it took less than an hour to get the system running. However, if you have any questions – don’t be afraid to ask them here or find us on #libgdx over at freenode!

Here’s a video to demonstrate the result of our implementation:

Ludm Dare 26 entry

This weekend, 26-29 May we participated in Ludum Dare 26 Jam. An Online Game Jam event where people from around the world create a game in a weekend: http://www.ludumdare.com

Every Ludum Dare has a theme. This time the theme was ”Minimalism”, and our approach resulted in a game we call Nothing. A game we are very proud to have created in such a narrow time-frame.

The game is available for download via the ludum dare entry page:
http://www.ludumdare.com/compo/ludum-dare-26/?action=preview&uid=13074
It is also available for play as html5 via our webpage:
www.dagger.se/LD