AGPLv3 license

This commit is contained in:
2026-10-12 15:09:22 -03:00
parent c1dd0e62a8
commit 48c6f0ec1d
263 changed files with 1446 additions and 0 deletions
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the screens of the base game's menus, see scripts/server.ts for their slots. in gui pixels, like minecraft's
import type { ClientContext, ClientMenu, Graphics, ItemStack, MenuScreen } from "bworld/client";
import { MINIGAMES } from "./minigames/mod.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// curios, from C4's Curios mod: accessory slots, in 2 columns left of the player's inventory. each player's curios are
// a container of their own, and fall out when they die like the rest of what they carry. items with the
// bworld:curio_modifiers component change the wearer's attributes, like curios' attribute modifiers, and ones with
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// what the base game's effects do over time, see mods/bworld/effects. speed and slowness are only attribute
// modifiers, and resistance and water breathing work where damage and air happen, like minecraft's
import type { ServerContext } from "bworld/server";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// fishing, like minecraft's: right click with a rod to throw its hook forward. when it lands in a block with
// bworld:fishable, like water, it floats there until something bites, and right clicking again before it gets away
// reels it in. a hook that lands on anything else lies there until it's reeled in, with nothing on it
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// a lichess mate in one: the board after the opponent's move, and the player has SOLVE_TIME to play the mate. it's
// all played on the screen, which says how it went: button 1 for the mate, 0 for any other move
import type { Color, Graphics } from "bworld/client";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { FishingMinigame, type MinigameArgs, type MinigameScreen, mouse_sender } from "./minigame.ts";
// "Hold !" and a bar from 0 to 10 seconds, starting half full. while the mouse is held (button 1, and 0 when it's let
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { FishingMinigame, type MinigameArgs, type MinigameScreen, SOLVE_TIME, time_bar } from "./minigame.ts";
// a maze to take the mouse through without touching its walls, bigger the harder the fish is, in SOLVE_TIME from
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// what every fishing minigame shares. each minigame is a file here with both its halves: a class the server builds
// the minigame's menu with, and the screen client.ts draws it with. mod.ts lists them by name
import type { ItemStack, MenuBuilder, Player } from "bworld/server";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the fishing minigames by name, what a fish's bworld:fish "minigame" says: the class the server builds its menu with
// and the screen the client draws it with. see minigame.ts
import type { FishingMinigame, MinigameArgs, MinigameScreen } from "./minigame.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import type { Color, Graphics } from "bworld/client";
import { FishingMinigame, type MinigameArgs, type MinigameScreen } from "./minigame.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { FishingMinigame, type MinigameArgs, type MinigameScreen } from "./minigame.ts";
// a "Catch" button in the middle of the screen, button 0
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
import { FishingMinigame, type MinigameArgs, type MinigameScreen, mouse_sender } from "./minigame.ts";
// stardew valley's, ported from ports/stardewfishing's FishingMinigame: holding the mouse lifts a green bar up a track
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the base game's block and item behavior, written against the same api as any other mod
import type { BlockRef, Container, Player, Season, ServerContext } from "bworld/server";
import { register_curios } from "./curios.ts";
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the base game's block rules: how blocks are placed and how they change with the blocks beside them. they run on the
// server and on every client, so players see a fence join or a trapdoor turn the moment they place it, and a trapdoor
// or a door open the moment they click it
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the base game's trees, a feature that's code. biomes say which kinds grow and how often (their json's "trees"), this
// says what the kinds are. it isn't data features: each kind would need placers drawing random numbers in exactly
// the order grow_tree does, for the world to stay the same, to say what this already says. it runs after ores, which
+3
View File
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
// SPDX-License-Identifier: AGPL-3.0-or-later
// the base game's features, on top of the terrain (which is data, worldgen/). runs on the server and must give the
// same world every time: only chunk.rng, chunk.random and the noise helpers, never Math.random or the time
import type { FeatureChunk, WorldgenContext } from "bworld/worldgen";