-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.Designer.cs
135 lines (128 loc) · 6.08 KB
/
Form1.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
namespace T_Rex_Endless_Runner
{
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()
{
this.components = new System.ComponentModel.Container();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.trex = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.textScore = new System.Windows.Forms.Label();
this.gameTimer = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trex)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Black;
this.pictureBox1.Location = new System.Drawing.Point(0, 402);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(800, 50);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// trex
//
this.trex.Image = global::T_Rex_Endless_Runner.Properties.Resources.running1;
this.trex.Location = new System.Drawing.Point(126, 353);
this.trex.Name = "trex";
this.trex.Size = new System.Drawing.Size(40, 43);
this.trex.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.trex.TabIndex = 1;
this.trex.TabStop = false;
//
// pictureBox3
//
this.pictureBox3.Image = global::T_Rex_Endless_Runner.Properties.Resources.obstacle_1;
this.pictureBox3.Location = new System.Drawing.Point(549, 350);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(23, 46);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox3.TabIndex = 2;
this.pictureBox3.TabStop = false;
this.pictureBox3.Tag = "obstacle";
//
// pictureBox4
//
this.pictureBox4.Image = global::T_Rex_Endless_Runner.Properties.Resources.obstacle_2;
this.pictureBox4.Location = new System.Drawing.Point(636, 363);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(32, 33);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox4.TabIndex = 3;
this.pictureBox4.TabStop = false;
this.pictureBox4.Tag = "obstacle";
//
// textScore
//
this.textScore.AutoSize = true;
this.textScore.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textScore.Location = new System.Drawing.Point(12, 9);
this.textScore.Name = "textScore";
this.textScore.Size = new System.Drawing.Size(94, 24);
this.textScore.TabIndex = 4;
this.textScore.Text = "Score:0";
this.textScore.Click += new System.EventHandler(this.label1_Click);
//
// gameTimer
//
this.gameTimer.Interval = 20;
this.gameTimer.Tick += new System.EventHandler(this.mainGameTimerEvent);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.textScore);
this.Controls.Add(this.pictureBox4);
this.Controls.Add(this.pictureBox3);
this.Controls.Add(this.trex);
this.Controls.Add(this.pictureBox1);
this.Name = "Form1";
this.Text = "T-Rex Endless Runner";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.keyisdown);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.keyisup);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.trex)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox trex;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.Label textScore;
private System.Windows.Forms.Timer gameTimer;
}
}