Module fixes

This commit is contained in:
Maddy Thorson
2021-12-22 16:42:07 -08:00
parent b68ad22764
commit 11732daf5d
5 changed files with 180 additions and 7 deletions

View File

@ -1,6 +1,6 @@
namespace Strawberry.Sample
{
public class MovingJumpThru : OldJumpThru
public class MovingJumpThru : JumpThru
{
private Point moveFrom;
private Point moveTo;

View File

@ -7,11 +7,12 @@ namespace Strawberry.Sample
{
static public int Main(String[] args)
{
let sdl = scope SDL2PlatformLayer();
sdl.TexturesEnableEdgeClamping = true;
let game = scope SampleGame(sdl);
let sdl = scope SDL2PlatformLayer("Strawberry Sample Game!", 320, 180, 3);
sdl.TextureClamping = true;
PlatformLayer = sdl;
Engine.Run(scope SampleGame());
game.Run();
return 0;
}
}

View File

@ -4,8 +4,7 @@ namespace Strawberry.Sample
{
public class SampleGame : Game
{
public this(PlatformLayer platformLayer)
: base(platformLayer, "Strawberry Sample Game!", 320, 180, 3, 1)
protected override void Started()
{
Controls.Init();
Scene = new Level();