PlaneGame/main.cs

(开头部分) 39KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace PlaneGame
{
    /// <summary>
    /// 嵌入Web中的ActiveX控件
    /// </summary>
    ///   
    public partial class main : Form
    {
        [DllImport("winmm.dll")]
        public static extern bool PlaySound(string pszSound, int hmod, int fdwSound);
        public const int SND_FILENAME = 0x00020000;
        public const int SND_ASYNC = 0x0001;
        public const int SND_LOOP = 0x0008;
        
        private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;
        //Thread musicSet = new Thread(new ThreadStart(musicStart));     

        Bitmap[] map = new Bitmap[8];
        Bitmap backgroudImg;
        int i = 0;
        int ImgWidth = global::PlaneGame.Properties.Resources.map1.Width;
        int ImgHeight = global::PlaneGame.Properties.Resources.map1.Height;

        Bitmap playerhead = global::PlaneGame.Properties.Resources.cool_0127;
        Bitmap bulletImg = global::PlaneGame.Properties.Resources.EnemyBullet2;

        Bitmap bossimg = global::PlaneGame.Properties.Resources.boss1;
        Bitmap exp = global::PlaneGame.Properties.Resources.flame;

        Random ran = new Random();
       
        int direction = 0;
        int bossfile = 0;
        int BossMoveDealy = 0;

        bool start = false;

        int Scorce = 0; //分数
        int ScorceMax = 99999999; //分数最大值

        //方向
        int up = 0;
        int down = 0;
        int right = 0;
        int left = 0;

        //是否开炮
        bool isfire=false;
        bool isMassile = false;        

后面还有 1048 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。