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
78f998db
Commit
78f998db
authored
May 09, 2017
by
Jens-Christian Fischer
Browse files
Fucking evil mode / deleted a function
parent
a5c0e727
Changes
2
Hide whitespace changes
Inline
Side-by-side
mix.exs
View file @
78f998db
...
@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
...
@@ -3,7 +3,7 @@ defmodule Grains.Mixfile do
def
project
do
def
project
do
[
app:
:grains
,
[
app:
:grains
,
version:
"0.0.5
1
"
,
version:
"0.0.5
2
"
,
elixir:
"~> 1.2"
,
elixir:
"~> 1.2"
,
elixirc_paths:
elixirc_paths
(
Mix
.
env
),
elixirc_paths:
elixirc_paths
(
Mix
.
env
),
compilers:
[
:phoenix
,
:gettext
]
++
Mix
.
compilers
,
compilers:
[
:phoenix
,
:gettext
]
++
Mix
.
compilers
,
...
...
web/static/js/presencesketch.js
View file @
78f998db
...
@@ -16,6 +16,11 @@ function Boid(p, x, y) {
...
@@ -16,6 +16,11 @@ function Boid(p, x, y) {
this
.
maxforce
=
0.05
;
// Maximum steering force
this
.
maxforce
=
0.05
;
// Maximum steering force
};
};
Boid
.
prototype
.
set_velocity
=
function
(
dx
,
dy
)
{
this
.
velocity
=
this
.
p
.
createVector
(
dx
,
dy
);
};
Boid
.
prototype
.
set_acceleration
=
function
(
z
)
{
Boid
.
prototype
.
set_acceleration
=
function
(
z
)
{
if
(
Math
.
abs
(
z
)
>
0.5
)
{
if
(
Math
.
abs
(
z
)
>
0.5
)
{
this
.
radius
=
32
;
this
.
radius
=
32
;
...
...
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