Advertisement
zergon321

scene

Aug 28th, 2021
1,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.59 KB | None | 0 0
  1. resource_files:
  2.  - bossfight.res
  3.  
  4. modules:
  5.  - bossfight
  6.  
  7. preload_animations:
  8.   - resource_file: bossfight.res
  9.     name: death-explosion
  10.   - resource_file: bossfight.res
  11.     name: electro-bullet-explosion
  12.   - resource_file: bossfight.res
  13.     name: dark-bullet-explosion
  14.   - resource_file: bossfight.res
  15.     name: blood-bullet-explosion
  16.   - resource_file: bossfight.res
  17.     name: dark-blue-bullet-explosion
  18.   - resource_file: bossfight.res
  19.     name: tiny-bullet-explosion
  20.   - resource_file: bossfight.res
  21.     name: boss-explosion
  22.  
  23. preload_sprites:
  24.   - resource_file: bossfight.res
  25.     name: spellcard-prisoners-nightmare-background
  26.  
  27. preload_audio:
  28.   - resource_file: bossfight.res
  29.     name: flandre
  30.  
  31. preload_fonts:
  32.   - resource_file: bossfight.res
  33.     name: evil-empire
  34.  
  35. text_atlases:
  36.   - font_name: evil-empire
  37.     resource_file: bossfight.res
  38.     size: 35
  39.     glyph_cache_entries: 1
  40.     name: health-bombs
  41.  
  42. batches:
  43.   - name: player-bullets
  44.     resource_file: bossfight.res
  45.     spritesheet: cirno-shot
  46.     z_sort: 0
  47.   - name: boss-bullets
  48.     resource_file: bossfight.res
  49.     spritesheet: projectiles
  50.     z_sort: 1
  51.  
  52. canvases:
  53.   - name: background-canvas
  54.     width: $screen_width
  55.     height: $screen_height
  56.     center_x: $screen_width / 2
  57.     center_y: $screen_height / 2
  58.     z_sort: -2
  59.   - name: character-canvas
  60.     width: $screen_width
  61.     height: $screen_height
  62.     center_x: $screen_width / 2
  63.     center_y: $screen_height / 2
  64.     z_sort: -1
  65.   - name: gui-canvas
  66.     width: $screen_width
  67.     height: $screen_height
  68.     center_x: $screen_width / 2
  69.     center_y: $screen_height / 2
  70.     z_sort: 2
  71.  
  72. game_objects:
  73.   - name: cirno-player
  74.     transform:
  75.       x: $screen_with / 2
  76.       y: 200
  77.       scale_x: 2
  78.       scale_y: 2
  79.       rot_angle: 0
  80.     z_update: 0
  81.     z_draw: 0
  82.     draw_target: character-canvas
  83.     draw: true
  84.     components:
  85.       - name: player-hitbox
  86.         type: player.Hitbox
  87.         args:
  88.           pos: V($screen_width / 2, 200)
  89.           radius: 4
  90.         active: true
  91.       - name: player-grazebox
  92.         type: player.Grazebox
  93.         args:
  94.           pos: V($screen_width / 2, 200)
  95.           radius: 50
  96.         active: true
  97.       - name: player-health
  98.         type: player.Health
  99.         args:
  100.           max_hp: 5
  101.         active: true
  102.       - name: cirno-player-animator
  103.         type: ^Animator
  104.         args:
  105.           anim_list:
  106.            - cirno-player-idle
  107.             - cirno-player-turn-left
  108.             - cirno-player-move-left
  109.             - cirno-player-turn-right
  110.             - cirno-player-move-right
  111.           resource_file: bossfight.res
  112.         active: true
  113.       - name: motion-control
  114.         type: player.MotionControl
  115.         args:
  116.           unfocus_speed: 800
  117.           focus_speed: 200
  118.         active: true
  119.       - name: player-shooter
  120.         type: player.Shooter
  121.         args:
  122.           picture: cirno-shot
  123.           resource_file: bossfight.res
  124.           speed: 1500
  125.           damage: 2
  126.           direction: $up
  127.           draw_target: player-bullets
  128.           cooldown: 100ms
  129.         active: true
  130.       - name: player-collider
  131.         type: player.Collider
  132.         args:
  133.           pos: V($screen_width / 2, 200)
  134.           width: 30
  135.           height: 60
  136.           approx_intensity: 100
  137.         active: true
  138.   - name: nue
  139.     transform:
  140.       x: $screen_width / 2
  141.       y: $screen_height - 200
  142.       scale_x: 2
  143.       scale_y: 2
  144.       rot_angle: 0
  145.     z_update: 1
  146.     z_draw: 1
  147.     draw_target: character-canvas
  148.     draw: true
  149.     components:
  150.       - name: nue-animator
  151.         type: ^Animator
  152.         args:
  153.           anim_list:
  154.            - nue-idle
  155.             - nue-turn-left
  156.             - nue-move-left
  157.             - nue-turn-right
  158.             - nue-move-right
  159.           resource_file: bossfight.res
  160.         active: true
  161.       - name: boss-health
  162.         type: boss.Health
  163.         args:
  164.           current_hp: 800
  165.           max_hp: 800
  166.         active: true
  167.       - name: boss-hitbox
  168.         type: boss.Hitbox
  169.         args:
  170.           radius: 80
  171.         active: true
  172.       - name: boss-nonspell
  173.         type: boss.NonspellCircles
  174.         args:
  175.           bullet_pic: projectiles
  176.           resource_file: bossfight.res
  177.           positions:
  178.            - V(500, 950)
  179.             - V(980, 950)
  180.             - V(1500, 850)
  181.           cooldown: 980ms
  182.           bullet_speed: 120
  183.           bullet_angle_speed: 150 * $deg_to_rad
  184.         active: true
  185.   - name: north-border
  186.     z_update: 2
  187.     z_draw: 2
  188.     components:
  189.       - name: border-collider
  190.         type: borders.BorderCollider
  191.         args:
  192.           a: V(530, 1030)
  193.           b: V(1370, 1030)
  194.         active: true
  195.   - name: south-border
  196.     z_update: 2
  197.     z_draw: 2
  198.     components:
  199.       - name: border-collider
  200.         type: borders.BorderCollider
  201.         args:
  202.           a: V(530, 50)
  203.           b: V(1370, 50)
  204.         active: true
  205.   - name: west-border
  206.     z_update: 2
  207.     z_draw: 2
  208.     components:
  209.       - name: border-collider
  210.         type: borders.BorderCollider
  211.         args:
  212.           a: V(530, 50)
  213.           b: V(530, 1030)
  214.         active: true
  215.   - name: east-border
  216.     z_update: 2
  217.     z_sraw: 2
  218.     components:
  219.       - name: border-collider
  220.         type: borders.BorderCollider
  221.         args:
  222.           a: V(1370, 50)
  223.           b: V(1370, 1030)
  224.         active: true
  225.   - name: player-hitbox-gui
  226.     transform:
  227.       x: $screen_width / 2
  228.       y: 200
  229.       scale_x: 0.5
  230.       scale_y: 0.5
  231.       rot_angle: 0
  232.       parent: cirno-player
  233.     z_update: 2
  234.     z_draw: 0
  235.     draw_target: gui-canvas
  236.     sprite:
  237.       resource_file: bossfight.res
  238.       picture: player-hitbox
  239.   - name: panel-gui
  240.     transform:
  241.       x: $screen_width / 2
  242.       y: $screen_height / 2
  243.       scale_x: 1
  244.       scale_y: 1
  245.       rot_angle: 0
  246.     z_update: 2
  247.     z_draw: 1
  248.     draw_target: gui-canvas
  249.     draw: true
  250.     sprite:
  251.       resource_file: bossfight.res
  252.       picture: panel
  253.   - name: background-gui
  254.     transform:
  255.       x: $screen_width / 2
  256.       y: $screen_height / 2
  257.       scale_x: 1
  258.       scale_y: 1
  259.       rot_angle: 0
  260.     z_update: 2
  261.     z_draw: 1
  262.     draw_target: background-canvas
  263.     draw: true
  264.     sprite:
  265.       resource_file: bossfight.res
  266.       picture: background
  267.   - name: spellcard-background-gui
  268.     transform:
  269.       x: $screen_width / 2
  270.       y: $screen_height / 2
  271.       scale_x: 1
  272.       scale_y: 1
  273.       rot_angle: 0
  274.     z_update: 2
  275.     z_draw: 2
  276.     draw_target: background-canvas
  277.     sprite:
  278.       resource_file: bossfight.res
  279.       picture: background
  280.     color_mask: RGBA(0, 0, 0, 0)
  281.   - name: boss-health-bar-frame
  282.     transform:
  283.       x: 950
  284.       y: 1000
  285.       scale_x: 1
  286.       scale_y: 0.5
  287.       rot_angle: 0
  288.     z_update: 2
  289.     z_draw: 3
  290.     draw_target: gui-canvas
  291.     draw: true
  292.     sprite:
  293.       resource_file: bossfight.res
  294.       picture: boss-health-bar-frame
  295.   - name: boss-health-bar
  296.     transform:
  297.       x: 950
  298.       y: 1000
  299.       scale_x: 1
  300.       scale_y: 0.5
  301.       rot_angle: 0
  302.     z_update: 2
  303.     z_draw: 3
  304.     draw_target: gui-canvas
  305.     draw: true
  306.     components:
  307.       - name: health-bar-updater
  308.         type: gui.BossHealthBarUpdater
  309.         args:
  310.           picture: boss-health-bar
  311.           resource_file: bossfight.res
  312.         active: true
  313.     sprite:
  314.       resource_file: bossfight.res
  315.       picture: boss-health-bar
  316.   - name: theme-player
  317.     z_update: 4
  318.     components:
  319.       - name: theme-player
  320.         type: ^AudioSource
  321.         args:
  322.           audio: flandre
  323.           resource_file: bossfight.res
  324.         active: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement