aritmetics
This commit is contained in:
Binary file not shown.
@@ -15,6 +15,10 @@ fn frame() -> void
|
||||
{
|
||||
total += 5;
|
||||
}
|
||||
else if (Input.pad().x().pressed())
|
||||
{
|
||||
total -= 10;
|
||||
}
|
||||
|
||||
if (total == 30)
|
||||
{
|
||||
@@ -24,7 +28,7 @@ fn frame() -> void
|
||||
{
|
||||
Log.error("50 is the magic number!");
|
||||
}
|
||||
else
|
||||
else if (total == 15)
|
||||
{
|
||||
Log.warn("The magic number is neither 30 nor 50!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user