Commit 3b59aaf0 authored by Jens-Christian Fischer's avatar Jens-Christian Fischer
Browse files

Set velocity values

parent 9bb253e5
......@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def project do
[app: :grains,
version: "0.0.45",
version: "0.0.46",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
......
......@@ -105,9 +105,10 @@ let visuals = socket.channel("visuals:data", {});
visuals.on("velocity", state => {
console.log("velocity: ", state);
PresenceSketch.set_velocity(state.user, state.dx, state.dy);
});
visuals.on("acceleratoin", state => {
visuals.on("acceleration", state => {
console.log("acceleration: ", state);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment