diff --git a/objects/obj_asteriod.object.gmx b/objects/obj_asteriod.object.gmx index 5875e01..f7a1875 100644 --- a/objects/obj_asteriod.object.gmx +++ b/objects/obj_asteriod.object.gmx @@ -25,7 +25,9 @@ 1 - var angle = random_range(0,180); + image_speed = 0; +image_index = random_range(0,1); +var angle = random_range(0,180); direction = angle; image_angle = angle; diff --git a/objects/obj_controller_world_gen.object.gmx b/objects/obj_controller_world_gen.object.gmx index c157ec2..d9c4f90 100644 --- a/objects/obj_controller_world_gen.object.gmx +++ b/objects/obj_controller_world_gen.object.gmx @@ -28,19 +28,6 @@ generated_count = 0; generated_areas[10000] = 0; -///Generate World - - -var startx = view_xview[0]; -var starty = view_yview[0] -var xmax = startx + view_wview[0]; -var ymax = starty + view_hview[0]; - -xmax = xmax - (xmax % 32); -ymax = ymax - (ymax % 32); - -startx = startx - (startx % 32); -starty = starty - (starty % 32); diff --git a/scripts/generate_world.gml b/scripts/generate_world.gml index ed04381..a319a0c 100644 --- a/scripts/generate_world.gml +++ b/scripts/generate_world.gml @@ -1,3 +1,17 @@ +///Generate World + + +var startx = view_xview[0]; +var starty = view_yview[0] +var xmax = startx + view_wview[0]; +var ymax = starty + view_hview[0]; + +xmax = xmax - (xmax % 32); +ymax = ymax - (ymax % 32); + +startx = startx - (startx % 32); +starty = starty - (starty % 32); + for(var xx = startx; xx < xmax;xx+=32) {