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

Add difficulty counter #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions principal/cenas/scripts/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var queued_method
var queued_parameters

var language
var difficulty: int = 0

func _ready():
var root = get_tree().get_root()
Expand Down
5 changes: 4 additions & 1 deletion principal/cenas/scripts/Jogo.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ var icon_dict = {}
var microgame_dict = {}

var total_lives = 3
var score = 0
var score = 0 :
set(value):
score = value
Global.difficulty = int((value - (value % 5)) / 5)

var difficulty_level = 0
var difficulty_slot = 0
Expand Down