Skip to content

Commit 631a86f

Browse files
committed
little fixes before release
1 parent 0109712 commit 631a86f

File tree

8 files changed

+40
-14
lines changed

8 files changed

+40
-14
lines changed

Samples/BasicInterpreter/Executor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Collections;
77
using ClassicBasic.Interpreter;
88

9-
namespace Game
9+
namespace BasicTerminal
1010
{
1111
/// <summary>
1212
/// Executes the code.

Samples/BasicInterpreter/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using SadRogue.Primitives;
55
using Console = SadConsole.Console;
66

7-
namespace Game
7+
namespace BasicTerminal
88
{
99
internal class Program
1010
{

Samples/BasicInterpreter/Teletype.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using SadConsole.Input;
88
using SadRogue.Primitives;
99

10-
namespace Game
10+
namespace BasicTerminal
1111
{
1212
class ConsoleBASICInterpreter : SadConsole.Components.IComponent, ITeletype, ITeletypeWithPosition
1313
{

Samples/ThemeEditor/ThemeEditor.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<PropertyGroup>
99
<GameHost>monogame</GameHost>
10-
<UseProjectReferences>true</UseProjectReferences>
10+
<UseProjectReferences>false</UseProjectReferences>
1111

1212
<DefineConstants Condition=" '$(GameHost)' == 'sfml' ">$(DefineConstants);SFML</DefineConstants>
1313
<DefineConstants Condition=" '$(GameHost)' == 'monogame' ">$(DefineConstants);MONOGAME</DefineConstants>
@@ -16,19 +16,19 @@
1616

1717
<ItemGroup Condition=" '$(GameHost)' == 'monogame' ">
1818
<ProjectReference Condition=" '$(UseProjectReferences)' == 'true' " Include="..\..\SadConsole.Host.MonoGame\SadConsole.Host.MonoGame.csproj" />
19-
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Host.MonoGame" Version="9.0.0-beta3" />
19+
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Host.MonoGame" Version="9.0.0" />
2020
</ItemGroup>
2121

2222
<ItemGroup Condition=" '$(GameHost)' == 'sfml' ">
2323
<ProjectReference Condition=" '$(UseProjectReferences)' == 'true' " Include="..\..\SadConsole.Host.SFML\SadConsole.Host.SFML.csproj" />
24-
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Host.SFML" Version="9.0.0-beta3" />
24+
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Host.SFML" Version="9.0.0" />
2525
</ItemGroup>
2626

2727
<ItemGroup>
2828
<ProjectReference Condition=" '$(UseProjectReferences)' == 'true' " Include="..\..\SadConsole\SadConsole.csproj" />
29-
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole" Version="9.0.0-beta3" />
29+
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole" Version="9.0.0" />
3030
<ProjectReference Condition=" '$(UseProjectReferences)' == 'true' " Include="..\..\SadConsole.Extended\SadConsole.Extended.csproj" />
31-
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Extended" Version="9.0.0-beta3" />
31+
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole.Extended" Version="9.0.0" />
3232
<PackageReference Include="ColorMineStandard" Version="1.0.0" />
3333
</ItemGroup>
3434

templates/template_code/SadConsole.Project.MonoGame.CSharp/.template.config/template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
],
1010
"identity": "SadConsole.Project.MonoGame.CSharp",
1111
"groupIdentity":"SadConsole.Project.MonoGame",
12-
"name": "SadConsole Game for MonoGame",
13-
"shortName": "scgame-monogame",
12+
"name": "SadConsole Game (MonoGame)",
13+
"shortName": "sadconsole-mg",
1414
"preferNameDirectory": true,
1515
"tags": {
1616
"language": "C#",

templates/template_code/SadConsole.Project.MonoGame.CSharp/Program.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,19 @@ private static void Main(string[] args)
2323

2424
private static void Init()
2525
{
26-
var console = new Console(Game.Instance.ScreenCellsX, Game.Instance.ScreenCellsY);
26+
// This code uses the default console created for you at start
27+
var startingConsole = Game.Instance.StartingConsole;
28+
29+
startingConsole.FillWithRandomGarbage(SadConsole.Game.Instance.StartingConsole.Font);
30+
startingConsole.Fill(new Rectangle(3, 3, 23, 3), Color.Violet, Color.Black, 0, Mirror.None);
31+
startingConsole.Print(4, 4, "Hello from SadConsole");
32+
33+
// --------------------------------------------------------------
34+
// This code replaces the default starting console with your own.
35+
// If you use this code, delete the code above.
36+
// --------------------------------------------------------------
37+
/*
38+
var console = new Console(Game.Instance.ScreenCellsX, SadConsole.Game.Instance.ScreenCellsY);
2739
console.FillWithRandomGarbage(console.Font);
2840
console.Fill(new Rectangle(3, 3, 23, 3), Color.Violet, Color.Black, 0, 0);
2941
console.Print(4, 4, "Hello from SadConsole");
@@ -32,6 +44,7 @@ private static void Init()
3244
3345
// This is needed because we replaced the initial screen object with our own.
3446
Game.Instance.DestroyDefaultStartingConsole();
47+
*/
3548
}
3649
}
3750
}

templates/template_code/SadConsole.Project.SFML.CSharp/.template.config/template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
],
1010
"identity": "SadConsole.Project.SFML.CSharp",
1111
"groupIdentity":"SadConsole.Project.SFML",
12-
"name": "SadConsole Game for SFML",
13-
"shortName": "scgame-sfml",
12+
"name": "SadConsole Game (SFML)",
13+
"shortName": "sadconsole-sfml",
1414
"preferNameDirectory": true,
1515
"tags": {
1616
"language": "C#",

templates/template_code/SadConsole.Project.SFML.CSharp/Program.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,19 @@ private static void Main(string[] args)
2323

2424
private static void Init()
2525
{
26-
var console = new Console(Game.Instance.ScreenCellsX, Game.Instance.ScreenCellsY);
26+
// This code uses the default console created for you at start
27+
var startingConsole = Game.Instance.StartingConsole;
28+
29+
startingConsole.FillWithRandomGarbage(SadConsole.Game.Instance.StartingConsole.Font);
30+
startingConsole.Fill(new Rectangle(3, 3, 23, 3), Color.Violet, Color.Black, 0, Mirror.None);
31+
startingConsole.Print(4, 4, "Hello from SadConsole");
32+
33+
// --------------------------------------------------------------
34+
// This code replaces the default starting console with your own.
35+
// If you use this code, delete the code above.
36+
// --------------------------------------------------------------
37+
/*
38+
var console = new Console(Game.Instance.ScreenCellsX, SadConsole.Game.Instance.ScreenCellsY);
2739
console.FillWithRandomGarbage(console.Font);
2840
console.Fill(new Rectangle(3, 3, 23, 3), Color.Violet, Color.Black, 0, 0);
2941
console.Print(4, 4, "Hello from SadConsole");
@@ -32,6 +44,7 @@ private static void Init()
3244
3345
// This is needed because we replaced the initial screen object with our own.
3446
Game.Instance.DestroyDefaultStartingConsole();
47+
*/
3548
}
3649
}
3750
}

0 commit comments

Comments
 (0)