Commit d76ff3b2 authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

Upload New File

parent 94123bc1
E = 0
SE = 1
SW = 2
W = 3
NW = 4
NE = 5
S = 6 # S for stop and not south
import random
direction = [E, SE, SW, W, NW, NE]
n=50
def create_world(world):
i = 1
while i <= n :
# x=random.randint(-world. get_world_x_size()/2,world. get_world_x_size()/2)
# y=random.randint(- world. get_world_y_size()/2, world. get_world_y_size()/2 )
x=random.randint(-50, 50)
y=random.randint(-10,10 )
world.add_tile(x, y)
i+=1
world.add_particle(0,0)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment