Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TrashGuy
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TrashGuy
TrashGuy
Commits
149f47f2
Unverified
Commit
149f47f2
authored
5 years ago
by
Zac
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update to v3.1.5 - Fixed same-symbol index glitch
parent
5d87b1ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trashguy.py
+5
-5
5 additions, 5 deletions
trashguy.py
with
5 additions
and
5 deletions
trashguy.py
+
5
−
5
View file @
149f47f2
# coding: utf8
# =================================================== #
# =================================================== #
# Trash Guy Script #
# Trash Guy Script #
#
🗑️
(> ^_^)> #
#
(> ^_^)>
#
# Made by Zac (t.me/Zacci) #
# Made by Zac (t.me/Zacci) #
# Version 3.1.
4
-pi #
# Version 3.1.
5
-pi #
# Donate: #
# Donate: #
# 1CoRm4mKCUPs5XQnFVSVQ4xGMAp29pyYzC #
# 1CoRm4mKCUPs5XQnFVSVQ4xGMAp29pyYzC #
# =================================================== #
# =================================================== #
...
@@ -26,7 +25,8 @@ import sys
...
@@ -26,7 +25,8 @@ import sys
def
main
():
def
main
():
"""
Example usage of TrashGuy class.
"""
"""
Example usage of TrashGuy class.
"""
input_default
=
'
🍓 🍅 🍊 🍋
'
.
split
()
# input_default = '🍓 🍅 🍊 🍋'.split()
input_default
=
[
'
\U0001F353
'
,
'
\U0001F345
'
,
'
\U0001F34A
'
,
'
\U0001F34B
'
]
user_input
=
sys
.
argv
[
1
:]
user_input
=
sys
.
argv
[
1
:]
if
not
user_input
:
if
not
user_input
:
...
@@ -100,7 +100,7 @@ class TrashGuy:
...
@@ -100,7 +100,7 @@ class TrashGuy:
# Loop over the canvas to animate the trash guy going right while holding the item.
# Loop over the canvas to animate the trash guy going right while holding the item.
for
index
in
range
(
len
(
r_canvas
)):
for
index
in
range
(
len
(
r_canvas
)):
# Trash guy hits the item he wants to pickup
# Trash guy hits the item he wants to pickup
if
r_canvas
[
index
]
==
sym_space
or
r_canvas
[
index
]
==
item
:
if
r_canvas
[
index
]
==
sym_space
or
-
index
==
last_item_index
:
try
:
try
:
if
r_canvas
[
index
-
1
]
==
sym_trash
:
if
r_canvas
[
index
-
1
]
==
sym_trash
:
# Looking left on the very final frame of the animation
# Looking left on the very final frame of the animation
...
...
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