mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2024-11-25 16:18:56 +08:00
CornerCorrection fix
This commit is contained in:
parent
9ee51d2427
commit
ac45b58305
|
@ -77,7 +77,7 @@ namespace Strawberry
|
||||||
SDLImage.Init(.PNG | .JPG);
|
SDLImage.Init(.PNG | .JPG);
|
||||||
SDLMixer.OpenAudio(44100, SDLMixer.MIX_DEFAULT_FORMAT, 2, 4096);
|
SDLMixer.OpenAudio(44100, SDLMixer.MIX_DEFAULT_FORMAT, 2, 4096);
|
||||||
SDLTTF.Init();
|
SDLTTF.Init();
|
||||||
Input.Init(gamepadLimit);
|
Input.[Friend]Init(gamepadLimit);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ~this()
|
public ~this()
|
||||||
|
@ -97,7 +97,7 @@ namespace Strawberry
|
||||||
delete VirtualInputs;
|
delete VirtualInputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
Input.Dispose();
|
Input.[Friend]Dispose();
|
||||||
Game = null;
|
Game = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Strawberry
|
||||||
static private bool[] previousKeyboard;
|
static private bool[] previousKeyboard;
|
||||||
static private SDL.SDL_GameController*[] gamepads;
|
static private SDL.SDL_GameController*[] gamepads;
|
||||||
|
|
||||||
static public void Init(int gamepadLimit)
|
static private void Init(int gamepadLimit)
|
||||||
{
|
{
|
||||||
keyboard = SDL.GetKeyboardState(null);
|
keyboard = SDL.GetKeyboardState(null);
|
||||||
previousKeyboard = new bool[(int)SDL.Scancode.NUMSCANCODES];
|
previousKeyboard = new bool[(int)SDL.Scancode.NUMSCANCODES];
|
||||||
|
@ -20,7 +20,7 @@ namespace Strawberry
|
||||||
gamepads[i] = SDL.GameControllerOpen((int32)i);
|
gamepads[i] = SDL.GameControllerOpen((int32)i);
|
||||||
}
|
}
|
||||||
|
|
||||||
static public void Dispose()
|
static private void Dispose()
|
||||||
{
|
{
|
||||||
delete previousKeyboard;
|
delete previousKeyboard;
|
||||||
delete gamepads;
|
delete gamepads;
|
||||||
|
|
|
@ -210,7 +210,7 @@ namespace Strawberry
|
||||||
else
|
else
|
||||||
checker = scope:: (p) => !Check(Scene, p) && !Check<Solid>(p);
|
checker = scope:: (p) => !Check(Scene, p) && !Check<Solid>(p);
|
||||||
|
|
||||||
for (let i < maxAmount)
|
for (int i = 1; i <= maxAmount; i++)
|
||||||
{
|
{
|
||||||
for (int j = -1; j <= 1; j += 2)
|
for (int j = -1; j <= 1; j += 2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user