1
0

Implement RANDOMIZE

This commit is contained in:
otya128
2017-07-03 18:40:27 +09:00
parent ffb4b6e685
commit 3edc2a4d10
4 changed files with 50 additions and 7 deletions

View File

@@ -21,6 +21,7 @@ import otya.smilebasic.console;
import otya.smilebasic.graphic;
import otya.smilebasic.dialog;
import otya.smilebasic.program;
import otya.smilebasic.random;
const static rot_test_deg = 45f;
const static rot_test_x = 0f;
const static rot_test_y = 1f;
@@ -275,6 +276,7 @@ class PetitComputer
Projects project;
void init()
{
random = new Random();
project = new Projects(".");
// DerelictGL.load();
if(!exists(resourcePath))
@@ -1752,4 +1754,5 @@ class PetitComputer
{
return a << 24 | r << 16 | g << 8 | b;
}
public Random random;
}