• 大小: 177KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: C#
  • 标签: 游戏  

资源简介

用C#开发的一款小游戏,可以实现青蛙在石头上的跳动,是一款智力小游戏。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FORM
{
    public partial class Form1 : Form
    {
        SubForm subform = new SubForm();
        public Form1()
        {
            InitializeComponent();                 
            subform.taskevent += new SubForm.TaskEventHandler(DrawPicture);

        }

        public enum GameState
        {
            yimu
            mingren
            none
        };

         public enum Button_B 
        {
            button_B1 = 1
            button_B2 
            button_B3 
            button_B4 
            button_B5 
            button_B6 
            button_B7 
            button_B_RePlay
        }

        GameState[] gamestate = new GameState[] { GameState.yimu
                                                  GameState.yimu
                                                  GameState.yimu
                                                  GameState.none 
                                                  GameState.mingren 
                                                  GameState.mingren
                                                  GameState.mingren };

        Rectangle[] rectEllipse = {     new Rectangle(50 250 100 50)
                                        new Rectangle(200 250 100 50)
                                        new Rectangle(350 250 100 50)
                                        new Rectangle(500 250 100 50)
                                        new Rectangle(650 250 100 50)
                                        new Rectangle(800 250 100 50)
                                        new Rectangle(950 250 100 50)                             
                                    };     ///定义矩形数组,并且初始化个矩形的位置

        TextureBrush textureBrush1 = new TextureBrush(Image.FromFile(@“C:\Users\bjm\Desktop\FrogJump\移木花道.jpg“));
        TextureBrush textureBrush2 = new TextureBrush(Image.FromFile(@“C:\Users\bjm\Desktop\FrogJump\漩涡鸣人.jpg“));
        SolidBrush brush = new SolidBrush(Color.DarkBlue);
        Rectangle[] rectPicture = {     new Rectangle(50  50 100 200)
                                        new Rectangle(200 50 100 200)
                                        new Rectangle(350 50 100 200)
                                        new Rectangle(500 50 100 200)
                                        new Rectangle(650 50 100 200)
                                        new Rectangle(800 50 100 200)
                                        new Rectangle(950 50 100 200)                             
                                    };     ///定义矩形数组,并且初始化个矩形的位置


        private void Form1_Paint(object sender PaintEventArgs e)
        {

        }

        private void Play_Clic

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-15 17:10  forgjump\
     目录           0  2013-01-15 17:10  forgjump\FORM\
     文件        4068  2012-11-07 21:25  forgjump\FORM\FORM.csproj
     文件        2066  2012-11-07 21:25  forgjump\FORM\Form1.Designer.cs
     文件       18165  2012-11-07 22:39  forgjump\FORM\Form1.cs
     文件        5814  2012-11-07 21:25  forgjump\FORM\Form1.resx
     文件         485  2012-11-07 21:14  forgjump\FORM\Program.cs
     目录           0  2013-01-15 17:10  forgjump\FORM\Properties\
     文件        1340  2012-11-07 21:14  forgjump\FORM\Properties\AssemblyInfo.cs
     文件        2858  2012-11-07 21:14  forgjump\FORM\Properties\Resources.Designer.cs
     文件        5612  2012-11-07 21:14  forgjump\FORM\Properties\Resources.resx
     文件        1089  2012-11-07 21:14  forgjump\FORM\Properties\Settings.Designer.cs
     文件         249  2012-11-07 21:14  forgjump\FORM\Properties\Settings.settings
     文件        5913  2012-11-07 22:34  forgjump\FORM\SubForm.Designer.cs
     文件        1975  2012-11-07 22:34  forgjump\FORM\SubForm.cs
     文件        5814  2012-11-07 22:34  forgjump\FORM\SubForm.resx
     目录           0  2013-01-15 17:10  forgjump\FORM\bin\
     目录           0  2013-01-15 17:10  forgjump\FORM\bin\Debug\
     文件       15872  2012-11-07 22:39  forgjump\FORM\bin\Debug\FORM.exe
     文件       38400  2012-11-07 22:39  forgjump\FORM\bin\Debug\FORM.pdb
     文件       14328  2012-11-07 22:43  forgjump\FORM\bin\Debug\FORM.vshost.exe
     文件         490  2009-06-11 05:14  forgjump\FORM\bin\Debug\FORM.vshost.exe.manifest
     目录           0  2013-01-15 17:10  forgjump\FORM\obj\
     目录           0  2013-01-15 17:10  forgjump\FORM\obj\Debug\
     文件         180  2012-11-07 21:25  forgjump\FORM\obj\Debug\FORM.Form1.resources
     文件         180  2012-11-07 21:25  forgjump\FORM\obj\Debug\FORM.Properties.Resources.resources
     文件         180  2012-11-07 22:34  forgjump\FORM\obj\Debug\FORM.SubForm.resources
     文件         560  2012-11-07 22:43  forgjump\FORM\obj\Debug\FORM.csproj.FileListAbsolute.txt
     文件         907  2012-11-07 22:34  forgjump\FORM\obj\Debug\FORM.csproj.GenerateResource.Cache
     文件       15872  2012-11-07 22:39  forgjump\FORM\obj\Debug\FORM.exe
     文件       38400  2012-11-07 22:39  forgjump\FORM\obj\Debug\FORM.pdb
............此处省略5个文件信息

评论

共有 条评论