• 大小: 67KB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2021-05-16
  • 语言: C#
  • 标签: 弹球游戏  源码  C#  

资源简介

简单的弹球游戏,不过没有统计分数,有兴趣的可以自己添加,仅作参考,共同学习,本人也是初学者

资源截图

代码片段和文件信息

// -----------------------------------------------------------------------
// 
// TODO: Update copyright text.
// 
// -----------------------------------------------------------------------

namespace WinFormPinBall
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// 
    /// TODO: Update summary.
    /// 

    public class baffle:Game
    {
        const int kInterval = 10;

        public baffle()
            : base(“QQ图片20141027161400.jpg“)
{
// 
// TODO: Add constructor logic here
//
            Position.X = 200;
            Position.Y = 250;
}

        public void MoveLeft()
        {
            Position.X -= kInterval;
            if (Position.X < 0)
                Position.X = 0;
        }

        public void MoveRight(int nLimit)
        {
            Position.X += kInterval;
            if (Position.X > nLimit - Width )
                Position.X = nLimit - Width;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-10-29 10:41  WinFormPinBall\
     文件        1102  2014-10-28 15:52  WinFormPinBall\baffle.cs
     目录           0  2014-10-27 15:42  WinFormPinBall\bin\
     目录           0  2014-10-28 14:04  WinFormPinBall\bin\Debug\
     文件         906  2014-10-27 16:05  WinFormPinBall\bin\Debug\ball.gif
     文件         855  2014-10-28 14:04  WinFormPinBall\bin\Debug\QQ0425.jpg
     文件        1106  2014-10-28 13:25  WinFormPinBall\bin\Debug\QQ2517.jpg
     文件         842  2014-10-27 16:14  WinFormPinBall\bin\Debug\QQ图片20141027161400.jpg
     文件       14336  2014-11-10 16:46  WinFormPinBall\bin\Debug\WinFormPinBall.exe
     文件       38400  2014-11-10 16:46  WinFormPinBall\bin\Debug\WinFormPinBall.pdb
     文件       11600  2014-11-11 13:55  WinFormPinBall\bin\Debug\WinFormPinBall.vshost.exe
     文件         490  2013-03-19 06:00  WinFormPinBall\bin\Debug\WinFormPinBall.vshost.exe.manifest
     文件        5152  2014-11-11 13:56  WinFormPinBall\Form1.cs
     文件         945  2014-10-28 13:36  WinFormPinBall\Form1.Designer.cs
     文件        5817  2014-10-28 13:36  WinFormPinBall\Form1.resx
     文件        1963  2014-10-28 13:19  WinFormPinBall\Game.cs
     目录           0  2014-10-27 15:42  WinFormPinBall\obj\
     目录           0  2014-10-27 15:42  WinFormPinBall\obj\x86\
     目录           0  2014-11-10 16:46  WinFormPinBall\obj\x86\Debug\
     文件        5420  2014-10-28 09:53  WinFormPinBall\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6710  2014-11-10 16:46  WinFormPinBall\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2014-10-27 16:14  WinFormPinBall\obj\x86\Debug\TempPE\
     文件        5120  2014-10-27 16:14  WinFormPinBall\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         914  2014-11-11 13:55  WinFormPinBall\obj\x86\Debug\WinFormPinBall.csproj.FileListAbsolute.txt
     文件        1069  2014-10-28 13:36  WinFormPinBall\obj\x86\Debug\WinFormPinBall.csproj.GenerateResource.Cache
     文件        9214  2014-11-10 16:45  WinFormPinBall\obj\x86\Debug\WinFormPinBall.csprojResolveAssemblyReference.cache
     文件       14336  2014-11-10 16:46  WinFormPinBall\obj\x86\Debug\WinFormPinBall.exe
     文件         180  2014-10-28 13:36  WinFormPinBall\obj\x86\Debug\WinFormPinBall.Form1.resources
     文件       38400  2014-11-10 16:46  WinFormPinBall\obj\x86\Debug\WinFormPinBall.pdb
     文件        2447  2014-10-28 13:29  WinFormPinBall\obj\x86\Debug\WinFormPinBall.Properties.Resources.resources
     文件        1149  2014-10-28 15:45  WinFormPinBall\PinBall.cs
............此处省略15个文件信息

评论

共有 条评论