场景21

客厅

场景21

概况

地点:荷兰

客厅是游戏最早的场景之一,一开始就有几件可以使用的物品。

如你所见,游戏发生在六十年代到八十年代之间的某个时候,那时还没有互联网!那是段美好的时光,哈哈 :) 我是特意选了这个年代,原因会在游戏后面慢慢揭晓。

设计

这是第二个从草图转成像素完美风格的场景。难点主要在于把比例和透视做对。 任何东西都可以做得更好,但目前加上光照之后看起来已经非常不错了。场景里有一些动画,比如打开电视、打开水龙头或冰箱。

场景21草图

场景21的草图

搭建这个场景让我积累了很多经验。与 Engine3 的集成也运行良好。 下面是一个简化的示例。

framesets:
  animation/20059: # tv
    framesetArguments:
      x: 224
      y: 91
      zindexType: above # put on top of the given zindexStatic after processing
      zindexStatic: 44
    # audiosetArguments:
    #   audiosetType: *audioset-type-loop
    #   loopDelay: 0
    class: *class-animation
    ukey: *tv
    clickable: true
    animationKey: 1
    animationStatus: *animation-pause
  #  audioset: assets/audio/20055/audio.mp
  item/20058: # plant
    framesetArguments:
      x: 178
      y: 70
      zindexType: above # put on top of the given zindexStatic after processing
      zindexStatic: 46
    class: *class-item
    ukey: *plant-21
    clickable: true
  item/20057: # cooking-pot
    framesetArguments:
      x: 404
      y: 66
      zindexType: above # put on top of the given zindexStatic after processing
      zindexStatic: 45
    class: *class-item
    ukey: *cooking-pot
    clickable: true
# HOVER
# ==================================================
*action-hover:
  *newspaper: newspaper
  *books-21: books
  *door-21: door
  *fridge: fridge
  *faucet: faucet
  *hotspot-21-stairs: Go upstairs
  *cooking-pot: cooking pot
  *plant-21: plant
  *tv: tv

# SCENE GLOBAL USE
# ==================================================
*action-use:
  *tv:
    - <<: *walk
      id: 210054
      target:
        x: 263
        y: 148
        framesetIndex: *move-up # force actor to frameset up, head to towards the tv
    - <<: *animation
      id: 210056
      ukey: *tv
      animationStatus: *animation-toggle
      animationKeys: [2,3,4]
      animationType: *animation-type-loop
      dontWaitForCallback: true