diff options
Diffstat (limited to 'test-client')
| -rw-r--r-- | test-client/index.html | 17 | ||||
| -rw-r--r-- | test-client/main.ts | 17 | ||||
| -rw-r--r-- | test-client/movement.ts | 17 | ||||
| -rw-r--r-- | test-client/protocol.ts | 17 | ||||
| -rw-r--r-- | test-client/tiles.ts | 17 | ||||
| -rw-r--r-- | test-client/util.ts | 17 | ||||
| -rw-r--r-- | test-client/visual.ts | 17 | 
7 files changed, 119 insertions, 0 deletions
| diff --git a/test-client/index.html b/test-client/index.html index 12079351..d1cd7133 100644 --- a/test-client/index.html +++ b/test-client/index.html @@ -1,3 +1,20 @@ +<!-- +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +-->  <!DOCTYPE html>  <html lang="en">      <head> diff --git a/test-client/main.ts b/test-client/main.ts index 80b68906..69a4ff69 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  /// <reference lib="dom" />  import { player_movement_update } from "./movement.ts"; diff --git a/test-client/movement.ts b/test-client/movement.ts index cd5cc1d5..1ba6fad7 100644 --- a/test-client/movement.ts +++ b/test-client/movement.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  import { data } from "./main.ts";  import { tiles, players, PlayerData } from "./main.ts";  import { V2, normalize, length, sub_v2, lerp_exp_v2_mut } from "./util.ts"; diff --git a/test-client/protocol.ts b/test-client/protocol.ts index 68307a1f..48a1cca7 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  export type Vec2 = [number, number] // x, y  export type PlayerID = number  export type ItemIndex = number diff --git a/test-client/tiles.ts b/test-client/tiles.ts index ebf70842..18b50787 100644 --- a/test-client/tiles.ts +++ b/test-client/tiles.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  type Component = (ctx: CanvasRenderingContext2D) => void  function base(fill: string, stroke?: string, stroke_width?: number): Component { diff --git a/test-client/util.ts b/test-client/util.ts index 975a5700..8faaa555 100644 --- a/test-client/util.ts +++ b/test-client/util.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  export interface V2 { x: number, y: number }  export function length(p: V2): number { return Math.sqrt(p.x * p.x + p.y * p.y) }  export function normalize_mut(p: V2) { const l = length(p); if (l == 0) return; p.x /= l; p.y /= l } diff --git a/test-client/visual.ts b/test-client/visual.ts index e23f0f01..fbe9ad10 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -1,3 +1,20 @@ +/* +    Undercooked - a game about cooking +    Copyright 2024 metamuffin +     +    This program 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, version 3 of the License only. +     +    This program 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 this program.  If not, see <https://www.gnu.org/licenses/>. +     +*/  import { ItemData, MessageData, PlayerData, TileData, camera, canvas, ctx, data, get_interact_target, interact_active_anim, interact_possible_anim, interact_target_anim, items_removed, keys_down, my_id, players, tiles } from "./main.ts";  import { PLAYER_SIZE } from "./movement.ts";  import { FALLBACK_TILE, ITEMS, TILES, FALLBACK_ITEM } from "./tiles.ts"; | 
