資源簡介
用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個文件信息
- 上一篇:CST喇叭天線仿真
- 下一篇:實測 C# USB口 打印機和開錢箱
評論
共有 條評論