cgroc / CursedHacker

5 stars 0 forks source link

bouncy dave loads successfully, having trouble placing it tho #4

Closed ShahOdin closed 2 years ago

ShahOdin commented 2 years ago

building on the reverse engineering approach in #3 I managed to make some progress:

Screen Shot 2022-05-28 at 20 45 57

Currently having trouble placing Dave in the right place and having him respond to the environment properly. This is because the game currently has some magic values which are not easy to reason about. despite some in-code comments such as:

https://github.com/cgroc/CursedHacker/blob/0e977d48580c1a29766bed9e1de92cc7825f3674/src/main/scala/pirate/scenes/level/model/Pirate.scala#L69-L74

Observations

Question

Notes

{
  frames: {
    foo: {
    },
    bar: {
    }
  }
}

whereas the json file expected in indigo should be of this format:

{
  frames: [
    {
      filename: "foo"
    },
    {
      filename: "bar"
    }
  ]
}

so had to fix that by hand.