Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutscene Manager 🎥 #195

Open
bitbrain opened this issue May 25, 2019 · 0 comments
Open

Cutscene Manager 🎥 #195

bitbrain opened this issue May 25, 2019 · 0 comments

Comments

@bitbrain
Copy link
Owner

bitbrain commented May 25, 2019

Motivation

Cut scenes give your game that special extra. Especially during game jams this can be a big surprise if your game suddenly has some story to reveal.

This feature is highly inspired by the map editor of Wargroove.

Goals

  • register events which then get executed on a timeline
  • the timeline itself can be paused, reset or played again or moved to a particular time

Design

todo

Example cutscene file

[
  {
    "action": "show-text",
    "config": {
      "duration": "3.0",
      "fadeDuration": "0.5",
      "align": "center",
      "fontPath": "fonts/test.ttf",
      "fontSize": "40",
      "text": "my.translated.text",
    }
  },
  {
    "action": "add-object",
    "config": {
      "type": "soldier",
      "alias": "player",
      "position": "200,300",
      "visible": "false"
    }
  },
  {
    "action": "add-object",
    "config": {
      "type": "soldier",
      "alias": "player",
      "position": "200,300",
      "visible": "false"
    }
  },
  {
    "action": "tween-object",
    "config": {
      "target": "player",
      "attribute": "alpha",
      "duration": "1.5",
      "to": "1.0"
    }
  },
  {
    "action": "tween-object",
    "config": {
      "target": "player",
      "attribute": "position.x",
      "duration": "1.0",
      "to": "300"
    }
  },
  {
    "action": "screenshake",
    "async": "true",
    "config": {
      "strength": "4",
      "duration": "2.0"
    }
  },
  {
    "action": "screenshake",
    "async": "true",
    "config": {
      "strength": "4",
      "duration": "2.0"
    }
  },
  {
    "action": "show-text",
    "config": {
      "duration": "2.0",
      "fadeDuration": "0.5",
      "target": "player",
      "align": "top",
      "fontPath": "fonts/test.ttf",
      "fontSize": "30",
      "text": "my.translated.text"
    }
  }
]
@bitbrain bitbrain added this to the 0.6.0 - The TiledMap Update milestone May 25, 2019
@bitbrain bitbrain added this to Icebox in Core via automation May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Core
  
Icebox
Development

No branches or pull requests

1 participant