74 lines
2.3 KiB
C#
74 lines
2.3 KiB
C#
namespace Spaceshooter
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
player = new PictureBox();
|
|
gameTimer = new System.Windows.Forms.Timer(components);
|
|
((System.ComponentModel.ISupportInitialize)player).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// player
|
|
//
|
|
player.BackColor = Color.OrangeRed;
|
|
player.Location = new Point(33, 135);
|
|
player.Name = "player";
|
|
player.Size = new Size(100, 50);
|
|
player.TabIndex = 0;
|
|
player.TabStop = false;
|
|
player.Click += player_Click;
|
|
//
|
|
// gameTimer
|
|
//
|
|
gameTimer.Enabled = true;
|
|
gameTimer.Interval = 20;
|
|
gameTimer.Tick += gameTimer_Tick;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(player);
|
|
Name = "Form1";
|
|
Text = "Form1";
|
|
Load += Form1_Load;
|
|
KeyDown += Form1_KeyDown;
|
|
KeyUp += Form1_KeyUp;
|
|
((System.ComponentModel.ISupportInitialize)player).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private PictureBox player;
|
|
private System.Windows.Forms.Timer gameTimer;
|
|
}
|
|
}
|