SeuJogo.com
 
 
 
 
 
 
 
 
 
Free Online Games HeavyGames
KickinGames
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The Silverlight sound problem

by SeuJogo 29. June 2010 21:51

Many are still looking for a solution for the Silverlight sound problem. What are the problems and what is the solution?


People who tried to create a casual game in Silverlight, encountered problems when they added sound effects to the game. The time between starting a sound effect and actually hearing it, is unacceptably long. This is called “audio latency”.


Short effects, typically less than a second, sound good the first time, while they sound bad the second time when they are played. The source of this problem is not clear, however long sounds don’t have this problem. This is called the “short sound problem”.


Also, it is very hard in Silverlight to play music in an idle loop. An idle loop with the out-of-the-box MediaElement, plays a silence every time the music is repeated. The silence at the beginning is actually caused by the same audio latency described above.


The above problems exist in Silverlight 4 and lower versions.


The audio gap
The music compression format MP3, is standard encoded with a silence at the beginning – the audio gap. This is because the decompression code needs some time to get ready, like an engine which needs time to get started. Tools like WinLame may encode an MP3 without an audio gap at the beginning, but this does no good to Silverlight’s decompression code. An MP3 created with WinLame will sound bad.


The audio buffer
Silverlight uses an audio buffer internally, which needs to be filled with audio data before any sound is played. The size of the audio buffer is measured in time, and it costs exactly that time to fill the audio buffer, before any sound is heard.

 

Reducing audio latency
The audio latency is caused by the audio gap from the music format and because of the audio buffer. So if we want to decrease the time between calling the Play function and actually hearing sound, we need to handle both the audio gap and audio buffer. Now obviously, a latency of 0.0 is impossible, otherwise Microsoft would have provided this with Silverlight.


The solution: VorbisPlayer
The solution is to choose for an audio format which is gapless. Second, the default length of the audio buffer must be decreased. And for a seamless idle loop, we must stream the next music part into the audio buffer, right after the previous music part has finished.


Ogg Vorbis is a music format which can be encoded without audio gap, however it is not supported by Silverlight. However, Silverlight does allow developers to implement their own audio decoder.


The VorbisPlayer provides exactly the solutions described above. More important, the VorbisPlayer is easy to use, for not so technical people.


The VorbisPlayer allows low latency for sound effects, much lower than Silverlight provides out of the box. Because of the used technique, the short sound problem is also solved. Also, the VorbisPlayer has an easy function to invoke a playlist of music, which will be played seamless without gaps in between.


The Silverlight VorbisPlayer can be found on Codeplex: http://vorbisplayer.codeplex.com/

Tags: , , , , , ,

Technical

Inspiration - Particle Systems

by SeuJogo 29. June 2010 19:39

Particle systems are used in games for different reasons, explosions for example. The idea is to have some controlled randomness in the game, to get a better visual effect. However, particle systems may also be used as part of the gameplay, and that gets very, very interesting.


Music Catch
Absolutely my favorite in this article. A particle system is coupled with a sound equalizer. So particles are created on the rhythm of the music. While listening to calm piano music, the player needs to catch geometric shapes, which give points. If you catch yellow shapes, your score multiplier goes up, red shapes are bad which decreases you score multiplier. Many people love this game from 2008.

Sit back and relax, while you catch some random shapes

EON
In this game, large planets have some kind of energy, which you need to transport to smaller planets, using magnets. The planets generating the energy are coupled to an infinite particle system, while the magnets influence how the particles flow. Very nice game, with quite some tough puzzles.

Grumpy, those black holes in the middle mess up everything

Vector Effect
This arcade type of game is very nice visual appeal. You need to shoot the particles which seem to appear random in the game, and avoid touching them. The particle system seems to be random enemy creator in this game. Still, the game is very addicting.

Get away and shoot those shapes!

 

Tags: , , ,

inspiration

VorbisPlayer release 1.1.0

by SeuJogo 27. June 2010 01:05

Great developments on the VorbisPlayer. To reduce the download time of Slengo, the bitrate of all sound in the game was reduced from 44.1Khz to 16Kh. Although the quality of the sound is lower, it still sounds quite good. 1.87Mb of data was reduced to 0.99Mb.


Another advantage is that the VorbisPlayer uses less CPU at this bitrate, and performs much better. On high-end machines, people did not have much problems with performance, however on lower end machines the sound could stutter. With a lower bitrate, this problem solved for low-end machines. The VorbisPlayer was modified to allow for lower bitrates.

A new release of the VorbisPlayer has been uploaded on CodePlex:

http://vorbisplayer.codeplex.com/

Tags: , , , , , ,

SeuJogo News | Technical

Inspiration – Originality, Nostalgia and first impression

by SeuJogo 23. June 2010 23:05

How does a game get you hooked? Well, it needs virtues.


Blastwave
Blastwave is a crazy but well done idea. It has very nice graphics. But what’s really good about the game is that it’s very original. You are God, and with your hand of God, you need to create whirlpools in the water, to attract floating people. You navigate these people through a hurdle of obstacles, while collecting bonuses. The nice thing is, each level introduces a new challenge for you to take.

 

The guy on the top-left, needs to go to that green thing at the bottom-right


Pixel Shuffle
Pixel games are for the older players, who think with nostalgia back to the eighties and early nineties, when graphics were simple and your imagination was part of making the game. In Pixel Shuffle, the player needs to shuffle the pixels in the playing field, so that they represent the target graphic. As you only shuffle vertical bars of pixels, the ordering is not very hard. Only you need to remember what the graphic was, which you try to recreate, which makes the game a bit harder.

How can such a nice game point the finger at you?

 

Up-Beat
Up-Beat is one of those music games where you need to play along with the computer. This time it’s piano practice. This game absolutely makes a good first impression. First level in category “easy” is “The Weekend” by Michael Gray. Now you get your first impression. Good graphics, fun gameplay and very cool music. I love that song.

I can’t wait for the weekend, to play this game all weekend

 

Tags: , , , ,

inspiration

Inspiration – Traffic and Quests

by SeuJogo 20. June 2010 19:14

A game creator needs to play games, to be inspired for his own games. But you can also play games for fun if you like.

 
Traffic Control, Traffic Control 2
I remember when I was quite younger; about 1983, I had one of those books with the source code for games. After you entered the code line-by-line on your Commodore Vic-20, you could play the game. Of course we didn’t have storage at that time, too expensive, so typing-over was the standard painful ritual, before the fun. Some games were unplayable, because you needed “extended memory”, which we didn’t have.


One of the unplayable games from that book was called “Manhattan”. As I understood from the description and the source code, the game was a matrix of Manhattan blocks, and cars were supposed to cross the streets, while the player adjusted traffic-lights to avoid car crashes, traffic jams and so on. My curiosity for this unplayable game probably became some sort of youth-trauma, because still today, I would like to play “Manhattan”. And what do you know? Somebody made this game in Flash – Traffic Control and Traffic Control 2.



Help traffic through the city


Both games are a partial implementation of “Manhattan”. In “Manhattan” you had car-crashes; people could become impatient and ignore the traffic-lights. Without all those features, both “Traffic Control” games are already hard enough. The second version of the game, significantly demonstrates, what I call, challenge-by-accumulation. I mean that a game or level is made harder, by adding more-of-the-same. Traffic Control just adds more cars per minute when the game advances. The second version adds trucks, which need more space. The object of the game is to see how long you can stand.


I prefer new challenges over challenge-by-accumulation. Make a complete different level, with different cars, with different features. The trucks in the second version of the game is a nice idea, however it does not contribute much to the gameplay; it just sucks up your resources (space) and you have no control about it. These games lack suspense because you can’t beat the computer. That’s probably the reason why I wouldn’t play these games a second time.


Panda’s Bigger Adventure
One of the most amazing things these days is that people create quests in Flash. Quests need a lot of graphics and sound. And ofcourse, a quest needs a plot. To be honest, I’ve been playing Panda’s Bigger Adventure until I finished it. Most puzzles are not too hard, but still the game is entertaining, for those quest lovers.

What is Elvis doing in that strange device?

One small point of critique is that the game has gathered all sorts of ideas from famous media. There is “Radar”, based on the clerk character from the comedy serie “Mash”. You have “Private Ryan” from the movie “Saving Private Ryan” and ofcourse Leonardo Da Vinci from history.

 
I like it when people create their own ideas, not basing them on something which already exists. However, creating your own ideas in a game is very, very hard. There is very little opportunity for this. There are only few games which became a movie later, like Prince of Persia, Doom, Tomb Raider, while many movies became a game. So let’s not be too critical on this point.


Panda’s Bigger Adventure keeps you playing and leaves you with a satisfied feeling when you have finished it.


Tombscape

Tombscape is like a quest, which reminds me of Myst. The puzzles in the game are not self-explanatory. For each puzzle, first you need to discover the question, and then find the answer. It takes quite some time to download, but the graphics are really great.

A tunnel between two puzzles

 

I need a triangle key plus all gems to open that door

In my honest opinion, Tombscape is addicting. Not only because of the great graphics, very much also because of its great puzzles. It’s a long download, but it certainly is worth it.

 

Tags: , , , , ,

inspiration

Powered by BlogEngine.NET 1.5.0.7