Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grains
grains-web
Commits
1250b919
Commit
1250b919
authored
May 09, 2017
by
Jens-Christian Fischer
Browse files
Change Radius on Acceleration
parent
f2575307
Changes
3
Hide whitespace changes
Inline
Side-by-side
mix.exs
View file @
1250b919
...
...
@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def
project
do
[
app:
:grains
,
version:
"0.0.
49
"
,
version:
"0.0.
50
"
,
elixir:
"~> 1.2"
,
elixirc_paths:
elixirc_paths
(
Mix
.
env
),
compilers:
[
:phoenix
,
:gettext
]
++
Mix
.
compilers
,
...
...
web/static/js/app.js
View file @
1250b919
...
...
@@ -110,7 +110,7 @@ visuals.on("velocity", state => {
visuals
.
on
(
"
acceleration
"
,
state
=>
{
console
.
log
(
"
acceleration:
"
,
state
);
PresenceSketch
.
set_acceleration
(
state
.
user
,
state
.
z
);
PresenceSketch
.
set_acceleration
(
state
.
user
,
state
.
force
);
});
visuals
.
join
().
receive
(
"
ok
"
,
resp
=>
{
...
...
web/static/js/presencesketch.js
View file @
1250b919
...
...
@@ -21,7 +21,7 @@ Boid.prototype.set_velocity = function(dx, dy) {
};
Boid
.
prototype
.
set_acceleration
=
function
(
z
)
{
this
.
r
=
32
;
this
.
r
adius
=
32
;
};
...
...
Write
Preview
Markdown
is supported
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