Meegu_Run/Run.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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;
using Meegu_Run_Class;
using Meegu_Run_Class.Hook;
namespace Meegu_Run
{
public partial class Run : Form
{
public Run()
{
InitializeComponent();
}
int Game_Time;
KeyBoardHook KeyHook = new KeyBoardHook();
private void Run_Load(object sender, EventArgs e)
{
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
Init();
}
private void Init()
{
KeyHook.KeyDown += new KeyEventHandler(KeyHook_KeyDown);
KeyHook.Start();
this.Road1.Death_Event += new EventHandler(Death);
this.Road2.Death_Event += new EventHandler(Death);
this.Road1.Goal_Event += new EventHandler(Goal);
this.Road2.Goal_Event += new EventHandler(Goal);
}
public void KeyHook_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.NumPad1 || e.KeyCode == Keys.D1 || e.KeyCode == Keys.Up)
{
this.Road1.Jump();
}
if (e.KeyCode == Keys.NumPad2 || e.KeyCode == Keys.D2 || e.KeyCode == Keys.Up)
{
this.Road2.Jump();
}
else if (e.KeyCode == Keys.Left)
{
this.Road1.Man_Left -= 10;
this.Road2.Man_Left -= 10;
}
else if (e.KeyCode == Keys.Right)
{
this.Road1.Man_Left += 10;
this.Road2.Man_Left += 10;
}
}
后面还有 73 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。