File Exchange

image thumbnail

Nintendo game&watch Egg - EG 26 simulator

version 1.1 (753 KB) by

Game a and game b simulated, with sound

0 Downloads

Updated

View License

http://simulations.narod.ru/

Speed dependence from score and number of simultaneous eggs from score dependence were get as in real game&watch.

run game.m

control from keybard:
game a: a
game b: b
reset: r

wolf control with num keypad, num lock must be on:
up-left: 4
down-left: 1
up-right: 6
down-right: 3

volume control: left and right arrows

see gameplay here:
http://www.youtube.com/watch?v=3YcKdqNvGcY

Comments and Ratings (6)

muthu Kumar

what algorithm used in it?

HIT

HIT (view profile)

HIT

HIT (view profile)

cool

Mingjing Zhang

Mingjing Zhang (view profile)

Okay you are right. I tested it on both 2010b and 2011a in win7. 2010b does not give an error, however, 2011a does. Maybe there is some update of 'audioplayer' after 2010b.

Maxim Vedenyov

Maxim Vedenyov (view profile)

Thank you. There was no errors in MATLAB 7.11 (2010b) in windows 7. May be you used another version? The code uses audioplayer function and play the sounds each time when egg makes shift.

Mingjing Zhang

Mingjing Zhang (view profile)

A perfect simulator and a true masterpiece! Reminds me of my childhood...

However, I did come across one bug:
-------------------------------
??? Error using ==> audioplayer.audioplayer>audioplayer.resume at 710
A given audio device may only be opened once.

Error in ==> audioplayer.play at 88
obj.resume();

Error in ==> game at 680
play(pgot);
---------------------------------
which occurs every time after the wolf catches the first egg. If I just comment this line out then there would be no problem.

Also, I strongly recommend assigning the control to the arrow keys. Using the "numpad" on the laptop is such a pain...

By the way, come visit my page if you have time :)

Updates

1.1

What's new in this second version:
To start run game.m. Add sound_mode option in the begining of game.m.
By default it is sound_mode =2, so there must be no more error with audioplayer function. Add cheat options. See also notebook_keys variable.

MATLAB Release
MATLAB 7.11 (R2010b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video