Scena 21

Il soggiorno

Scena 21

In generale

Luogo: Paesi Bassi

Il soggiorno è una delle prime scene del gioco e contiene già alcuni oggetti che puoi usare.

Come vedi, il gioco si svolge da qualche parte tra gli anni ’60 e ’80, quando internet non c’era ancora! Che bei tempi, haha :) Ho scelto di proposito quel periodo, e più avanti nel gioco capirai perché.

Design

Questa è la seconda scena passata dallo schizzo allo stile pixel perfect. La difficoltà principale era rendere corrette le proporzioni e la prospettiva. Tutto si può sempre migliorare, ma per ora con l’illuminazione sembra davvero bella. Ci sono alcune animazioni, come accendere la tv o aprire il rubinetto o il frigorifero.

Schizzo della scena 21

Lo schizzo della scena 21

Ho fatto molta esperienza con la costruzione della scena. Anche l’integrazione con Engine3 funziona bene. Qui sotto un esempio abbreviato.

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