mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-07-06 20:45:26 +08:00
PlatformLayer in, except rendering
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user