5.0

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 3.35 KB File ID: #34990
image thumbnail

DoodleJump

by Stepen Sahrun

 

09 Feb 2012 (Updated 10 Feb 2012)

DoodleJump allows user to play DoodleJump game on MATLAB GUI.

| Watch this File

File Information
Description

DoodleJump allows user to play a simplified version of DoodleJump game on MATLAB GUI. In this game, user controls the doodlers (the small red circle) by using directional button to reach higher altitude by stepping on the blue paddles, which are randomly generated and placed. The game is endless and only stops if the doodlers falls down to the bottom of the screen or if the doodlers touches the black holes.

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File  
Everyone's Tags
doodlejump, doodlejump game, game
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
25 Apr 2012 Zachary Danziger

Cool.

10 Feb 2012 vj

Amazing work!! I loved it!! I have a question for you. I am using the ball and paddle in my program. I am not sure, how to make the ball fall on to the paddle. Plz help on this.

function ball
t=linspace(0,2*pi,100);
r=0.5;
h1=fill((5)+r*cos(t),(5)+r*sin(t),[1 0 0]);
xlim([0,10])
ylim([0 10])
hold on

rectangle('Position',[0,2, 8 ,0.1],'Curvature',[0,0],...
'FaceColor','r')
hold on
ed2=uicontrol('style','radio','units','normalized','position',[.025 .775 .1 .05],'backgroundcolor','w','string','start');
a=2;
ed2
end

function ed2
set(ed2,'Value',1);
if (get(ed2,'Value')==1)
msgbox('hi')
set(h1,'ydata',get(h1,'ydata')-5)
end

end

Updates
10 Feb 2012

Updating tags

Contact us