This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

qnanqing
qnanqing presents ...

2010/12/21

Tetris

Now its fully a game!
But the music(midi) doesnt play in applet (and jar too)
Any solution? i use the MidiPlayer helper class.

Problem solved! I use the MidiPlayer class from tintaton's scenario here: http://greenfootgallery.org/scenarios/1202
which i renamed to MidiFilePlayer.

10433 views / 26 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game with-source tetris

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Thu Dec 23 11:42:15 UTC 2010 now the music plays!
A new version of this scenario was uploaded on Thu Dec 23 12:54:13 UTC 2010 The music file is now static, so it will stop when the game is reseting.
DonaldDuckDonaldDuck

2010/12/23

I'm not sure if your aware, but Greenfoot 2.0 has a built in Midi Sequence Handler (Or whatever it's called) Just say - GreenfootSound music = new GreenfootSound("tem.mid"); if(!music.isPlaying()) music.play();
Builderboy2005Builderboy2005

2010/12/24

Its working for me now tho :D
qnanqingqnanqing

2010/12/27

Ah! im not aware! the greenfoot package had one more class!
A new version of this scenario was uploaded on Mon Dec 27 05:40:38 UTC 2010 Now im using the GreenfootSound class! For the Background Music. But im still using the MidiPlayer class for the sound efects.
qnanqingqnanqing

2010/12/27

Updated! ah and if you download this game, you can upload your score! check here for the score: http://games.1free.ws/scripts/tetrisscore.php
DonaldDuckDonaldDuck

2010/12/28

Nicely done =)
A new version of this scenario was uploaded on 2019-03-27 04:21:20 UTC Update to Greenfoot 3
A new version of this scenario was uploaded on 2019-03-27 04:30:24 UTC Not using swing anymore.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Builderboy2005