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