DevJoy.Scene.Challenge (DevJoy v2.0.0)
View SourceChallenge is a polimorfic custom content specific to your game. Challenges can be a mini-game or other custom action that the user must complete to progress in the game.
Usage
The challenge always requires its type.
You can also optionally specify additional data.
defmodule MyApp.SceneName do
use DevJoy.Scene
part :challenge do
challenge :challenge_type, some: :data
end
endSummary
Field types
The type representing the additional data for the challenge.
The type representing the challenge's type.