Description:
Remove leftovers from previous Pong project.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -19,8 +19,6 | |||||
|
19 |
|
19 | ||
|
20 | private SpriteBatch batch; |
|
20 | private SpriteBatch batch; |
|
21 | private Texture2D texture; |
|
21 | private Texture2D texture; |
|
22 | private Texture2D paddle; |
|
||
|
23 | private Texture2D ball; |
|
||
|
24 | private SoundEffect sound; |
|
22 | private SoundEffect sound; |
|
25 | private Song music; |
|
23 | private Song music; |
|
26 | private SpriteFont font; |
|
24 | private SpriteFont font; |
@@ -40,17 +38,9 | |||||
|
40 | private const int width = 1280; |
|
38 | private const int width = 1280; |
|
41 | private const int height = 640; |
|
39 | private const int height = 640; |
|
42 |
|
40 | ||
|
43 |
|
|||
|
44 | private const float friction = 0.1f; |
|
||
|
45 | private const float inputVelocityDelta = friction + 0.1f; |
|
||
|
46 |
|
|||
|
47 |
|
|||
|
48 | private int playerScore = 0; |
|
||
|
49 | private int aiScore = 0; |
|
||
|
50 |
|
|||
|
51 | //new tile stuff |
|
41 | //new tile stuff |
|
52 |
int squaresAcross = |
|
42 | int squaresAcross = 50; |
|
53 |
int squaresDown = |
|
43 | int squaresDown = 50; |
|
54 | int baseOffsetX = -14; |
|
44 | int baseOffsetX = -14; |
|
55 | int baseOffsetY = -14; |
|
45 | int baseOffsetY = -14; |
|
56 |
|
46 | ||
@@ -69,7 +59,7 | |||||
|
69 | int messageIndex; |
|
59 | int messageIndex; |
|
70 |
|
60 | ||
|
71 | //buggy |
|
61 | //buggy |
|
72 |
private static bool enableCulling = |
|
62 | private static bool enableCulling = false; |
|
73 |
|
63 | ||
|
74 | private static void Main(string[] args) |
|
64 | private static void Main(string[] args) |
|
75 | { |
|
65 | { |
@@ -106,8 +96,6 | |||||
|
106 | { |
|
96 | { |
|
107 | cell.hasTree = true; |
|
97 | cell.hasTree = true; |
|
108 | } |
|
98 | } |
|
109 |
|
|||
|
110 |
|
|||
|
111 | } |
|
99 | } |
|
112 | } |
|
100 | } |
|
113 |
|
101 | ||
@@ -116,7 +104,6 | |||||
|
116 |
|
104 | ||
|
117 | Content.RootDirectory = "Content"; |
|
105 | Content.RootDirectory = "Content"; |
|
118 |
|
106 | ||
|
119 |
|
|||
|
120 | } |
|
107 | } |
|
121 |
|
108 | ||
|
122 | protected override void Initialize() |
|
109 | protected override void Initialize() |
@@ -140,17 +127,12 | |||||
|
140 |
|
127 | ||
|
141 | // ... then load a texture from ./Content/FNATexture.png |
|
128 | // ... then load a texture from ./Content/FNATexture.png |
|
142 | texture = Content.Load<Texture2D>("FNATexture"); |
|
129 | texture = Content.Load<Texture2D>("FNATexture"); |
|
143 | paddle = Content.Load<Texture2D>("paddle"); |
|
||
|
144 | ball = Content.Load<Texture2D>("ball"); |
|
||
|
145 | sound = Content.Load<SoundEffect>("FNASound"); |
|
130 | sound = Content.Load<SoundEffect>("FNASound"); |
|
146 | music = Content.Load<Song>("IfImWrong"); |
|
131 | music = Content.Load<Song>("IfImWrong"); |
|
147 | Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset"); |
|
132 | Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset"); |
|
148 |
|
133 | ||
|
149 |
|
|||
|
150 | Line.initialize(GraphicsDevice); |
|
134 | Line.initialize(GraphicsDevice); |
|
151 |
|
135 | ||
|
152 |
|
|||
|
153 |
|
|||
|
154 | var fontBakeResult = TtfFontBaker.Bake(File.OpenRead(@"Content/DroidSans.ttf"), |
|
136 | var fontBakeResult = TtfFontBaker.Bake(File.OpenRead(@"Content/DroidSans.ttf"), |
|
155 | 25, |
|
137 | 25, |
|
156 | 1024, |
|
138 | 1024, |
You need to be logged in to leave comments.
Login now