Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {info}
- BG_MUSIC_ID = 1
- STAGE_LENGTH = 1000
- STAGE_WIDTH = 1000
- STAGE_HEIGHT = 1000
- BACKGROUND_COLOR = 0, 0, 0 #black
- [img]
- tile[dir = "bg1/tiles/ground.png"] #0
- tile[dir = "bg1/tiles/sky.png"] #1
- sheet[dir="bg1/clouds.png" w=200 h=100 col=2 row=1] #2
- [/img]
- [mdl]
- obj[dir = "bg1/objects/tree_model.obj" scale = 2]
- [/mdl]
- [camera]
- cam[
- # id for objects to access the camera
- id = 0 # 0 is the default camera which view's rendered to screen
- # initial camera settings
- init_position = 30, 30, 30
- look_at = 30, 30, 100
- top_direction = 0, 1, 0
- # camera movement in space
- x_acc = 10
- y_acc = 10
- z_acc = 10
- r_acc = 10
- max_x_vel = 30
- max_y_vel = 30
- max_z_vel = 30
- max_r_vel = 30
- max_x_position = 1000
- min_x_position = -20
- max_y_position = 1000
- min_y_position = -20
- max_z_position = 1000
- min_z_position = -20
- # camera rotation in space
- max_x_angle = 30
- max_y_angle = 30
- max_r_angle = 30
- rotation_x_vel = 10
- rotation_y_vel = 10
- rotation_r_vel = 10
- angular_x_acc = 1
- angular_y_acc = 1
- angular_r_acc = 1
- max_x_angular_vel = 2
- max_y_angular_vel = 2
- max_r_angular_vel = 2
- # camera zooming settings
- init_zoom_scale = 1
- zoom_acc = 0.05
- max_zoom_vel = 0.2
- max_zoom_scale = 2
- min_zoom_scale = 0.5
- ]
- [/camera]
- {/info}
- [directional_light] # yellowish sun light
- position = 0, 1000, 0 ambient_color=120,120,120 diffuse_color=180,180,180 specular_color=255,255,255 direction_vector=1,-1,0 #down-right direction
- [/directional_light]
- [entity] # ground
- img = 0 position = -10,0,-20 x_repeat = 50 y_repeat = 50
- set_transformation[rotate_angle=90 rotate_vector=1,0,0] # rotate on the x-axis; in the z-axis
- [/entity]
- [entity] # sky
- img = 1 position = -10,-2000,-50 x_repeat = 50 y_repeat = 50 x_parallax_factor=0 y_parallax_factor=0 z_parallax_factor=0 #won't move with the camera
- [/entity]
- # 10 trees which appears in random positions in the stage
- [entity] # trees
- mdl = 0 position = 10, 0, -200 z_offset = &random{-50, 50} x_offset = &random{-50, 50} x_recreation_interval = 500 max_entities = 10
- set_transformation[rotate_angle=&random{0, 360} rotate_vector=0,1,0]
- [/entity]
- # 3 clouds at a time, once they pass the screen, a new one comes from teh side
- [entity] # clouds
- img = &random{0,1},2 position = -100,500,-1 y_offset=&random{-60, 60} x_offset=&random{-40, 40} x_parallax_factor=0.2 y_parallax_factor = 0.1 z_parallax_factor=0.07
- x_recreation_interval=400 max_entities = 3 x_vel=10 restart_x_position_distance=1200
- [/entity]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement