Highlight color adjustments
This commit is contained in:
@@ -15,6 +15,8 @@ declare global camera_mult: int = 1;
|
||||
declare const MAX_FRAMES: int = 4;
|
||||
declare const CAMERA_SPEED: int = 1;
|
||||
|
||||
declare struct Bla (a: int) {}
|
||||
|
||||
[Init]
|
||||
fn init() -> void
|
||||
{
|
||||
@@ -25,6 +27,7 @@ fn init() -> void
|
||||
camera_x = 0;
|
||||
camera_mult = 1;
|
||||
Composer.bind_scene(0);
|
||||
let bla: Bla = new Bla(1);
|
||||
}
|
||||
|
||||
[Frame]
|
||||
@@ -55,9 +58,8 @@ fn frame() -> void
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
let touch : InputTouch = Input.touch();
|
||||
let pad : InputPad = Input.pad();
|
||||
|
||||
if (touch.button().released())
|
||||
{
|
||||
@@ -93,15 +95,15 @@ fn frame() -> void
|
||||
let b : int = 15;
|
||||
let total : int = a + b;
|
||||
|
||||
if (Input.pad().a().pressed())
|
||||
if (pad.a().pressed())
|
||||
{
|
||||
total += 25;
|
||||
}
|
||||
else if (Input.pad().b().pressed())
|
||||
else if (pad.b().pressed())
|
||||
{
|
||||
total += 5;
|
||||
}
|
||||
else if (Input.pad().x().pressed())
|
||||
else if (pad.x().pressed())
|
||||
{
|
||||
total -= 10;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user