AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.Initialize

Method  -  Static

public static bool Initialize(IRetroBlitGame game)

Parameters

game IRetroBlitGame A RetroBlit Game

Returns

bool

True if successful

Description

Initializes a RetroBlit game. The initialization process will set up RetroBlit internal states, and also call IRetroBlitGame.QueryHardware, followed by IRetroBlitGame.Initialize.

You can call this method multiple times to switch between entirely separate RetroBlit games! Each call to RB.Initialize will clean up the existing game and load a new game. You could also reload the same game to start from a clean state.

As part of initialization RetroBlit will call IRetroBlitGame.QueryHardware, followed by IRetroBlitGame.Initialize.

Example

public class MyGameEntry : MonoBehaviour
{
    private void Awake()
    {
        // Initialize your game!
        // You can call RB.Initialize multiple times to switch between RetroBlit games!
        RB.Initialize(new MyGame());
    }
}

See Also

RB.IRetroBlitGame

See Docs

Features - A Game From Scratch