Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Battle Pong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frederic Aust
Battle Pong
Commits
05cb1c66
Commit
05cb1c66
authored
4 years ago
by
Frederic Aust
Browse files
Options
Downloads
Patches
Plain Diff
Anzahl an Siege um zu Gewinnen wird nun durch das SettingsWindow eingestellt
parent
9d0bffa7
No related branches found
No related tags found
1 merge request
!9
Anzahl an Siege um zu Gewinnen wird nun durch das SettingsWindow eingestellt
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Battle Pong/Main.gd
+1
-1
1 addition, 1 deletion
Battle Pong/Main.gd
with
1 addition
and
1 deletion
Battle Pong/Main.gd
+
1
−
1
View file @
05cb1c66
...
@@ -128,7 +128,7 @@ func check_point_scored():
...
@@ -128,7 +128,7 @@ func check_point_scored():
reward_player_two
=
(
-
1
)
reward_player_two
=
(
-
1
)
print
(
"player one won"
)
print
(
"player one won"
)
update_score
()
update_score
()
if
score_player_one
==
5
or
score_player_two
==
5
:
if
score_player_one
==
$
"/root/GameSettings"
.
game_wins_to_reset
or
score_player_two
==
$
"/root/GameSettings"
.
game_wins_to_reset
:
game_done
=
true
game_done
=
true
func
handle_score_event
():
func
handle_score_event
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment