5.0

5.0 | 2 ratings Rate this file 17 Downloads (last 30 days) File Size: 753 KB File ID: #34092
image thumbnail

Nintendo game&watch Egg - EG 26 simulator

by

 

06 Dec 2011 (Updated )

Game a and game b simulated, with sound

| Watch this File

File Information
Description

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

Required Products Image Processing Toolbox
MATLAB
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
25 Jun 2013 muthu Kumar

what algorithm used in it?

15 Jan 2013 HIT  
15 Jan 2013 HIT

cool

07 Dec 2011 Mingjing Zhang

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.

07 Dec 2011 Maxim Vedenyov

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.

07 Dec 2011 Mingjing Zhang

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
07 Dec 2011

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.

Contact us