PDA

View Full Version : Snake Game



Lukas_Frey
2007-07-27, 16:10
After hearing many interesting things about this great new platform Slimdevices is building, I could not hold back any longer.

Here my first little piece of software, the Snake game.

I somehow get the impression that the Jive platform is going to be another game console ;-)

Kind regards
Lukas

fcm4711
2007-07-28, 01:08
Hey Luki

Now I know why you wanted to go home early yesterday. ;) I guess you had a long night then too. Anyway runs great.

See you
Felix

Lukas_Frey
2007-07-28, 02:29
Hi Felix

It took some time to get used to Lua, and the programming style has plenty of room for improvement ... but it runs.

Luki

rtitmuss
2007-07-30, 01:59
Hey Lukas,

Another cool game for Jive :) Could you make it work with the scroll events too? That would be great.

Thanks,
Richard

Lukas_Frey
2007-07-30, 03:23
Hey Lukas,

Another cool game for Jive :) Could you make it work with the scroll events too? That would be great.

Thanks,
Richard

Hi Richard

I am going to steal it from the Space Invader ... (I asked the guy next desk for permission :-) )

How can I test it on the emulator? (short cuts or hotkeys)

Regards,
Lukas

rtitmuss
2007-07-30, 03:28
The cursor keys: up/down=scroll, right=go, left=back.

Thanks!

Lukas_Frey
2007-07-30, 12:17
I tried to include all wishes and did some optimizations.

- Snake length starts from initial value after loosing a live
- Scroll support: scroll up/down now turns left or right
- Lower volume on sound effect
- Additional sound effect
- Automatic resizing to screen --> works on large emulators screens now

Any comments are welcome.

Could someone with "real" hardware try and provide feedback about user experience and performance?

Thanks, Lukas

rtitmuss
2007-07-31, 15:05
The game seems to work well on the target platform, but suffers from the same control lag as I've seen on space invaders. I think the input events must be queuing, and are not being processed quickly enough. I have not had time to investigate this yet.

Richard

sbjaerum
2007-08-26, 11:40
I want to install this game on the Jive remote. Where should I put the files?

sbjaerum
2007-08-26, 12:11
I want to install this game on the Jive remote. Where should I put the files?

I figured out that I should put the Snake directory in /usr/share/jive/applets/
I did this and turned Jive off then on. I then get a 'Games' line in the root menu of Jive, but when entering Games, it is empty. No messages in the console. Is the version posted here too old?

sbjaerum
2007-08-26, 12:49
I figured out that I should put the Snake directory in /usr/share/jive/applets/
I did this and turned Jive off then on. I then get a 'Games' line in the root menu of Jive, but when entering Games, it is empty. No messages in the console. Is the version posted here too old?

At power up I see this in the console:
000023:8190 ERROR (AppletManager.lua:240) - Error while evaluating meta for Snake:/usr/share/jive/applets/Snake/SnakeMeta.lua:39: attempt to call method 'menuItem' (a nil value)

Triode
2007-08-26, 12:51
yep thats too old.. It will need a small change to SnakeMeta.lua

Lukas_Frey
2007-08-27, 02:32
I noticed that there were some changes in the way you have to register an applet. I'll make the changes as soon as possible and post an updated version.

Lukas_Frey
2007-08-28, 05:03
Here is an updated version of the Snake game. It runs on my Jive device which has lastest the firmware (2 days old).

Enjoy the game, feedback is welcome.

Lukas

sbjaerum
2007-08-28, 09:41
Here is an updated version of the Snake game. It runs on my Jive device which has lastest the firmware (2 days old).

Enjoy the game, feedback is welcome.

Lukas

I installed it successfully and can now play the Snake game on the Jive remote. Because of the beta wheel-button it is a bit difficult to control, but got a score of 115.
Anyway, we have proven the feasibility of exchanging Lua applets for the Jive platform.