Inspiration

  • InflationRPG
  • Lineage
  • Being 100% onchain without sacrificing hack and slash (but staying true to source of truth [chain]).

What it does

Link to submission video on non-centralised hosting https://ipfs.zod.tv/ipfs/QmV9w4gQWYoLsiQXSRFZ8k4VSmZw92TB9DA87K9sBwrCf4

How we built it

Challenges we ran into

  • gas is too expensive to return typed objects (classes) from contract
  • allowance, for some reason the wallet asks to sign every transaction after the AccessKey spent approx 0.06 NEAR. Even tho allowance was 0.25.

Accomplishments that we're proud of

  • 100% onchain (item drops, formulas, dicerolls)
  • No offchain oracle or offchain showNtell RNG

What we learned

  • A 3rd team member to do phaserjs shaders/effects/animations would be great
  • NEAR Classes inside contracts are WAY too gas expensive to return or write to storage (because they are json serialized each time)
  • Write data to the log to avoid the above gas problem
  • Buffer + Write data as 1 line to the log to avoid the problem above as log is limited to 500 calls per TX.

What's next for NEARKnights

  • Bring onboard 3rd member
  • animations and effects, right now everything is static.
  • Sound.
  • Spell system.
  • More content to explore.

Built With

Share this project:

Updates