PlatformLayer in, except rendering

This commit is contained in:
Matt Thorson
2020-08-03 19:09:45 -07:00
parent d736ded07e
commit 823656d8e5
14 changed files with 554 additions and 163 deletions

View File

@ -6,7 +6,8 @@ namespace Strawberry.Sample
{
static public int Main(String[] args)
{
let game = scope SampleGame();
SDL2PlatformLayer sdl = scope SDL2PlatformLayer();
let game = scope SampleGame(sdl);
game.Run();
return 0;
}

View File

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