Skip to content

Commit e41f26a

Browse files
committed
Added & Updated CaveGenerator.cs
1 parent 2cf7a7a commit e41f26a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Examples/CaveGenerator.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
using System.Threading.Tasks;
66
using ConsoleGameEngine;
77

8-
namespace CaveGenerator {
9-
class Program : ConsoleGame {
8+
namespace ConsoleGameEngineExamples {
9+
class CaveGenerator : ConsoleGame {
1010
static void Main(string[] args) {
11-
new Program().Construct(size.X, size.Y + 1, 8, 8, FramerateMode.Unlimited);
11+
new CaveGenerator().Construct(size.X, size.Y + 1, 8, 8, FramerateMode.Unlimited);
1212
}
1313

1414
static Point size = new Point(96, 64);
@@ -74,10 +74,10 @@ public override void Render() {
7474
Engine.WriteText(new Point(55, size.Y), $"MN: {min}", 8);
7575

7676
switch (sel) {
77-
case 0: Engine.WriteText(new Point(32, size.Y), $"RFP: {rfp}", 15); break;
78-
case 1: Engine.WriteText(new Point(41, size.Y), $"S: {scount}", 15); break;
79-
case 2: Engine.WriteText(new Point(48, size.Y), $"MX: {max}", 15); break;
80-
case 3: Engine.WriteText(new Point(55, size.Y), $"MN: {min}", 15); break;
77+
case 0: Engine.WriteText(new Point(32, size.Y), $"RFP: {rfp}", 12); break;
78+
case 1: Engine.WriteText(new Point(41, size.Y), $"S: {scount}", 12); break;
79+
case 2: Engine.WriteText(new Point(48, size.Y), $"MX: {max}", 12); break;
80+
case 3: Engine.WriteText(new Point(55, size.Y), $"MN: {min}", 12); break;
8181

8282
}
8383

Examples/ConsoleGameEngineExamples.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<WarningLevel>4</WarningLevel>
3434
</PropertyGroup>
3535
<PropertyGroup>
36-
<StartupObject>ConsoleGameEngineExamples.Tetris</StartupObject>
36+
<StartupObject>ConsoleGameEngineExamples.CaveGenerator</StartupObject>
3737
</PropertyGroup>
3838
<ItemGroup>
3939
<Reference Include="ConsoleGameEngine, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
@@ -50,6 +50,7 @@
5050
<Reference Include="System.Xml" />
5151
</ItemGroup>
5252
<ItemGroup>
53+
<Compile Include="CaveGenerator.cs" />
5354
<Compile Include="Example_HelloWorld.cs" />
5455
<Compile Include="Example_3D.cs" />
5556
<Compile Include="Properties\AssemblyInfo.cs" />

0 commit comments

Comments
 (0)