summaryrefslogtreecommitdiffstats
path: root/static/games/pong
diff options
context:
space:
mode:
Diffstat (limited to 'static/games/pong')
-rw-r--r--static/games/pong/pong.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/static/games/pong/pong.js b/static/games/pong/pong.js
index bdf95ac..58f0c59 100644
--- a/static/games/pong/pong.js
+++ b/static/games/pong/pong.js
@@ -1,3 +1,21 @@
+// Copyright 2026 Rose Hogenson <r@roseh.moe>
+//
+// This file is part of roseh.moe.
+//
+// roseh.moe is free software: you can redistribute it and/or modify it
+// under the terms of the GNU Affero General Public License as published
+// by the Free Software Foundation, either version 3 of the License,
+// or (at your option) any later version.
+//
+// roseh.moe is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty
+// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public
+// License along with roseh.moe. If not,
+// see <https://www.gnu.org/licenses/>.
+
const ticksPerSecond = 300;
const ballSpeed = 10 * 60 / ticksPerSecond;
const paddleSpeed = 10 * 60 / ticksPerSecond;