① 小兔赛跑游戏的重点和难点是什么
你要问的是龟兔赛跑的游戏吧
龟兔赛跑是幼儿园大班的孩子的体育游戏
这个游戏的重点是:练习跨大步走的动作
这个游戏的难点是:在跨大步走的过程中能控制身体,只走不跑。
② 龟兔赛跑游戏机技巧在哪下载
你是不是玩糊涂了,哪有什么技巧玩法啊,这个可以用遥控器的,我玩了
这么久还没听说有什么规律玩法, 真的我真的没听说过,这完全是不能
信的,要是有规律玩法那还得了!只有遥控器是最好用的,这也是天麟电
子的科技人员说的
③ 用JAVA程序编写一个龟兔赛跑的GUI界面小游戏,其功能说明如下:
你可以看看魔乐的超级玛丽 ,你可以防着写一个
④ 用JAVA编程:编写GUI程序,模拟龟兔赛跑游戏
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Random; import javax.swing.Icon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; //定义一个JFrame窗体作为显示载体 public class TestTortoiseRabbit extends JFrame { private static final long serialVersionUID = 987654321L; static final int MAX_LENGTH = 700; private JButton begin = new JButton("开始"); private JButton exit = new JButton("退出"); private Rabbit rabbit = new Rabbit("兔子"); private Tortoise tortoise = new Tortoise("乌龟"); private JLabel stateOfRabbit = new JLabel(); private JLabel winner; public TestTortoiseRabbit() { super("龟兔赛跑"); setLayout(null); setBounds(200, 150, 800, 400); setDefaultCloseOperation(EXIT_ON_CLOSE); add(rabbit); rabbit.setBounds(20, 100, 50, 20); add(tortoise); tortoise.setBounds(20, 150, 50 ,20); add(stateOfRabbit); stateOfRabbit.setBounds(300, 50, 100 ,20); add(begin);begin.setBounds(20, 200, 80, 30); add(exit);exit.setBounds(100, 200, 80, 30); setVisible(true); begin.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new Thread(rabbit).start(); new Thread(tortoise).start(); begin.setVisible(false); stateOfRabbit.setText("兔子跑起来了!"); } }); exit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.exit(0); } }); } public static void main(String[] args) { new TestTortoiseRabbit(); } class Tortoise extends JLabel implements Runnable { private static final long serialVersionUID = 12345678L; public Tortoise(String name) { super(name); } public Tortoise(Icon icon) { super(icon); } boolean stop; int speed = 2; int x, y; public void run() { x = getLocation().x; y = getLocation().y; while (!stop) { x += speed; setLocation(x, y); try { Thread.sleep(50); } catch (InterruptedException e) { e.printStackTrace(); } if (x >= MAX_LENGTH) { if (TestTortoiseRabbit.this.winner == null) { TestTortoiseRabbit.this.winner = this; } else { JOptionPane.showMessageDialog(TestTortoiseRabbit.this, TestTortoiseRabbit.this.winner.getText()+ "胜利!"); } stop = true; } } } } class Rabbit extends JLabel implements Runnable { private static final long serialVersionUID = 123456789L; public Rabbit(String name) { super(name); } public Rabbit(Icon icon) { super(icon); } boolean stop; int speed = 5; int x, y; Random r = new Random(); public void run() { x = getLocation().x; y = getLocation().y; while (!stop) { x += speed; setLocation(x, y); try { Thread.sleep(50); if(r.nextInt(100) > 90){ if(speed == 0){ speed = 3; stateOfRabbit.setText("兔子跑起来了!"); }else{ speed = 0; stateOfRabbit.setText("兔子在睡觉!"); } } } catch (InterruptedException e) { e.printStackTrace(); } if (x >= MAX_LENGTH) { stateOfRabbit.setText("兔子到终点了!"); if (TestTortoiseRabbit.this.winner == null) { TestTortoiseRabbit.this.winner = this; } else { JOptionPane.showMessageDialog(TestTortoiseRabbit.this, TestTortoiseRabbit.this.winner.getText()+ "胜利!"); } stop = true; } } } } }
⑤ 百度问问首页JAVA多线程程序设计编写一个龟兔赛跑的GUI界面小游戏,其功能说明如下: 1、当程序启动后,主
你的问题没写完
⑥ 用VB做一个龟兔赛跑 游戏
添加3个timer,一个按钮,2个shape控件(分别代表兔子与乌龟),滑动条
代码,下面的5000代表终点线
Dim bisai As Boolean
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Command1_Click()
bisai = True
Timer3.Interval = 1000
End Sub
Private Sub Form_Load()
Timer1.Interval = 250
Timer2.Interval = 250
Slider1.Max = 100
Slider1.Value = 50
End Sub
Private Sub Timer1_Timer()
Static n As Integer
If GetAsyncKeyState(vbKeyA) Then
If bisai = False Then
MsgBox "兔子抢跑"
Else
n = n + 1
End If
End If
If n > 1 Then n = 1
If n = 1 And GetAsyncKeyState(vbKeyS) Then
Shape1.Left = Shape1.Left + Slider1.Value * 2
n = 0
End If
End Sub
Private Sub Timer2_Timer()
Static m As Integer
If GetAsyncKeyState(vbKeyK) Then
If bisai = False Then
MsgBox "乌龟抢跑"
Else
m = m + 1
End If
End If
If m > 1 Then m = 1
If m = 1 And GetAsyncKeyState(vbKeyL) Then
Shape2.Left = Shape2.Left + Slider1.Value * 2
m = 0
End If
End Sub
Private Sub Timer3_Timer()
Static l As Integer
l = l + 1
Me.Caption = "时间" & l & "秒"
If Shape1.Left > 5000 Then
MsgBox "比赛结束,兔子赢!"
Timer3.Interval = 0
End If
If Shape2.Left > 5000 Then
MsgBox "比赛结束,乌龟赢!"
Timer3.Interval = 0
End If
End Sub
⑦ 用JAVA编写一个龟兔赛跑的GUI界面小游戏,其功能说明如下:
用JAVA编写一个龟兔赛跑的GUI界面小游戏,其功能说明如下:
当程序启动后,主窗体上有版两个图片,一幅权乌龟图片,一幅是兔子图片,并列放置在窗体的左边,主窗体下面有两个按钮,一个是【跑】,一个是【退出】
当点击【跑】按钮时,图片就开始往右边移动,谁先移动到右边,就是胜利者,在窗体的标题栏上提示是谁赢。
当点击【退出】按钮时,退出当前程序
⑧ 求VB高手来啊!!!龟兔赛跑小游戏制作
先设置抄全局热键,一个袭timer默认关闭的。
点开始后,timer开始运行,不断检查是否按了全局热键,
按A 或D 时,随机加(如1-5位置)给A用户控制的兔子位置
按← →按键时,随机加(如1-5位置)给B用户控制的乌龟位置
那个位置超过指定位置,显示XX胜利,timer停止。