Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
spn-website
Commits
e5e2bf47
Commit
e5e2bf47
authored
May 05, 2018
by
Hubert Denkmair
Browse files
remove flickering eyes when head position is not known yet
parent
a85a8b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
visualization/static/visualization/Snake.js
View file @
e5e2bf47
...
...
@@ -21,6 +21,7 @@ function Snake(headTexture, segmentPool, name, colorScheme, world_size_x, world_
this
.
Container
.
addChild
(
this
.
_segmentContainer
);
this
.
_headSegment
=
new
SnakeSegment
(
headTexture
);
this
.
_headSegment
.
SetPosition
(
-
100000
,
-
100000
);
this
.
_headSegment
.
AddSprites
(
this
.
Container
);
this
.
_nameText
=
new
PIXI
.
Text
(
name
,
{
fill
:
'
white
'
,
fontSize
:
14
,
fontWeight
:
"
bold
"
,
dropShadow
:
true
,
dropShadowBlur
:
1
,
dropShadowDistance
:
2
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment