欢迎来到知识库小白到大牛的进阶之路

当前位置 > vb小游戏代码大全可复制vb小游戏代码大全可复制免费版

  • 求简单的VB小游戏源代码

    求简单的VB小游戏源代码

    rem 窗体创建三个单选框按钮,option1、option2、option3 private sub form_activate() option1.caption = "石头" option2.caption = "剪刀" option3.caption = "布" option1.value = false option2.value = false option3.value = false end sub private sub option1_cli...

    2024-07-23 网络 更多内容 215 ℃ 511
  • 求vb小游戏代码 谢谢

    求vb小游戏代码 谢谢

    直接复制下面代码代码框中后运行程序即可: Option Explicit Private WithEvents Timer1 As Timer Private WithEvents Label1 As Label Dim G... VB.Timer", "Timer1") Set Label1 = Controls.Add("VB.Label", "Label1") Label1.AutoSize = True Label1....

    2024-07-23 网络 更多内容 259 ℃ 589
  • vb小游戏源代码

    vb小游戏源代码

    Rem 窗体创建三个单选框按钮,Option1、Option2、Option3 Private Sub Form_Activate() Option1.Caption = "石头" Option2.Caption = "剪刀" Option3.Caption = "布" Option1.Value = False Option2.Value = False Option3.Value = False End Sub Private Sub Option1_Click() Randomize Se...

    2024-07-23 网络 更多内容 973 ℃ 581
  • vb小游戏源代码

    vb小游戏源代码

    Rem 窗体创建三个单选框按钮,Option1、Option2、Option3 Private Sub Form_Activate() Option1.Caption = "石头" Option2.Caption = "剪刀" Option3.Caption = "布" Option1.Value = False Option2.Value = False Option3.Value = False End Sub Private Sub Option1_Click() Randomize Se...

    2024-07-23 网络 更多内容 924 ℃ 72
  • 求VB弹球小游戏代码

    求VB弹球小游戏代码

    在属性里设置timer的enable为false Dim a, b As Integer Private Sub Command1_Click() Timer.enable = True End Sub Private Sub Command2_Click() Timer.enable = False Unload Me End Sub Private Sub Form_Load() a = 50 b = 50 End Sub Private Sub Timer1_Timer() Shape1.Mo...

    2024-07-23 网络 更多内容 525 ℃ 302
  • 求VB小游戏代码

    求VB小游戏代码

    猜数字 控件: Text1 注意将MultiLine属性修改为True Command1 代码: Private Sub Command1_Click() Randomize Dim Num As Long Dim RightAnswer As Boolean Dim InputNum As Long Text1.Text = "" Num = Int(Rnd * 1000) + 1 RightAnswer = False Text1.Text = T...

    2024-07-23 网络 更多内容 923 ℃ 378
  • 求VB小游戏代码

    求VB小游戏代码

    猜数字 控件: Text1注意将MultiLine属性修改为True Command1 代码: PrivateSubCommand1_Click() Randomize DimNumAsLong DimRightAnswerAsBoolean DimInputNumAsLong Text1.Text="" Num=Int(Rnd*1000)+1 RightAnswer=False Text1.Text=Text1.Text+&quo...

    2024-07-23 网络 更多内容 421 ℃ 483
  • 求VB小游戏代码

    求VB小游戏代码

    x = Int((Form1.Width 300 + 1) * Rnd + 300) y = Int((Form1.Height 1800 + 1) * Rnd + 1000) Load Picture1(n) Picture1(n).Left = x Picture1(n).Top = y Picture1(n).Visible = True n = n + 1 if nn>=200 then timer1.enable=false ''执行语句 end if End Sub 打窗口上随机出现的砖块游戏

    2024-07-23 网络 更多内容 555 ℃ 953
  • 诚征vb小游戏代码

    诚征vb小游戏代码

    Me.FillColor = 255 Me.FillStyle = 0 Me.ScaleWidth = 24 Me.ScaleHeight = 24 Me.WindowState = 2 Set Timer1 = Controls.Add("VB.Timer", "Tim... = 1 HuaTu Exit Sub 2: If MsgBox("游戏结束,点“是”重新开始游戏,点“否”", vbYesNo, "贪吃蛇") = vbYes Then ChuShiHua Else End End If E...

    2024-07-23 网络 更多内容 803 ℃ 845
  • vb程序小游戏的代码问题

    vb程序小游戏的代码问题

    End If End Sub 在Timer事件中根据StopMoving(?)决定是否移动图片 Private Sub Timer1_Timer() Dim img As Image For Each img In Image1 If StopMoving(img.Index) = False Then '在这里添加移动图片的代卖派码 - TOP '在这里添加移动图片的代码 - END End If Next End...

    2024-07-23 网络 更多内容 357 ℃ 547
新的内容
标签列表