From 609651232c6a66f3437ebcaab52025e71b489e6f Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Mon, 30 Nov 2026 11:24:11 +0200 Subject: [PATCH 01/13] Gaming: deterministic platformer simulation (com.codename1.gaming.platformer) Fixed-point tile controller (solid, one-way, 45/22.5 slopes, ladders, moving platforms), ability system (move, jump, crouch, ladder, wall jump, dash, jetpack, glide, swim, fly, look, weapons), health, AI brains, entities (pickups, springs, checkpoints, doors, gates, switches, crumble blocks, projectiles), level JSON and replay verification. Shared with the backend so a server can replay a run with the same code. Co-Authored-By: Claude Opus 5.5 --- .github/ci/ci-members.json | 1 + .../codename1/gaming/platformer/AIBrain.java | 486 +++++++++++++ .../gaming/platformer/Abilities.java | 114 +++ .../codename1/gaming/platformer/Ability.java | 119 +++ .../codename1/gaming/platformer/Actor.java | 603 ++++++++++++++++ .../gaming/platformer/BlockEntity.java | 99 +++ .../com/codename1/gaming/platformer/Body.java | 397 ++++++++++ .../gaming/platformer/Checkpoint.java | 64 ++ .../gaming/platformer/CrouchAbility.java | 58 ++ .../gaming/platformer/CrumbleBlock.java | 98 +++ .../gaming/platformer/DashAbility.java | 99 +++ .../com/codename1/gaming/platformer/Door.java | 73 ++ .../codename1/gaming/platformer/Entity.java | 163 +++++ .../gaming/platformer/EntityFactory.java | 47 ++ .../gaming/platformer/FlyAbility.java | 48 ++ .../com/codename1/gaming/platformer/Fx.java | 252 +++++++ .../com/codename1/gaming/platformer/Gate.java | 68 ++ .../gaming/platformer/GlideAbility.java | 47 ++ .../codename1/gaming/platformer/Health.java | 135 ++++ .../codename1/gaming/platformer/Input.java | 128 ++++ .../codename1/gaming/platformer/InputLog.java | 187 +++++ .../gaming/platformer/JetpackAbility.java | 74 ++ .../gaming/platformer/JumpAbility.java | 123 ++++ .../gaming/platformer/LadderAbility.java | 104 +++ .../gaming/platformer/LevelData.java | 455 ++++++++++++ .../gaming/platformer/LevelJson.java | 343 +++++++++ .../gaming/platformer/LookAbility.java | 62 ++ .../gaming/platformer/MoveAbility.java | 72 ++ .../gaming/platformer/MovementState.java | 65 ++ .../gaming/platformer/MovingPlatform.java | 173 +++++ .../codename1/gaming/platformer/Pickup.java | 109 +++ .../gaming/platformer/PlatformWorld.java | 683 ++++++++++++++++++ .../gaming/platformer/Projectile.java | 105 +++ .../codename1/gaming/platformer/Replay.java | 110 +++ .../com/codename1/gaming/platformer/Rng.java | 78 ++ .../codename1/gaming/platformer/Spring.java | 82 +++ .../gaming/platformer/SwimAbility.java | 74 ++ .../codename1/gaming/platformer/Switch.java | 86 +++ .../com/codename1/gaming/platformer/Tile.java | 200 +++++ .../codename1/gaming/platformer/TileGrid.java | 258 +++++++ .../gaming/platformer/WallJumpAbility.java | 100 +++ .../gaming/platformer/WeaponAbility.java | 115 +++ .../gaming/platformer/WorldEvent.java | 132 ++++ .../gaming/platformer/package-info.java | 42 ++ .../gaming/platformer/PlatformWorldTest.java | 455 ++++++++++++ 45 files changed, 7386 insertions(+) create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Abilities.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Ability.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Actor.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Body.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/CrumbleBlock.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/DashAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Door.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Entity.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/EntityFactory.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/FlyAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Fx.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Gate.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/GlideAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Health.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Input.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/InputLog.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/JetpackAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/LevelData.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/LookAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/MoveAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/MovementState.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Pickup.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Projectile.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Replay.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Rng.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Spring.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Switch.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/Tile.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/package-info.java create mode 100644 maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java diff --git a/.github/ci/ci-members.json b/.github/ci/ci-members.json index 9792f1bb9b0..67fed3be77a 100644 --- a/.github/ci/ci-members.json +++ b/.github/ci/ci-members.json @@ -411,6 +411,7 @@ "CodenameOne/src/com/codename1/db/sql/**", "CodenameOne/src/com/codename1/hardware/**", "CodenameOne/src/com/codename1/realtime/**", + "CodenameOne/src/com/codename1/gaming/platformer/*.java", "CodenameOne/src/com/codename1/qrcode/QrCode.java", "CodenameOne/src/com/codename1/impl/office/Snappy.java", "CodenameOne/src/com/codename1/impl/MdnsEngine.java", diff --git a/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java b/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java new file mode 100644 index 00000000000..3690ca9a285 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java @@ -0,0 +1,486 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.ArrayList; +import java.util.List; + +/// Enemy behaviour as a small state machine of actions and decisions, after Corgi +/// Engine's AI Brain. +/// +/// A brain does not move anything itself. Each tick it produces the `Input` bits +/// its character would get from a player, so an enemy runs on exactly the same +/// abilities and collision as the hero, and is as deterministic. The current +/// `State` runs its `Action`, then its transitions are tried in order and the first +/// `Decision` that holds switches state. +/// +/// ```java +/// AIBrain brain = new AIBrain(); +/// AIBrain.State patrol = brain.addState("patrol", new AIBrain.Patrol()); +/// AIBrain.State chase = brain.addState("chase", new AIBrain.Chase(true)); +/// patrol.addTransition(new AIBrain.TargetWithin(Fx.of(96), true), chase); +/// chase.addTransition(new AIBrain.Not(new AIBrain.TargetWithin(Fx.of(160), false)), patrol); +/// enemy.setBrain(brain); +/// ``` +@com.codename1.impl.SharedWithBackend +public final class AIBrain { + /// Produces input for one tick. + public interface Action { + /// Computes this tick's buttons. + /// + /// #### Parameters + /// + /// - `brain`: the brain, for its timers and target + /// - `self`: the character + /// - `world`: the world + /// + /// #### Returns + /// + /// `Input` bits + int act(AIBrain brain, Actor self, PlatformWorld world); + } + + /// A condition that switches state. + public interface Decision { + /// Whether the transition should fire. + /// + /// #### Parameters + /// + /// - `brain`: the brain + /// - `self`: the character + /// - `world`: the world + /// + /// #### Returns + /// + /// true to switch + boolean decide(AIBrain brain, Actor self, PlatformWorld world); + } + + /// A named state: an action and its outgoing transitions. + public static final class State { + private final String name; + private final Action action; + private final List decisions = new ArrayList(); + private final List targets = new ArrayList(); + + State(String name, Action action) { + this.name = name; + this.action = action; + } + + /// The state's name. + /// + /// #### Returns + /// + /// the name + public String getName() { + return name; + } + + /// Adds a transition, tried after earlier ones. + /// + /// #### Parameters + /// + /// - `d`: the condition + /// - `target`: the state to switch to + /// + /// #### Returns + /// + /// this state, for chaining + public State addTransition(Decision d, State target) { + decisions.add(d); + targets.add(target); + return this; + } + } + + private final List states = new ArrayList(); + private State current; + private int ticksInState; + private int direction = -1; + private int lastInput; + + /// Adds a state. The first one added is where the brain starts. + /// + /// #### Parameters + /// + /// - `name`: the name + /// - `action`: what it does each tick + /// + /// #### Returns + /// + /// the state, to add transitions to + public State addState(String name, Action action) { + State s = new State(name, action); + states.add(s); + if (current == null) { + current = s; + } + return s; + } + + /// Computes the character's input for this tick. Called by `PlatformWorld`. + /// + /// #### Parameters + /// + /// - `self`: the character + /// - `world`: the world + /// + /// #### Returns + /// + /// `Input` bits + public int think(Actor self, PlatformWorld world) { + if (current == null) { + return 0; + } + for (int i = 0; i < current.decisions.size(); i++) { + if (current.decisions.get(i).decide(this, self, world)) { + current = current.targets.get(i); + ticksInState = 0; + break; + } + } + ticksInState++; + lastInput = current.action.act(this, self, world); + return lastInput; + } + + /// The current state. + /// + /// #### Returns + /// + /// the state, or null for an empty brain + public State getCurrent() { + return current; + } + + /// Ticks spent in the current state. + /// + /// #### Returns + /// + /// the tick count + public int getTicksInState() { + return ticksInState; + } + + /// The patrol direction, -1 or 1, shared by the stock actions. + /// + /// #### Returns + /// + /// the direction + public int getDirection() { + return direction; + } + + /// Sets the patrol direction. + /// + /// #### Parameters + /// + /// - `d`: -1 or 1 + public void setDirection(int d) { + direction = d < 0 ? -1 : 1; + } + + long hash(long h) { + int idx = current == null ? -1 : states.indexOf(current); + return Ability.mix(Ability.mix(Ability.mix(h, idx), ticksInState), direction); + } + + private static int dirBits(int d) { + return d < 0 ? Input.LEFT : d > 0 ? Input.RIGHT : 0; + } + + /// Whether the cell ahead of a character's feet has no floor. + /// + /// #### Parameters + /// + /// - `self`: the character + /// - `world`: the world + /// - `dir`: -1 or 1 + /// + /// #### Returns + /// + /// true at a ledge + public static boolean ledgeAhead(Actor self, PlatformWorld world, int dir) { + Body b = self.getBody(); + TileGrid g = world.getGrid(); + int probeX = dir > 0 ? b.x + b.w + Fx.of(1) : b.x - Fx.of(1); + int k = g.get(g.col(probeX), g.row(b.y + b.h + Fx.of(1))); + return k == Tile.EMPTY || k == Tile.HAZARD || k == Tile.WATER; + } + + /// Walks back and forth, turning at walls and, if `turnAtLedges`, at drops. + public static final class Patrol implements Action { + private final boolean turnAtLedges; + + /// A patrol that turns at walls and ledges. + public Patrol() { + this(true); + } + + /// A patrol. + /// + /// #### Parameters + /// + /// - `turnAtLedges`: whether to turn at a drop instead of walking off it + public Patrol(boolean turnAtLedges) { + this.turnAtLedges = turnAtLedges; + } + + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + Body b = self.getBody(); + int d = brain.direction; + if ((d < 0 && b.hitLeft()) || (d > 0 && b.hitRight()) + || (turnAtLedges && b.isGrounded() && ledgeAhead(self, world, d))) { + d = -d; + brain.direction = d; + } + return dirBits(d); + } + } + + /// Moves toward the player, jumping at walls if `jumps`. + public static final class Chase implements Action { + private final boolean jumps; + + /// A chase. + /// + /// #### Parameters + /// + /// - `jumps`: whether to jump when blocked by a wall + public Chase(boolean jumps) { + this.jumps = jumps; + } + + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + Actor t = world.getPlayer(); + if (t == null || t == self) { + return 0; + } + Body b = self.getBody(); + Body tb = t.getBody(); + int dx = (tb.x + tb.w / 2) - (b.x + b.w / 2); + int d = dx > Fx.of(2) ? 1 : dx < -Fx.of(2) ? -1 : 0; + if (d != 0) { + brain.direction = d; + } + int bits = dirBits(d); + if (jumps && b.isGrounded() && ((d < 0 && b.hitLeft()) || (d > 0 && b.hitRight()))) { + bits |= Input.JUMP; + } + int dy = tb.y - b.y; + if (self.getGravity() == 0) { + bits |= dy < -Fx.of(2) ? Input.UP : dy > Fx.of(2) ? Input.DOWN : 0; + } + return bits; + } + } + + /// Stands still, facing the player, and fires every `interval` ticks. + public static final class Shoot implements Action { + private final int interval; + + /// A turret action. + /// + /// #### Parameters + /// + /// - `interval`: ticks between shots + public Shoot(int interval) { + this.interval = Math.max(1, interval); + } + + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + Actor t = world.getPlayer(); + if (t != null) { + int dx = t.getBody().x - self.getBody().x; + self.setFacing(dx < 0 ? -1 : 1); + } + return brain.ticksInState % interval == 0 ? Input.FIRE : 0; + } + } + + /// Does nothing. + public static final class Idle implements Action { + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + return 0; + } + } + + /// Patrols and hops every `interval` ticks. + public static final class Hop implements Action { + private final int interval; + private final Patrol patrol = new Patrol(false); + + /// A hopping patrol. + /// + /// #### Parameters + /// + /// - `interval`: ticks between hops + public Hop(int interval) { + this.interval = Math.max(2, interval); + } + + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + int bits = patrol.act(brain, self, world); + if (brain.ticksInState % interval < 3) { + bits |= Input.JUMP; + } + return bits; + } + } + + /// Runs two actions and combines their buttons, such as a patrol that shoots. + public static final class Both implements Action { + private final Action a; + private final Action b; + + /// A combined action. + /// + /// #### Parameters + /// + /// - `a`: the first action + /// - `b`: the second action + public Both(Action a, Action b) { + this.a = a; + this.b = b; + } + + @Override + public int act(AIBrain brain, Actor self, PlatformWorld world) { + return a.act(brain, self, world) | b.act(brain, self, world); + } + } + + /// Holds when the player is within a distance, and optionally in front. + public static final class TargetWithin implements Decision { + private final int range; + private final boolean inFront; + + /// A range check. + /// + /// #### Parameters + /// + /// - `range`: the distance, fixed point, measured on each axis + /// - `inFront`: whether the player must also be on the facing side + public TargetWithin(int range, boolean inFront) { + this.range = range; + this.inFront = inFront; + } + + @Override + public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { + Actor t = world.getPlayer(); + if (t == null || t == self || !t.isAlive()) { + return false; + } + int dx = t.getBody().x - self.getBody().x; + int dy = t.getBody().y - self.getBody().y; + if (Math.abs(dx) > range || Math.abs(dy) > range) { + return false; + } + return !inFront || (dx >= 0) == (brain.direction >= 0); + } + } + + /// Holds after a number of ticks in the current state. + public static final class After implements Decision { + private final int ticks; + + /// A timer. + /// + /// #### Parameters + /// + /// - `ticks`: the time in the state + public After(int ticks) { + this.ticks = ticks; + } + + @Override + public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { + return brain.ticksInState >= ticks; + } + } + + /// Holds with a chance per tick, drawn from the world's deterministic `Rng`. + public static final class Chance implements Decision { + private final int perThousand; + + /// A random check. + /// + /// #### Parameters + /// + /// - `perThousand`: the chance per tick, out of 1000 + public Chance(int perThousand) { + this.perThousand = perThousand; + } + + @Override + public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { + return world.getRng().nextInt(1000) < perThousand; + } + } + + /// Holds while the character's health is at or below a value. + public static final class HealthAtMost implements Decision { + private final int hp; + + /// A health check, for a boss changing phase. + /// + /// #### Parameters + /// + /// - `hp`: the threshold + public HealthAtMost(int hp) { + this.hp = hp; + } + + @Override + public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { + return self.getHealth() != null && self.getHealth().getCurrent() <= hp; + } + } + + /// Inverts a decision. + public static final class Not implements Decision { + private final Decision d; + + /// An inversion. + /// + /// #### Parameters + /// + /// - `d`: the decision to invert + public Not(Decision d) { + this.d = d; + } + + @Override + public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { + return !d.decide(brain, self, world); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java b/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java new file mode 100644 index 00000000000..0c8c3fe4fa6 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Creates the stock abilities by name, as level files, power-ups and the editor +/// refer to them. +@com.codename1.impl.SharedWithBackend +public final class Abilities { + /// Every stock ability name, in a sensible processing order for a hero. + public static final String[] HERO_ORDER = { + "move", "ladder", "swim", "walljump", "jump", "glide", "jetpack", "crouch", "dash", "look", "weapon" + }; + + private Abilities() { + } + + /// Creates an ability. + /// + /// #### Parameters + /// + /// - `name`: `move`, `jump`, `crouch`, `ladder`, `walljump`, `dash`, `jetpack`, + /// `glide`, `swim`, `fly`, `look`, `weapon` or `sword` + /// - `tileSize`: the level's tile size, fixed point, for size-relative tuning + /// + /// #### Returns + /// + /// the ability, or null for an unknown name + public static Ability create(String name, int tileSize) { + if ("move".equals(name)) { + return new MoveAbility(); + } + if ("jump".equals(name)) { + return new JumpAbility(); + } + if ("crouch".equals(name)) { + CrouchAbility a = new CrouchAbility(); + a.crouchHeight = tileSize - Fx.of(2); + return a; + } + if ("ladder".equals(name)) { + return new LadderAbility(); + } + if ("walljump".equals(name)) { + return new WallJumpAbility(); + } + if ("dash".equals(name)) { + return new DashAbility(); + } + if ("jetpack".equals(name)) { + return new JetpackAbility(); + } + if ("glide".equals(name)) { + return new GlideAbility(); + } + if ("swim".equals(name)) { + return new SwimAbility(); + } + if ("fly".equals(name)) { + return new FlyAbility(); + } + if ("look".equals(name)) { + return new LookAbility(); + } + if ("weapon".equals(name)) { + return new WeaponAbility(); + } + if ("sword".equals(name)) { + WeaponAbility w = new WeaponAbility(); + w.projectileType = "slash"; + w.speed = 0; + w.size = tileSize; + w.lifeTicks = 8; + w.cooldownTicks = 20; + w.eightWay = false; + return w; + } + return null; + } + + /// The class of the ability a name creates, for `Actor#getAbility`. + /// + /// #### Parameters + /// + /// - `name`: an ability name + /// + /// #### Returns + /// + /// the class, or null + public static Class typeOf(String name) { + Ability a = create(name, Fx.of(16)); + return a == null ? null : a.getClass(); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Ability.java b/CodenameOne/src/com/codename1/gaming/platformer/Ability.java new file mode 100644 index 00000000000..9e5cd271484 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Ability.java @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// One thing a `Actor` can do -- walk, jump, dash, climb -- as a small, +/// separately tunable unit, in the manner of Corgi Engine's character abilities. +/// +/// A character runs its abilities in the order they were added, three times a tick: +/// `earlyProcess` before anything moves, `process` to set velocity and state, and +/// `lateProcess` after the body has moved and its contacts are known. Order matters +/// where two abilities read the same button: an ability that consumes the jump +/// press (a wall jump, a ladder jump) belongs before `JumpAbility`. +/// +/// Abilities must be deterministic: they read only the character, the world and +/// the tick's input, use `Fx` arithmetic and the world's `Rng`, and keep their +/// state in fields so `Actor#hash` can fold it in through `hashState`. +@com.codename1.impl.SharedWithBackend +public abstract class Ability { + private boolean enabled = true; + + /// Whether the ability runs. A disabled ability is skipped, which is how a + /// power-up grants it mid-level. + /// + /// #### Returns + /// + /// true when enabled + public boolean isEnabled() { + return enabled; + } + + /// Enables or disables the ability. + /// + /// #### Parameters + /// + /// - `enabled`: true to run it + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } + + /// Runs before any ability sets velocity: timers and input edges. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `world`: the world + public void earlyProcess(Actor c, PlatformWorld world) { + } + + /// Sets velocity and claims a `MovementState`. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `world`: the world + public abstract void process(Actor c, PlatformWorld world); + + /// Runs after the body moved, with the new contacts. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `world`: the world + public void lateProcess(Actor c, PlatformWorld world) { + } + + /// Mixes the ability's own state into a hash, so two runs that diverge inside + /// an ability are caught. The default mixes nothing. + /// + /// #### Parameters + /// + /// - `h`: the running hash + /// + /// #### Returns + /// + /// the updated hash + public long hashState(long h) { + return h; + } + + /// FNV-1a step used by `hashState` implementations. + /// + /// #### Parameters + /// + /// - `h`: the running hash + /// - `v`: the value to mix in + /// + /// #### Returns + /// + /// the updated hash + protected static long mix(long h, long v) { + long r = h; + for (int i = 0; i < 8; i++) { + r ^= (v >>> (i * 8)) & 0xff; + r *= 0x100000001B3L; + } + return r; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Actor.java b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java new file mode 100644 index 00000000000..af9f4663cd5 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java @@ -0,0 +1,603 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.ArrayList; +import java.util.List; + +/// A player or an enemy: a `Body` driven by an ordered list of `Ability`s. +/// +/// Each `PlatformWorld#step` the character takes its tick of `Input` bits (from a +/// player, a replay or an `AIBrain`), runs its abilities, applies gravity unless an +/// ability turned it off, moves the body, and settles a `MovementState` that the +/// renderer animates. All tuning is in fixed point (`Fx`), in pixels and ticks at +/// 60 ticks per second. +/// +/// ```java +/// Actor hero = new Actor("hero", Fx.of(32), Fx.of(80), Fx.of(12), Fx.of(14)); +/// hero.addAbility(new MoveAbility()); +/// hero.addAbility(new LadderAbility()); +/// hero.addAbility(new WallJumpAbility()); +/// hero.addAbility(new JumpAbility()); +/// hero.addAbility(new CrouchAbility()); +/// hero.addAbility(new DashAbility()); +/// world.addCharacter(hero); +/// ``` +@com.codename1.impl.SharedWithBackend +public class Actor { + private final String id; + private final Body body; + private final List abilities = new ArrayList(); + private int input; + private int previousInput; + private int facing = 1; + private MovementState state = MovementState.IDLE; + private boolean stateClaimed; + private boolean gravityActive; + private int gravity = Fx.ratio(1, 4); + private int maxFall = Fx.of(6); + private int controlLock; + private int airTicks; + private boolean jumpConsumed; + private boolean alive = true; + private final int standHeight; + private int team; + private Health health; + private int contactDamage; + private boolean stompable; + private AIBrain brain; + private String kind = "hero"; + + /// Creates a character. + /// + /// #### Parameters + /// + /// - `id`: a name, unique in its world + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: standing height, fixed point + public Actor(String id, int x, int y, int w, int h) { + this.id = id; + this.body = new Body(x, y, w, h); + this.standHeight = h; + } + + /// Adds an ability at the end of the processing order. + /// + /// #### Parameters + /// + /// - `a`: the ability + /// + /// #### Returns + /// + /// this character, for chaining + public Actor addAbility(Ability a) { + abilities.add(a); + return this; + } + + /// Finds an ability by class, to tune it or switch it on. + /// + /// #### Parameters + /// + /// - `type`: the ability's class + /// + /// #### Returns + /// + /// the first ability of that class, or null + @SuppressWarnings("unchecked") + public T getAbility(Class type) { + for (int i = 0; i < abilities.size(); i++) { + Ability a = abilities.get(i); + if (a.getClass() == type) { + return (T) a; + } + } + return null; + } + + /// Advances one tick. Called by `PlatformWorld#step`. + /// + /// #### Parameters + /// + /// - `world`: the world + /// - `bits`: this tick's `Input` + public void tick(PlatformWorld world, int bits) { + previousInput = input; + input = bits; + if (!alive) { + return; + } + if (health != null) { + health.tick(); + } + stateClaimed = false; + gravityActive = true; + jumpConsumed = false; + if (controlLock > 0) { + controlLock--; + } + for (int i = 0; i < abilities.size(); i++) { + Ability a = abilities.get(i); + if (a.isEnabled()) { + a.earlyProcess(this, world); + } + } + for (int i = 0; i < abilities.size(); i++) { + Ability a = abilities.get(i); + if (a.isEnabled()) { + a.process(this, world); + } + } + if (gravityActive) { + body.vy = Math.min(body.vy + gravity, maxFall); + } + body.move(world.getGrid(), world.getPlatforms()); + if (body.isGrounded()) { + airTicks = 0; + } else { + airTicks++; + } + for (int i = 0; i < abilities.size(); i++) { + Ability a = abilities.get(i); + if (a.isEnabled()) { + a.lateProcess(this, world); + } + } + if (!stateClaimed) { + if (body.isGrounded()) { + state = body.vx == 0 ? MovementState.IDLE : MovementState.WALKING; + } else { + state = body.vy < 0 ? MovementState.JUMPING : MovementState.FALLING; + } + } + } + + /// Sets this tick's state. The first ability to claim one wins, so the order of + /// abilities is also their priority. + /// + /// #### Parameters + /// + /// - `s`: the state + public void claimState(MovementState s) { + if (!stateClaimed) { + state = s; + stateClaimed = true; + } + } + + /// Replaces this tick's state even if one was claimed, for states that override + /// everything such as being hurt. + /// + /// #### Parameters + /// + /// - `s`: the state + public void forceState(MovementState s) { + state = s; + stateClaimed = true; + } + + /// The art kind the view draws this character with (`"hero"`, `"slime"`). + /// + /// #### Returns + /// + /// the kind + public String getKind() { + return kind; + } + + /// Sets the art kind. + /// + /// #### Parameters + /// + /// - `kind`: the kind + /// + /// #### Returns + /// + /// this character + public Actor setKind(String kind) { + this.kind = kind; + return this; + } + + /// The team: 0 for the player's side. Projectiles and contact damage never + /// hurt their own team. + /// + /// #### Returns + /// + /// the team + public int getTeam() { + return team; + } + + /// Sets the team. + /// + /// #### Parameters + /// + /// - `team`: the team + /// + /// #### Returns + /// + /// this character + public Actor setTeam(int team) { + this.team = team; + return this; + } + + /// Hit points, or null for a character that dies at the first hit. + /// + /// #### Returns + /// + /// the health + public Health getHealth() { + return health; + } + + /// Gives the character hit points. + /// + /// #### Parameters + /// + /// - `health`: the health, or null + /// + /// #### Returns + /// + /// this character + public Actor setHealth(Health health) { + this.health = health; + return this; + } + + /// Damage dealt to characters of another team on contact. + /// + /// #### Returns + /// + /// the damage, 0 for harmless + public int getContactDamage() { + return contactDamage; + } + + /// Sets contact damage. + /// + /// #### Parameters + /// + /// - `damage`: the damage + /// + /// #### Returns + /// + /// this character + public Actor setContactDamage(int damage) { + this.contactDamage = damage; + return this; + } + + /// Whether landing on this character's head hurts it and bounces the player. + /// + /// #### Returns + /// + /// true if stompable + public boolean isStompable() { + return stompable; + } + + /// Sets whether the character can be stomped. + /// + /// #### Parameters + /// + /// - `stompable`: true if stompable + /// + /// #### Returns + /// + /// this character + public Actor setStompable(boolean stompable) { + this.stompable = stompable; + return this; + } + + /// The brain that drives a non-player character, or null. + /// + /// #### Returns + /// + /// the brain + public AIBrain getBrain() { + return brain; + } + + /// Gives the character a brain; the world then ignores its input slot. + /// + /// #### Parameters + /// + /// - `brain`: the brain, or null + /// + /// #### Returns + /// + /// this character + public Actor setBrain(AIBrain brain) { + this.brain = brain; + return this; + } + + /// The character's id. + /// + /// #### Returns + /// + /// the id + public String getId() { + return id; + } + + /// The collision box. + /// + /// #### Returns + /// + /// the body + public Body getBody() { + return body; + } + + /// The height the character stands at, which crouching shrinks from. + /// + /// #### Returns + /// + /// the standing height, fixed point + public int getStandHeight() { + return standHeight; + } + + /// This tick's input bits. + /// + /// #### Returns + /// + /// the input + public int getInput() { + return input; + } + + /// Whether a button is held this tick. + /// + /// #### Parameters + /// + /// - `button`: an `Input` constant + /// + /// #### Returns + /// + /// true while held + public boolean held(int button) { + return Input.held(input, button); + } + + /// Whether a button went down this tick. + /// + /// #### Parameters + /// + /// - `button`: an `Input` constant + /// + /// #### Returns + /// + /// true on the press edge + public boolean pressed(int button) { + return Input.pressed(input, previousInput, button); + } + + /// Whether a button was released this tick. + /// + /// #### Parameters + /// + /// - `button`: an `Input` constant + /// + /// #### Returns + /// + /// true on the release edge + public boolean released(int button) { + return Input.pressed(previousInput, input, button); + } + + /// Facing: 1 right, -1 left. + /// + /// #### Returns + /// + /// the facing + public int getFacing() { + return facing; + } + + /// Sets the facing. + /// + /// #### Parameters + /// + /// - `facing`: 1 right, -1 left + public void setFacing(int facing) { + this.facing = facing < 0 ? -1 : 1; + } + + /// The state settled in the last tick. + /// + /// #### Returns + /// + /// the state + public MovementState getState() { + return state; + } + + /// Whether an ability already claimed this tick's state. + /// + /// #### Returns + /// + /// true once claimed + public boolean isStateClaimed() { + return stateClaimed; + } + + /// Turns gravity off for this tick (a ladder, a dash, a jetpack). + public void suspendGravity() { + gravityActive = false; + } + + /// Gravity, fixed point per tick squared. + /// + /// #### Returns + /// + /// the gravity + public int getGravity() { + return gravity; + } + + /// Sets gravity. + /// + /// #### Parameters + /// + /// - `gravity`: fixed point per tick squared + public void setGravity(int gravity) { + this.gravity = gravity; + } + + /// Terminal falling speed. Keep it under a tile per tick. + /// + /// #### Returns + /// + /// the speed, fixed point per tick + public int getMaxFall() { + return maxFall; + } + + /// Sets the terminal falling speed. + /// + /// #### Parameters + /// + /// - `maxFall`: fixed point per tick + public void setMaxFall(int maxFall) { + this.maxFall = maxFall; + } + + /// Locks horizontal control for a number of ticks, so a wall jump or a + /// knock-back carries the character away before input steers again. + /// + /// #### Parameters + /// + /// - `ticks`: how long input is ignored by `MoveAbility` + public void lockControl(int ticks) { + controlLock = Math.max(controlLock, ticks); + } + + /// Whether horizontal control is locked. + /// + /// #### Returns + /// + /// true while locked + public boolean isControlLocked() { + return controlLock > 0; + } + + /// Ticks since the character last stood on something. + /// + /// #### Returns + /// + /// 0 while grounded + public int getAirTicks() { + return airTicks; + } + + /// Marks this tick's jump press as used, so later abilities do not act on it. + public void consumeJump() { + jumpConsumed = true; + } + + /// Whether an earlier ability used this tick's jump press. + /// + /// #### Returns + /// + /// true once consumed + public boolean isJumpConsumed() { + return jumpConsumed; + } + + /// Whether the character is alive. + /// + /// #### Returns + /// + /// false after `kill` + public boolean isAlive() { + return alive; + } + + /// Kills the character; it stops processing until `respawn`. + public void kill() { + alive = false; + state = MovementState.DEAD; + body.vx = 0; + body.vy = 0; + } + + /// Brings the character back at a point, standing and still. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + public void respawn(int x, int y) { + alive = true; + body.x = x; + body.y = y; + body.vx = 0; + body.vy = 0; + body.h = standHeight; + body.setIgnoreOneWay(false); + state = MovementState.IDLE; + controlLock = 0; + airTicks = 0; + if (health != null) { + health.reset(); + } + } + + /// The character's state as a hash, for replay verification. + /// + /// #### Parameters + /// + /// - `h`: the running hash + /// + /// #### Returns + /// + /// the updated hash + public long hash(long h) { + long r = Ability.mix(h, body.x); + r = Ability.mix(r, body.y); + r = Ability.mix(r, body.vx); + r = Ability.mix(r, body.vy); + r = Ability.mix(r, body.h); + r = Ability.mix(r, state.ordinal()); + r = Ability.mix(r, facing); + r = Ability.mix(r, alive ? 1 : 0); + for (int i = 0; i < abilities.size(); i++) { + r = abilities.get(i).hashState(r); + } + if (health != null) { + r = health.hash(r); + } + if (brain != null) { + r = brain.hash(r); + } + return r; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java b/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java new file mode 100644 index 00000000000..8a35097faa6 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Base for entities that are made of solid tiles which come and go: doors, gates +/// and crumbling blocks. The rectangle must be aligned to whole tiles. +@com.codename1.impl.SharedWithBackend +public abstract class BlockEntity extends Entity { + private boolean solid; + + /// Creates a block. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `type`: the kind + /// - `x`: left, fixed point, on a tile edge + /// - `y`: top, fixed point, on a tile edge + /// - `w`: width, fixed point, whole tiles + /// - `h`: height, fixed point, whole tiles + protected BlockEntity(String id, String type, int x, int y, int w, int h) { + super(id, type, x, y, w, h); + } + + @Override + public int getTouchMargin() { + return Fx.of(2); + } + + /// Whether the block's cells are currently solid. + /// + /// #### Returns + /// + /// true while solid + public boolean isSolid() { + return solid; + } + + /// Makes the cells solid or empty. Becoming solid waits while a character is + /// inside, so nobody is ever trapped in a wall. + /// + /// #### Parameters + /// + /// - `world`: the world + /// - `s`: true for solid + /// + /// #### Returns + /// + /// true if the cells now match `s` + protected boolean setSolid(PlatformWorld world, boolean s) { + if (s == solid) { + return true; + } + if (s) { + for (int i = 0; i < world.getCharacters().size(); i++) { + Actor c = world.getCharacters().get(i); + if (c.isAlive() && c.getBody().overlaps(x, y, w, h)) { + return false; + } + } + } + TileGrid g = world.getGrid(); + int c1 = g.col(x + w - 1); + int r1 = g.row(y + h - 1); + for (int r = g.row(y); r <= r1; r++) { + for (int c = g.col(x); c <= c1; c++) { + g.set(c, r, s ? Tile.SOLID : Tile.EMPTY); + } + } + solid = s; + return true; + } + + @Override + public long hashState(long h) { + return Ability.mix(super.hashState(h), solid ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Body.java b/CodenameOne/src/com/codename1/gaming/platformer/Body.java new file mode 100644 index 00000000000..f815716e496 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Body.java @@ -0,0 +1,397 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.List; + +/// A kinematic box that moves through a `TileGrid`: the platformer's collision +/// controller. +/// +/// It is not a physics body. Each tick it is given a velocity and moves the X axis +/// and then the Y axis, scanning exactly the cells its edges cross, so it never +/// tunnels and never jitters. It understands what a platformer needs and a rigid +/// body simulation does not: +/// +/// - **Slopes** of 45 and 22.5 degrees, walked up and down at full speed without +/// bouncing: while grounded the box is snapped down to the floor by up to +/// `getStepHeight()`, and steps of that height are climbed. +/// - **One-way platforms** (`Tile#ONE_WAY`, the top rung of a ladder, a +/// `MovingPlatform`) that only stop a box falling onto them from above, and +/// that `dropThrough` lets it fall through. +/// - **Riding**: a box standing on a moving platform is carried by it. +/// - **Contacts** on each side, read back by the abilities: grounded, a ceiling, a +/// wall on the left or right. +/// +/// Coordinates are fixed point (`Fx`), y grows downward, and `x`, `y` are the +/// top-left corner. +@com.codename1.impl.SharedWithBackend +public final class Body { + /// Left edge, fixed point. + public int x; + /// Top edge, fixed point. + public int y; + /// Width, fixed point. + public int w; + /// Height, fixed point. + public int h; + /// Horizontal velocity, fixed point per tick. + public int vx; + /// Vertical velocity, fixed point per tick; positive is down. + public int vy; + + private int stepHeight; + private int previousY; + private boolean below; + private boolean above; + private boolean left; + private boolean right; + private boolean onOneWay; + private int slope; + private int dropTicks; + private boolean ignoreOneWay; + private MovingPlatform riding; + + /// Creates a box. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + public Body(int x, int y, int w, int h) { + this.x = x; + this.y = y; + this.w = w; + this.h = h; + this.stepHeight = Fx.of(6); + } + + /// The tallest step the box climbs, and the furthest it is pulled down to keep + /// its footing on a falling slope, while grounded. + /// + /// #### Returns + /// + /// the step height, fixed point + public int getStepHeight() { + return stepHeight; + } + + /// Sets the step height. Keep it below half a tile; it must exceed the largest + /// horizontal speed for a 45 degree slope to be climbed. + /// + /// #### Parameters + /// + /// - `stepHeight`: the step height, fixed point + public void setStepHeight(int stepHeight) { + this.stepHeight = stepHeight; + } + + /// Lets the box fall through one-way platforms for a few ticks. + /// + /// #### Parameters + /// + /// - `ticks`: how long one-way floors are ignored + public void dropThrough(int ticks) { + dropTicks = ticks; + riding = null; + } + + /// Makes one-way floors, including the top of a ladder, ignored until cleared, + /// as climbing down a ladder needs. + /// + /// #### Parameters + /// + /// - `ignore`: true to ignore one-way floors + public void setIgnoreOneWay(boolean ignore) { + ignoreOneWay = ignore; + } + + /// Whether the box stood on something after its last move. + /// + /// #### Returns + /// + /// true when grounded + public boolean isGrounded() { + return below; + } + + /// Whether the box hit a ceiling in its last move. + /// + /// #### Returns + /// + /// true on a ceiling hit + public boolean hitCeiling() { + return above; + } + + /// Whether the box was stopped by a wall on its left in its last move. + /// + /// #### Returns + /// + /// true on a left wall + public boolean hitLeft() { + return left; + } + + /// Whether the box was stopped by a wall on its right in its last move. + /// + /// #### Returns + /// + /// true on a right wall + public boolean hitRight() { + return right; + } + + /// Whether the floor under the box is one-way (a drop-through platform). + /// + /// #### Returns + /// + /// true on a one-way floor + public boolean isOnOneWay() { + return below && onOneWay; + } + + /// The slope the box stands on. + /// + /// #### Returns + /// + /// a slope `Tile` kind, or `Tile#EMPTY` on flat ground or in the air + public int getSlope() { + return slope; + } + + /// The top edge before the last move, which tells a stomp from a side hit. + /// + /// #### Returns + /// + /// the previous y, fixed point + public int getPreviousY() { + return previousY; + } + + /// Whether the box overlaps a rectangle. + /// + /// #### Parameters + /// + /// - `ox`: left, fixed point + /// - `oy`: top, fixed point + /// - `ow`: width, fixed point + /// - `oh`: height, fixed point + /// + /// #### Returns + /// + /// true on overlap + public boolean overlaps(int ox, int oy, int ow, int oh) { + return x < ox + ow && x + w > ox && y < oy + oh && y + h > oy; + } + + /// The moving platform the box stands on. + /// + /// #### Returns + /// + /// the platform, or null + public MovingPlatform getRiding() { + return riding; + } + + /// Moves the box by its velocity through the grid and the platforms, updating + /// the contact flags. Velocity into a contact is zeroed. + /// + /// #### Parameters + /// + /// - `grid`: the level + /// - `platforms`: the moving platforms, already stepped this tick; may be null + public void move(TileGrid grid, List platforms) { + boolean wasGrounded = below; + previousY = y; + if (riding != null) { + x += riding.getDx(); + y += riding.getDy(); + } + riding = null; + below = false; + above = false; + left = false; + right = false; + onOneWay = false; + slope = Tile.EMPTY; + if (dropTicks > 0) { + dropTicks--; + } + moveX(grid, wasGrounded); + moveY(grid, platforms, wasGrounded); + } + + private void moveX(TileGrid grid, boolean wasGrounded) { + if (vx == 0) { + return; + } + int ts = grid.getTileSize(); + int r0 = grid.row(y); + int r1 = grid.row(y + h - 1 - (wasGrounded ? stepHeight : 0)); + if (r1 < r0) { + r1 = r0; + } + int nx = x + vx; + if (vx > 0) { + int cStart = grid.col(x + w); + int cEnd = grid.col(nx + w - 1); + for (int c = cStart; c <= cEnd; c++) { + if (columnBlocks(grid, c, r0, r1)) { + nx = c * ts - w; + right = true; + vx = 0; + break; + } + } + } else { + int cStart = grid.col(x - 1); + int cEnd = grid.col(nx); + for (int c = cStart; c >= cEnd; c--) { + if (columnBlocks(grid, c, r0, r1)) { + nx = (c + 1) * ts; + left = true; + vx = 0; + break; + } + } + } + x = nx; + } + + private static boolean columnBlocks(TileGrid grid, int c, int r0, int r1) { + for (int r = r0; r <= r1; r++) { + if (grid.get(c, r) == Tile.SOLID) { + return true; + } + } + return false; + } + + private void moveY(TileGrid grid, List platforms, boolean wasGrounded) { + int ts = grid.getTileSize(); + int ny = y + vy; + if (vy < 0) { + int c0 = grid.col(x); + int c1 = grid.col(x + w - 1); + int rStart = grid.row(y - 1); + int rEnd = grid.row(ny); + for (int r = rStart; r >= rEnd; r--) { + for (int c = c0; c <= c1; c++) { + if (grid.get(c, r) == Tile.SOLID) { + y = (r + 1) * ts; + above = true; + vy = 0; + return; + } + } + } + y = ny; + return; + } + int oldB = y + h; + int newB = ny + h; + boolean snapping = wasGrounded && vy >= 0; + int probeB = snapping ? newB + stepHeight : newB; + int tol = wasGrounded ? stepHeight : 0; + boolean oneWayOk = dropTicks == 0 && !ignoreOneWay; + + int best = Integer.MAX_VALUE; + boolean bestOneWay = false; + int bestSlope = Tile.EMPTY; + MovingPlatform bestPlatform = null; + + int c0 = grid.col(x); + int c1 = grid.col(x + w - 1); + int rStart = grid.row(oldB - tol); + int rEnd = grid.row(probeB - 1); + for (int r = rStart; r <= rEnd; r++) { + int top = r * ts; + if (top < oldB - tol || top > probeB || top >= best) { + continue; + } + for (int c = c0; c <= c1; c++) { + int k = grid.get(c, r); + boolean oneWay = k == Tile.ONE_WAY + || (k == Tile.LADDER && grid.get(c, r - 1) != Tile.LADDER); + if (k == Tile.SOLID || (oneWay && oneWayOk && top >= oldB)) { + if (top < best || (top == best && !oneWay)) { + best = top; + bestOneWay = oneWay; + bestSlope = Tile.EMPTY; + bestPlatform = null; + } + } + } + } + + // Slopes are sampled under the middle of the feet. + int footX = x + w / 2; + int fc = grid.col(footX); + int lx = footX - fc * ts; + int sStart = grid.row(oldB - tol - 1); + for (int r = sStart; r <= rEnd + 1; r++) { + int k = grid.get(fc, r); + if (!Tile.isSlope(k)) { + continue; + } + int surface = r * ts + Tile.slopeDepth(k, lx, ts); + if (surface >= oldB - tol && surface <= probeB && surface < best) { + best = surface; + bestOneWay = false; + bestSlope = k; + bestPlatform = null; + } + } + + if (platforms != null && oneWayOk) { + for (int i = 0; i < platforms.size(); i++) { + MovingPlatform p = platforms.get(i); + int top = p.getY(); + if (x + w <= p.getX() || x >= p.getX() + p.getWidth()) { + continue; + } + if (top >= oldB - (wasGrounded ? Math.abs(p.getDy()) : 0) + && top <= probeB && top < best) { + best = top; + bestOneWay = true; + bestSlope = Tile.EMPTY; + bestPlatform = p; + } + } + } + + if (best != Integer.MAX_VALUE) { + y = best - h; + vy = 0; + below = true; + onOneWay = bestOneWay; + slope = bestSlope; + riding = bestPlatform; + } else { + y = ny; + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java b/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java new file mode 100644 index 00000000000..651c559f7fb --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A checkpoint: touching it moves the player's respawn point here. +@com.codename1.impl.SharedWithBackend +public class Checkpoint extends Entity { + private boolean reached; + + /// Creates a checkpoint. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + public Checkpoint(String id, int x, int y, int w, int h) { + super(id, "checkpoint", x, y, w, h); + } + + @Override + public int getPhase() { + return reached ? 1 : 0; + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + if (reached || c != world.getPlayer()) { + return; + } + reached = true; + Body b = c.getBody(); + world.setSpawn(x + (w - b.w) / 2, y + h - c.getStandHeight()); + world.emit(WorldEvent.CHECKPOINT, x + w / 2, y, getId(), null); + } + + @Override + public long hashState(long h) { + return Ability.mix(super.hashState(h), reached ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java new file mode 100644 index 00000000000..29597e377e5 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Crouching and crawling: holding down on the ground shrinks the body to +/// `crouchHeight`, keeping its feet in place. The character stands again only when +/// there is room above, so it can crawl through a one-tile gap and stays crouched +/// under it. +@com.codename1.impl.SharedWithBackend +public class CrouchAbility extends Ability { + /// Height while crouched, fixed point. + public int crouchHeight = Fx.of(8); + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + MovementState s = c.getState(); + if (s == MovementState.CLIMBING || s == MovementState.DASHING || s == MovementState.DEAD) { + return; + } + boolean want = b.isGrounded() && c.held(Input.DOWN) && !c.pressed(Input.JUMP); + int stand = c.getStandHeight(); + if (want && b.h > crouchHeight) { + b.y += b.h - crouchHeight; + b.h = crouchHeight; + } else if (!want && b.h < stand) { + int grow = stand - b.h; + if (!world.getGrid().blocked(b.x, b.y - grow, b.w, grow)) { + b.y -= grow; + b.h = stand; + } + } + if (b.h < stand && b.isGrounded()) { + c.claimState(b.vx == 0 ? MovementState.CROUCHING : MovementState.CRAWLING); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/CrumbleBlock.java b/CodenameOne/src/com/codename1/gaming/platformer/CrumbleBlock.java new file mode 100644 index 00000000000..301d633fc33 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/CrumbleBlock.java @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A floor that gives way: `delayTicks` after the player first stands on it, its +/// cells vanish, and they come back `respawnTicks` later (never, if 0). +@com.codename1.impl.SharedWithBackend +public class CrumbleBlock extends BlockEntity { + private final int delayTicks; + private final int respawnTicks; + private int timer = -1; + private int gone = -1; + + /// Creates a crumbling block. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point, on a tile edge + /// - `y`: top, fixed point, on a tile edge + /// - `w`: width, whole tiles, fixed point + /// - `h`: height, whole tiles, fixed point + /// - `delayTicks`: ticks between first being stood on and giving way + /// - `respawnTicks`: ticks until it returns, 0 for never + public CrumbleBlock(String id, int x, int y, int w, int h, int delayTicks, int respawnTicks) { + super(id, "crumble", x, y, w, h); + this.delayTicks = delayTicks; + this.respawnTicks = respawnTicks; + } + + @Override + public int getPhase() { + if (!isSolid()) { + return 3; + } + if (timer < 0) { + return 0; + } + return timer * 2 < delayTicks ? 2 : 1; + } + + @Override + public void onAdded(PlatformWorld world) { + setSolid(world, true); + } + + @Override + public void step(PlatformWorld world) { + if (timer > 0) { + timer--; + if (timer == 0) { + setSolid(world, false); + timer = -1; + gone = respawnTicks; + world.emit(WorldEvent.CRUMBLE, x + w / 2, y, getId(), null); + } + } else if (gone > 0) { + gone--; + if (gone == 0 && !setSolid(world, true)) { + gone = 1; + } + } + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + Body b = c.getBody(); + if (isSolid() && timer < 0 && b.isGrounded() && b.y + b.h == y) { + timer = delayTicks; + } + } + + @Override + public long hashState(long h) { + return Ability.mix(Ability.mix(super.hashState(h), timer), gone); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/DashAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/DashAbility.java new file mode 100644 index 00000000000..a585c9d653d --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/DashAbility.java @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A horizontal dash on `Input#DASH`: `dashTicks` at `dashSpeed` in the facing +/// direction with gravity off, then a `cooldownTicks` wait. In the air it can be +/// used `airDashes` times before landing. +@com.codename1.impl.SharedWithBackend +public class DashAbility extends Ability { + /// Dash speed, fixed point per tick. + public int dashSpeed = Fx.of(5); + /// Dash length in ticks. + public int dashTicks = 10; + /// Ticks before the next dash. + public int cooldownTicks = 24; + /// Dashes allowed per jump. + public int airDashes = 1; + + private int remaining; + private int cooldown; + private int airUsed; + private int direction; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + if (cooldown > 0) { + cooldown--; + } + if (remaining == 0 && cooldown == 0 && c.pressed(Input.DASH) + && c.getState() != MovementState.CLIMBING + && (b.isGrounded() || airUsed < airDashes)) { + remaining = dashTicks; + cooldown = cooldownTicks; + int dir = Input.horizontal(c.getInput()); + direction = dir != 0 ? dir : c.getFacing(); + c.setFacing(direction); + if (!b.isGrounded()) { + airUsed++; + } + } + if (remaining > 0) { + remaining--; + b.vx = direction * dashSpeed; + b.vy = 0; + c.suspendGravity(); + c.claimState(MovementState.DASHING); + } + } + + @Override + public void lateProcess(Actor c, PlatformWorld world) { + Body b = c.getBody(); + if (b.isGrounded()) { + airUsed = 0; + } + if (remaining > 0 && (b.hitLeft() || b.hitRight())) { + remaining = 0; + } + if (remaining == 0 && c.getState() == MovementState.DASHING) { + b.vx = Fx.mul(b.vx, Fx.HALF); + } + } + + /// Whether a dash is under way. + /// + /// #### Returns + /// + /// true mid dash + public boolean isDashing() { + return remaining > 0; + } + + @Override + public long hashState(long h) { + return mix(mix(mix(mix(h, remaining), cooldown), airUsed), direction); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Door.java b/CodenameOne/src/com/codename1/gaming/platformer/Door.java new file mode 100644 index 00000000000..6aa1b860257 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Door.java @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A locked door: solid until the player touches it holding the key it names, +/// which is used up. +@com.codename1.impl.SharedWithBackend +public class Door extends BlockEntity { + private final String key; + + /// Creates a door. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point, on a tile edge + /// - `y`: top, fixed point, on a tile edge + /// - `w`: width, whole tiles, fixed point + /// - `h`: height, whole tiles, fixed point + /// - `key`: the key name that opens it + public Door(String id, int x, int y, int w, int h, String key) { + super(id, "door", x, y, w, h); + this.key = key; + } + + /// The key that opens the door. + /// + /// #### Returns + /// + /// the key name + public String getKey() { + return key; + } + + @Override + public int getPhase() { + return isSolid() ? 0 : 1; + } + + @Override + public void onAdded(PlatformWorld world) { + setSolid(world, true); + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + if (isSolid() && c == world.getPlayer() && world.useKey(key)) { + setSolid(world, false); + world.emit(WorldEvent.OPEN, x + w / 2, y + h / 2, getId(), key); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Entity.java b/CodenameOne/src/com/codename1/gaming/platformer/Entity.java new file mode 100644 index 00000000000..701729ea64d --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Entity.java @@ -0,0 +1,163 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Something in a level that is not a character: a coin, a spring, a door, a +/// projectile, a crumbling block. +/// +/// An entity is a rectangle with a `getType()` name that the view maps to art. +/// Each tick the world calls `step`, and calls `onTouch` for every living +/// character that overlaps it. An entity that must block movement (a door, a +/// gate, a crumbling block) writes `Tile#SOLID` cells into the grid rather than +/// colliding itself, so the controller stays one fast tile scan. +/// +/// Subclasses must be deterministic, like abilities, and fold any state that +/// changes play into `hashState`. +@com.codename1.impl.SharedWithBackend +public abstract class Entity { + private final String id; + private final String type; + /// Left edge, fixed point. + public int x; + /// Top edge, fixed point. + public int y; + /// Width, fixed point. + public int w; + /// Height, fixed point. + public int h; + private boolean active = true; + + /// Creates an entity. + /// + /// #### Parameters + /// + /// - `id`: a name, unique in its world + /// - `type`: the kind, which the view maps to art (`"coin"`, `"spring"`) + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + protected Entity(String id, String type, int x, int y, int w, int h) { + this.id = id; + this.type = type; + this.x = x; + this.y = y; + this.w = w; + this.h = h; + } + + /// The entity's id. + /// + /// #### Returns + /// + /// the id + public String getId() { + return id; + } + + /// The entity's kind. + /// + /// #### Returns + /// + /// the type name + public String getType() { + return type; + } + + /// Whether the entity still takes part. Inactive entities are skipped and not + /// drawn; the world drops them at the end of the tick. + /// + /// #### Returns + /// + /// true while active + public boolean isActive() { + return active; + } + + /// Removes the entity at the end of the tick. + public void deactivate() { + active = false; + } + + /// A small number the view reads to pick a frame: open or closed, lit or not, + /// how cracked. The default is 0. + /// + /// #### Returns + /// + /// the visual phase + public int getPhase() { + return 0; + } + + /// How far outside its rectangle the entity still counts as touched. An entity + /// that writes solid cells (a door) needs a margin, since a character can never + /// overlap a solid cell. The default is 0. + /// + /// #### Returns + /// + /// the margin, fixed point + public int getTouchMargin() { + return 0; + } + + /// Called once when the entity is added to a world, before the first step: the + /// place to write solid cells. The default does nothing. + /// + /// #### Parameters + /// + /// - `world`: the world + public void onAdded(PlatformWorld world) { + } + + /// Advances one tick. The default does nothing. + /// + /// #### Parameters + /// + /// - `world`: the world + public void step(PlatformWorld world) { + } + + /// Called each tick a living character overlaps the entity. + /// + /// #### Parameters + /// + /// - `world`: the world + /// - `c`: the character + public void onTouch(PlatformWorld world, Actor c) { + } + + /// Mixes the entity's play-relevant state into a hash. The default mixes the + /// position and whether it is active. + /// + /// #### Parameters + /// + /// - `h`: the running hash + /// + /// #### Returns + /// + /// the updated hash + public long hashState(long h) { + return Ability.mix(Ability.mix(Ability.mix(h, x), y), active ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/EntityFactory.java b/CodenameOne/src/com/codename1/gaming/platformer/EntityFactory.java new file mode 100644 index 00000000000..0e289bc6c2a --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/EntityFactory.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.Map; + +/// Creates a game's own entity types from level JSON, for types `LevelData` does +/// not know. Pass one to `LevelData#createWorld(long, EntityFactory)`. +@com.codename1.impl.SharedWithBackend +public interface EntityFactory { + /// Creates an entity, or declines. + /// + /// #### Parameters + /// + /// - `id`: the id to give it + /// - `type`: the `type` field + /// - `x`: the left edge of its cell, fixed point + /// - `y`: the top edge of its cell, fixed point + /// - `tileSize`: the tile size, fixed point + /// - `spec`: the whole JSON object, for its other fields + /// + /// #### Returns + /// + /// the entity, or null if the type is not this factory's + Entity create(String id, String type, int x, int y, int tileSize, Map spec); +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/FlyAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/FlyAbility.java new file mode 100644 index 00000000000..e8b46f2fed4 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/FlyAbility.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Free flight with no gravity, steered on both axes, for bats, ghosts and drones +/// (and a debug camera hero). +@com.codename1.impl.SharedWithBackend +public class FlyAbility extends Ability { + /// Flying speed, fixed point per tick. + public int speed = Fx.of(1); + /// Change of speed per tick. + public int acceleration = Fx.ratio(1, 8); + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + c.suspendGravity(); + int h = Input.horizontal(c.getInput()); + int v = Input.vertical(c.getInput()); + if (h != 0) { + c.setFacing(h); + } + b.vx = Fx.approach(b.vx, h * speed, acceleration); + b.vy = Fx.approach(b.vy, v * speed, acceleration); + c.claimState(MovementState.JUMPING); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Fx.java b/CodenameOne/src/com/codename1/gaming/platformer/Fx.java new file mode 100644 index 00000000000..afce74c767b --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Fx.java @@ -0,0 +1,252 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// 16.16 fixed-point arithmetic for the platformer simulation. +/// +/// Every position, speed and size the simulation keeps is an `int` holding a value +/// scaled by `ONE` (65536). Integer arithmetic gives the same answer on every CPU, +/// every runtime and on the server, which is what lets a run recorded on a phone be +/// replayed bit for bit by the backend. Nothing in this package uses `float`, +/// `double` or a clock. +@com.codename1.impl.SharedWithBackend +public final class Fx { + /// The value 1.0. + public static final int ONE = 1 << 16; + + /// The value 0.5. + public static final int HALF = 1 << 15; + + private Fx() { + } + + /// Converts a whole number to fixed point. + /// + /// #### Parameters + /// + /// - `i`: the whole number + /// + /// #### Returns + /// + /// `i` scaled by `ONE` + public static int of(int i) { + return i << 16; + } + + /// Builds a fixed-point value from a fraction, `num / den`, without floating point. + /// + /// #### Parameters + /// + /// - `num`: the numerator + /// - `den`: the denominator, never zero + /// + /// #### Returns + /// + /// the fraction in fixed point + public static int ratio(int num, int den) { + return (int) (((long) num << 16) / den); + } + + /// Multiplies two fixed-point values. + /// + /// #### Parameters + /// + /// - `a`: the first factor + /// - `b`: the second factor + /// + /// #### Returns + /// + /// `a * b` in fixed point + public static int mul(int a, int b) { + return (int) (((long) a * b) >> 16); + } + + /// Divides two fixed-point values. + /// + /// #### Parameters + /// + /// - `a`: the dividend + /// - `b`: the divisor, never zero + /// + /// #### Returns + /// + /// `a / b` in fixed point + public static int div(int a, int b) { + return (int) (((long) a << 16) / b); + } + + /// The largest whole number not greater than a fixed-point value. + /// + /// #### Parameters + /// + /// - `a`: a fixed-point value + /// + /// #### Returns + /// + /// the floor of `a` as a whole number + public static int floor(int a) { + return a >> 16; + } + + /// Integer division that rounds toward negative infinity, as a tile index needs + /// for a coordinate left of or above the map. + /// + /// #### Parameters + /// + /// - `a`: the dividend + /// - `b`: the divisor, never zero + /// + /// #### Returns + /// + /// the floor of `a / b` + public static int floorDiv(int a, int b) { + int q = a / b; + if (q * b != a && ((a < 0) != (b < 0))) { + q--; + } + return q; + } + + /// Clamps a value into a range. + /// + /// #### Parameters + /// + /// - `v`: the value + /// - `lo`: the lower bound + /// - `hi`: the upper bound + /// + /// #### Returns + /// + /// `v` limited to `[lo, hi]` + public static int clamp(int v, int lo, int hi) { + if (v < lo) { + return lo; + } + return v > hi ? hi : v; + } + + /// Moves a value toward a target by at most a step. + /// + /// #### Parameters + /// + /// - `v`: the current value + /// - `target`: the value to approach + /// - `step`: the largest change allowed, not negative + /// + /// #### Returns + /// + /// the new value + public static int approach(int v, int target, int step) { + if (v < target) { + return v + step > target ? target : v + step; + } + return v - step < target ? target : v - step; + } + + /// Parses a decimal such as `"2.75"` or `"-0.5"` into fixed point, exactly and + /// without floating point, so a level file reads the same everywhere. + /// + /// #### Parameters + /// + /// - `s`: the decimal text + /// + /// #### Returns + /// + /// the value in fixed point + /// + /// #### Throws + /// + /// - `IllegalArgumentException`: if `s` is not a decimal number + public static int parse(String s) { + int len = s.length(); + int i = 0; + boolean neg = false; + if (i < len && (s.charAt(i) == '-' || s.charAt(i) == '+')) { + neg = s.charAt(i) == '-'; + i++; + } + long whole = 0; + int digits = 0; + while (i < len && s.charAt(i) >= '0' && s.charAt(i) <= '9') { + whole = whole * 10 + (s.charAt(i) - '0'); + if (whole > 32767) { + throw new IllegalArgumentException("Out of fixed-point range: " + s); + } + i++; + digits++; + } + long frac = 0; + long scale = 1; + if (i < len && s.charAt(i) == '.') { + i++; + while (i < len && s.charAt(i) >= '0' && s.charAt(i) <= '9') { + if (scale < 1000000000L) { + frac = frac * 10 + (s.charAt(i) - '0'); + scale *= 10; + } + i++; + digits++; + } + } + if (digits == 0 || i != len) { + throw new IllegalArgumentException("Not a number: " + s); + } + long v = (whole << 16) + (frac << 16) / scale; + return (int) (neg ? -v : v); + } + + /// Formats a fixed-point value as a decimal with up to four places, the inverse + /// of `parse` to the precision a level file needs. + /// + /// #### Parameters + /// + /// - `v`: the fixed-point value + /// + /// #### Returns + /// + /// decimal text + public static String format(int v) { + StringBuilder sb = new StringBuilder(); + long a = v; + if (a < 0) { + sb.append('-'); + a = -a; + } + sb.append(a >> 16); + long frac = ((a & 0xffff) * 10000 + 0x8000) >> 16; + if (frac >= 10000) { + frac = 9999; + } + if (frac != 0) { + sb.append('.'); + String f = String.valueOf(10000 + frac).substring(1); + int end = f.length(); + while (end > 1 && f.charAt(end - 1) == '0') { + end--; + } + sb.append(f.substring(0, end)); + } + return sb.toString(); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Gate.java b/CodenameOne/src/com/codename1/gaming/platformer/Gate.java new file mode 100644 index 00000000000..4ae4efffb10 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Gate.java @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A gate wired to a channel: open while the channel is on (or off, when +/// `inverted`). `Switch`es turn channels on and off. +@com.codename1.impl.SharedWithBackend +public class Gate extends BlockEntity { + private final int channel; + private final boolean inverted; + + /// Creates a gate. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point, on a tile edge + /// - `y`: top, fixed point, on a tile edge + /// - `w`: width, whole tiles, fixed point + /// - `h`: height, whole tiles, fixed point + /// - `channel`: the channel, 0 to 31 + /// - `inverted`: true to be open while the channel is off + public Gate(String id, int x, int y, int w, int h, int channel, boolean inverted) { + super(id, "gate", x, y, w, h); + this.channel = channel; + this.inverted = inverted; + } + + @Override + public int getPhase() { + return isSolid() ? 0 : 1; + } + + @Override + public void onAdded(PlatformWorld world) { + setSolid(world, world.isChannelOn(channel) == inverted); + } + + @Override + public void step(PlatformWorld world) { + boolean wantSolid = world.isChannelOn(channel) == inverted; + boolean was = isSolid(); + if (setSolid(world, wantSolid) && was != wantSolid) { + world.emit(WorldEvent.OPEN, x + w / 2, y + h / 2, getId(), null); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/GlideAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/GlideAbility.java new file mode 100644 index 00000000000..d1a3d47f0ed --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/GlideAbility.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Gliding: holding `Input#ALT` (or jump, when `holdJump`) while falling caps the +/// fall at `glideFall`. +@com.codename1.impl.SharedWithBackend +public class GlideAbility extends Ability { + /// Fastest fall while gliding, fixed point per tick. + public int glideFall = Fx.ratio(3, 4); + /// Whether holding jump glides too, as in many platformers. + public boolean holdJump = true; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + boolean held = c.held(Input.ALT) || (holdJump && c.held(Input.JUMP) && !c.pressed(Input.JUMP)); + if (!held || b.isGrounded() || b.vy < 0 || c.getState() == MovementState.CLIMBING + || c.getState() == MovementState.DASHING || c.isStateClaimed()) { + return; + } + c.suspendGravity(); + b.vy = Math.min(b.vy + c.getGravity() / 4, glideFall); + c.claimState(MovementState.GLIDING); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Health.java b/CodenameOne/src/com/codename1/gaming/platformer/Health.java new file mode 100644 index 00000000000..465ce779c87 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Health.java @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Hit points, invulnerability frames and knock-back for a `Actor`. +/// +/// `PlatformWorld#damage` is the one way to hurt something: it checks the +/// invulnerability window, knocks the character away from the source, locks its +/// control briefly and, at zero, hands it to `PlatformWorld#onDeath`. +@com.codename1.impl.SharedWithBackend +public final class Health { + /// Hit points when full. + public int max; + /// Ticks of invulnerability after a hit. + public int invulnerableTicks = 60; + /// Horizontal knock-back speed, fixed point per tick. + public int knockbackX = Fx.of(2); + /// Upward knock-back speed, fixed point per tick. + public int knockbackY = Fx.of(3); + /// Ticks control is locked after a hit. + public int stunTicks = 14; + + private int current; + private int invulnerable; + + /// Creates a full health pool. + /// + /// #### Parameters + /// + /// - `max`: hit points + public Health(int max) { + this.max = max; + this.current = max; + } + + /// Current hit points. + /// + /// #### Returns + /// + /// the hit points + public int getCurrent() { + return current; + } + + /// Whether hits are currently ignored. + /// + /// #### Returns + /// + /// true during invulnerability + public boolean isInvulnerable() { + return invulnerable > 0; + } + + /// Ticks of invulnerability left, which a view flickers the sprite by. + /// + /// #### Returns + /// + /// the remaining ticks + public int getInvulnerableRemaining() { + return invulnerable; + } + + /// Removes hit points and starts invulnerability. + /// + /// #### Parameters + /// + /// - `amount`: hit points to remove + /// + /// #### Returns + /// + /// true if the hit landed + boolean hit(int amount) { + if (invulnerable > 0 || current <= 0) { + return false; + } + current = Math.max(0, current - amount); + invulnerable = invulnerableTicks; + return true; + } + + /// Restores hit points, up to the maximum. + /// + /// #### Parameters + /// + /// - `amount`: hit points to add + public void heal(int amount) { + current = Math.min(max, current + amount); + } + + /// Refills and clears invulnerability, on respawn. + public void reset() { + current = max; + invulnerable = 0; + } + + /// Makes the owner invulnerable for a while, as a power-up or respawn does. + /// + /// #### Parameters + /// + /// - `ticks`: how long + public void grantInvulnerability(int ticks) { + invulnerable = Math.max(invulnerable, ticks); + } + + void tick() { + if (invulnerable > 0) { + invulnerable--; + } + } + + long hash(long h) { + return Ability.mix(Ability.mix(h, current), invulnerable); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Input.java b/CodenameOne/src/com/codename1/gaming/platformer/Input.java new file mode 100644 index 00000000000..f35f1c9db95 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Input.java @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// The buttons a character reads, as bits of one `int` per tick. +/// +/// A tick's input is a single `int`, which is what makes a run cheap to record +/// (`InputLog`) and exact to replay. Touch controls, a keyboard and a gamepad all +/// produce the same bits, so the simulation never knows which one a player used. +@com.codename1.impl.SharedWithBackend +public final class Input { + /// Move left. + public static final int LEFT = 1; + /// Move right. + public static final int RIGHT = 1 << 1; + /// Up: climb, look up, enter a door. + public static final int UP = 1 << 2; + /// Down: crouch, climb down, drop through a one-way platform with `JUMP`. + public static final int DOWN = 1 << 3; + /// Jump. + public static final int JUMP = 1 << 4; + /// Run while held. + public static final int RUN = 1 << 5; + /// Dash. + public static final int DASH = 1 << 6; + /// Use the weapon. + public static final int FIRE = 1 << 7; + /// Activate what the character stands at: a lever, a door, a sign. + public static final int ACTIVATE = 1 << 8; + /// Use the jetpack or glide while held (an ability decides which). + public static final int ALT = 1 << 9; + + /// Every defined bit. + public static final int ALL = (1 << 10) - 1; + + private Input() { + } + + /// Whether a button is held this tick. + /// + /// #### Parameters + /// + /// - `bits`: this tick's input + /// - `button`: one of the button constants + /// + /// #### Returns + /// + /// true while held + public static boolean held(int bits, int button) { + return (bits & button) != 0; + } + + /// Whether a button went down this tick. + /// + /// #### Parameters + /// + /// - `bits`: this tick's input + /// - `previous`: the previous tick's input + /// - `button`: one of the button constants + /// + /// #### Returns + /// + /// true on the press edge + public static boolean pressed(int bits, int previous, int button) { + return (bits & button) != 0 && (previous & button) == 0; + } + + /// The horizontal direction held. + /// + /// #### Parameters + /// + /// - `bits`: this tick's input + /// + /// #### Returns + /// + /// -1 for left, 1 for right, 0 for neither or both + public static int horizontal(int bits) { + int d = 0; + if ((bits & LEFT) != 0) { + d--; + } + if ((bits & RIGHT) != 0) { + d++; + } + return d; + } + + /// The vertical direction held. + /// + /// #### Parameters + /// + /// - `bits`: this tick's input + /// + /// #### Returns + /// + /// -1 for up, 1 for down, 0 for neither or both + public static int vertical(int bits) { + int d = 0; + if ((bits & UP) != 0) { + d--; + } + if ((bits & DOWN) != 0) { + d++; + } + return d; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/InputLog.java b/CodenameOne/src/com/codename1/gaming/platformer/InputLog.java new file mode 100644 index 00000000000..149739e35a6 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/InputLog.java @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A recorded run: one `Input` value per tick, run-length encoded. +/// +/// A player rarely changes buttons, so a minute of play (3600 ticks) is typically a +/// few hundred bytes of text. The text form, `bits*count` pairs in hexadecimal +/// separated by commas (`"2*3c,12*8,2*40"`), is what the app uploads and the server +/// replays with `Replay`. +@com.codename1.impl.SharedWithBackend +public final class InputLog { + private int[] values = new int[16]; + private int[] counts = new int[16]; + private int runs; + private int length; + + /// Appends one tick. + /// + /// #### Parameters + /// + /// - `bits`: the tick's `Input` bits + public void add(int bits) { + int b = bits & Input.ALL; + if (runs > 0 && values[runs - 1] == b) { + counts[runs - 1]++; + } else { + if (runs == values.length) { + int[] nv = new int[runs * 2]; + int[] nc = new int[runs * 2]; + System.arraycopy(values, 0, nv, 0, runs); + System.arraycopy(counts, 0, nc, 0, runs); + values = nv; + counts = nc; + } + values[runs] = b; + counts[runs] = 1; + runs++; + } + length++; + } + + /// The number of ticks recorded. + /// + /// #### Returns + /// + /// the tick count + public int length() { + return length; + } + + /// The input at a tick. + /// + /// #### Parameters + /// + /// - `tick`: a tick in `[0, length())` + /// + /// #### Returns + /// + /// the `Input` bits + public int get(int tick) { + int t = tick; + for (int i = 0; i < runs; i++) { + if (t < counts[i]) { + return values[i]; + } + t -= counts[i]; + } + throw new IndexOutOfBoundsException("tick " + tick + " of " + length); + } + + /// Expands the log into one value per tick. + /// + /// #### Returns + /// + /// a new array of `length()` values + public int[] toArray() { + int[] out = new int[length]; + int p = 0; + for (int i = 0; i < runs; i++) { + for (int k = 0; k < counts[i]; k++) { + out[p++] = values[i]; + } + } + return out; + } + + /// The compact text form. + /// + /// #### Returns + /// + /// the encoded log + public String encode() { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < runs; i++) { + if (i > 0) { + sb.append(','); + } + sb.append(Integer.toHexString(values[i])).append('*').append(Integer.toHexString(counts[i])); + } + return sb.toString(); + } + + /// Reads the text form. + /// + /// #### Parameters + /// + /// - `text`: an encoded log + /// - `maxTicks`: the longest log accepted, so a hostile upload cannot claim + /// billions of ticks + /// + /// #### Returns + /// + /// the log + /// + /// #### Throws + /// + /// - `IllegalArgumentException`: on malformed text or a log over `maxTicks` + public static InputLog decode(String text, int maxTicks) { + InputLog log = new InputLog(); + if (text.length() == 0) { + return log; + } + int start = 0; + while (start <= text.length()) { + int end = text.indexOf(',', start); + if (end < 0) { + end = text.length(); + } + int star = text.indexOf('*', start); + if (star < 0 || star > end) { + throw new IllegalArgumentException("Bad run at " + start); + } + int bits = parseHex(text, start, star); + int count = parseHex(text, star + 1, end); + if (count <= 0 || (bits & ~Input.ALL) != 0 || (long) log.length + count > maxTicks) { + throw new IllegalArgumentException("Bad run at " + start); + } + for (int k = 0; k < count; k++) { + log.add(bits); + } + start = end + 1; + } + return log; + } + + private static int parseHex(String s, int from, int to) { + if (to <= from || to - from > 7) { + throw new IllegalArgumentException("Bad number at " + from); + } + int v = 0; + for (int i = from; i < to; i++) { + char c = s.charAt(i); + int d; + if (c >= '0' && c <= '9') { + d = c - '0'; + } else if (c >= 'a' && c <= 'f') { + d = c - 'a' + 10; + } else { + throw new IllegalArgumentException("Bad digit at " + i); + } + v = v * 16 + d; + } + return v; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/JetpackAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/JetpackAbility.java new file mode 100644 index 00000000000..17f53d1ef06 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/JetpackAbility.java @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A jetpack: holding `Input#ALT` in the air thrusts upward while fuel lasts; fuel +/// refills on the ground. +@com.codename1.impl.SharedWithBackend +public class JetpackAbility extends Ability { + /// Upward acceleration while thrusting, fixed point per tick squared. + public int thrust = Fx.ratio(9, 20); + /// Fastest rise, fixed point per tick. + public int maxRise = Fx.of(3); + /// Ticks of thrust on a full tank. + public int fuelTicks = 90; + /// Fuel regained per tick on the ground. + public int refill = 3; + + private int fuel = -1; + + @Override + public void process(Actor c, PlatformWorld world) { + if (fuel < 0) { + fuel = fuelTicks; + } + Body b = c.getBody(); + if (b.isGrounded()) { + fuel = Math.min(fuelTicks, fuel + refill); + } + MovementState s = c.getState(); + if (!c.held(Input.ALT) || fuel == 0 || b.isGrounded() || s == MovementState.CLIMBING + || s == MovementState.DASHING) { + return; + } + fuel--; + b.vy = Math.max(-maxRise, b.vy - thrust); + c.suspendGravity(); + c.claimState(MovementState.JETPACKING); + } + + /// Fuel left, for the HUD. + /// + /// #### Returns + /// + /// ticks of thrust remaining + public int getFuel() { + return fuel < 0 ? fuelTicks : fuel; + } + + @Override + public long hashState(long h) { + return mix(h, fuel); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java new file mode 100644 index 00000000000..59dca6b9be7 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Jumping, with the forgiveness that makes a platformer feel right: +/// +/// - **Coyote time**: a jump still works for `coyoteTicks` after walking off a ledge. +/// - **Jump buffering**: a press up to `bufferTicks` before landing jumps on landing. +/// - **Variable height**: releasing the button while rising cuts the jump. +/// - **Multi-jump**: `maxJumps` above 1 allows double (or more) jumps in the air. +/// - **Drop through**: down + jump on a one-way platform falls through it instead. +@com.codename1.impl.SharedWithBackend +public class JumpAbility extends Ability { + /// Upward speed at take-off, fixed point per tick. + public int jumpSpeed = Fx.ratio(23, 5); + /// Upward speed of an air jump. + public int airJumpSpeed = Fx.of(4); + /// Jumps allowed before landing again; 2 is a double jump. + public int maxJumps = 1; + /// Ticks after leaving the ground that a jump is still a ground jump. + public int coyoteTicks = 6; + /// Ticks a press is remembered before landing. + public int bufferTicks = 6; + /// Fraction of upward speed kept when the button is released early. + public int releaseCut = Fx.HALF; + + private int jumpsUsed; + private int buffer; + private boolean rising; + + @Override + public void earlyProcess(Actor c, PlatformWorld world) { + if (c.pressed(Input.JUMP)) { + buffer = bufferTicks + 1; + } else if (buffer > 0) { + buffer--; + } + } + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + if (c.getState() == MovementState.DEAD) { + return; + } + if (rising && b.vy < 0 && c.released(Input.JUMP)) { + b.vy = Fx.mul(b.vy, releaseCut); + rising = false; + } + if (buffer == 0 || c.isJumpConsumed()) { + return; + } + boolean grounded = b.isGrounded() || c.getState() == MovementState.CLIMBING; + boolean coyote = !grounded && c.getAirTicks() <= coyoteTicks && jumpsUsed == 0; + if (b.isGrounded() && c.held(Input.DOWN) && b.isOnOneWay()) { + b.dropThrough(10); + buffer = 0; + c.consumeJump(); + return; + } + if (grounded || coyote) { + b.vy = -jumpSpeed; + jumpsUsed = 1; + } else if (jumpsUsed < maxJumps) { + b.vy = -airJumpSpeed; + jumpsUsed = Math.max(jumpsUsed, 1) + 1; + } else { + return; + } + buffer = 0; + rising = true; + c.consumeJump(); + c.claimState(MovementState.JUMPING); + } + + @Override + public void lateProcess(Actor c, PlatformWorld world) { + Body b = c.getBody(); + if (b.isGrounded() && b.vy >= 0) { + jumpsUsed = 0; + rising = false; + } + if (b.hitCeiling()) { + rising = false; + } + } + + /// Lets the character jump again in the air, as a wall jump or a bounce does. + /// + /// #### Parameters + /// + /// - `used`: jumps to count as used afterwards + public void resetJumps(int used) { + jumpsUsed = used; + rising = true; + } + + @Override + public long hashState(long h) { + return mix(mix(mix(h, jumpsUsed), buffer), rising ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java new file mode 100644 index 00000000000..79e0943b391 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Climbing `Tile#LADDER` cells. Up or down while overlapping a ladder grabs it: +/// gravity stops, the character centres on the ladder and moves at `climbSpeed`. +/// Jumping lets go (`JumpAbility` treats a ladder as ground), as does climbing off +/// either end. Standing on top of a ladder and holding down climbs down through it. +/// +/// Add it before `JumpAbility` so a jump from the ladder sees the climbing state. +@com.codename1.impl.SharedWithBackend +public class LadderAbility extends Ability { + /// Climbing speed, fixed point per tick. + public int climbSpeed = Fx.ratio(6, 5); + + private boolean climbing; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + TileGrid g = world.getGrid(); + int cx = b.x + b.w / 2; + int col = g.col(cx); + int v = Input.vertical(c.getInput()); + boolean onLadder = ladderAt(g, col, b.y, b.h); + boolean ladderBelow = b.isGrounded() && g.get(col, g.row(b.y + b.h)) == Tile.LADDER; + if (!climbing && c.getState() != MovementState.DASHING && v != 0 + && ((v < 0 && onLadder) || (v > 0 && (onLadder || ladderBelow)))) { + if (!(v > 0 && b.isGrounded() && !ladderBelow)) { + climbing = true; + } + } + if (climbing && (c.pressed(Input.JUMP) || !(onLadder || ladderBelow))) { + climbing = false; + b.setIgnoreOneWay(false); + } + if (!climbing) { + return; + } + int ts = g.getTileSize(); + b.x = col * ts + (ts - b.w) / 2; + b.vx = 0; + b.vy = v * climbSpeed; + b.setIgnoreOneWay(v > 0 || !b.isGrounded()); + c.suspendGravity(); + c.claimState(MovementState.CLIMBING); + } + + @Override + public void lateProcess(Actor c, PlatformWorld world) { + Body b = c.getBody(); + TileGrid g = world.getGrid(); + if (climbing && b.isGrounded() && Input.vertical(c.getInput()) >= 0 + && g.get(g.col(b.x + b.w / 2), g.row(b.y + b.h)) != Tile.LADDER) { + climbing = false; + b.setIgnoreOneWay(false); + } + } + + private static boolean ladderAt(TileGrid g, int col, int y, int h) { + int r1 = g.row(y + h - 1); + for (int r = g.row(y); r <= r1; r++) { + if (g.get(col, r) == Tile.LADDER) { + return true; + } + } + return false; + } + + /// Whether the character is on a ladder. + /// + /// #### Returns + /// + /// true while climbing + public boolean isClimbing() { + return climbing; + } + + @Override + public long hashState(long h) { + return mix(h, climbing ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java new file mode 100644 index 00000000000..c2d69ab5b37 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java @@ -0,0 +1,455 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.List; +import java.util.Map; + +/// A platformer level as data, read from JSON and turned into a `PlatformWorld`. +/// +/// The format is meant to be written by hand, by the level editor and by a +/// language model alike. Positions and sizes are in tiles, speeds in pixels per +/// tick, and every number may be a decimal (read exactly, see `LevelJson`): +/// +/// ```json +/// { +/// "name": "First steps", +/// "tileSize": 16, +/// "tiles": [ +/// "#..............#", +/// "#.........====.#", +/// "#.....H........#", +/// "#.....H..../####", +/// "################" +/// ], +/// "spawn": [1, 3], +/// "goal": [14, 2, 1, 1], +/// "platforms": [{"path": [[3, 2], [8, 2]], "w": 2, "speed": 0.75, "pause": 30}], +/// "abilities": ["move", "ladder", "walljump", "jump", "crouch", "dash"], +/// "tuning": {"maxJumps": 2, "jumpSpeed": 4.6} +/// } +/// ``` +/// +/// `tiles` uses the characters listed on `Tile`. `abilities` lists the hero's +/// abilities in processing order (names on `Abilities`); omitted, the hero gets +/// move, ladder, walljump, jump, crouch and dash. `tuning` keys are listed on +/// `applyTuning`. `health` gives the hero hit points (otherwise one hit kills) and +/// `lives` limits retries (otherwise unlimited). +/// +/// `entities` places everything else, each with `"type"` and `"at": [col, row]`: +/// `coin`, `gem`, `heart`, `life`, `key` and `powerup` (`name`: the key or the +/// ability), `spring` (`power`), `checkpoint`, `door` (`key`, `h`), `gate` +/// (`channel`, `w`, `h`, `inverted`), `lever` and `plate` (`channel`), `crumble` +/// (`w`, `delay`, `respawn`) and `enemy` (`kind`, `brain`, `hp`, `damage`, +/// `speed`, `range`, `stompable`). Other types go to an `EntityFactory`. +@com.codename1.impl.SharedWithBackend +public final class LevelData { + private final Map json; + private final String name; + private final int tileSize; + private final String[] tiles; + + private LevelData(Map json) { + this.json = json; + this.name = LevelJson.str(json, "name", "Untitled"); + this.tileSize = LevelJson.integer(json, "tileSize", 16); + List rows = LevelJson.list(json, "tiles"); + if (rows.isEmpty()) { + throw new IllegalArgumentException("A level needs \"tiles\""); + } + tiles = new String[rows.size()]; + for (int i = 0; i < tiles.length; i++) { + Object r = rows.get(i); + if (!(r instanceof String)) { + throw new IllegalArgumentException("tiles[" + i + "] is not a string"); + } + tiles[i] = (String) r; + } + } + + /// Reads a level. + /// + /// #### Parameters + /// + /// - `text`: the level JSON + /// + /// #### Returns + /// + /// the level + /// + /// #### Throws + /// + /// - `IllegalArgumentException`: when the JSON or the level is malformed + @SuppressWarnings("unchecked") + public static LevelData parse(String text) { + Object v = LevelJson.parse(text); + if (!(v instanceof Map)) { + throw new IllegalArgumentException("A level is a JSON object"); + } + return new LevelData((Map) v); + } + + /// The level's name. + /// + /// #### Returns + /// + /// the name + public String getName() { + return name; + } + + /// The tile size in pixels. + /// + /// #### Returns + /// + /// the tile size + public int getTileSize() { + return tileSize; + } + + /// The parsed JSON, for game-specific fields (enemies, pickups, art). + /// + /// #### Returns + /// + /// the root object + public Map getJson() { + return json; + } + + /// The tile rows. + /// + /// #### Returns + /// + /// a copy of the rows, top first + public String[] getTiles() { + String[] copy = new String[tiles.length]; + System.arraycopy(tiles, 0, copy, 0, tiles.length); + return copy; + } + + /// Builds a fresh world with the hero at the spawn point. + /// + /// #### Parameters + /// + /// - `seed`: the random seed + /// + /// #### Returns + /// + /// a world ready to step + public PlatformWorld createWorld(long seed) { + return createWorld(seed, null); + } + + /// Builds a fresh world, creating unknown entity types through a factory. + /// + /// #### Parameters + /// + /// - `seed`: the random seed + /// - `factory`: the game's own entity types, may be null + /// + /// #### Returns + /// + /// a world ready to step + public PlatformWorld createWorld(long seed, EntityFactory factory) { + TileGrid grid = TileGrid.parse(tiles, tileSize); + PlatformWorld world = new PlatformWorld(grid, seed); + int ts = grid.getTileSize(); + int heroW = Fx.mul(ts, Fx.ratio(3, 4)); + int heroH = ts + ts / 2 - Fx.of(2); + List spawn = LevelJson.list(json, "spawn"); + int sc = spawn.size() >= 2 ? Fx.floor(num(spawn.get(0))) : 1; + int sr = spawn.size() >= 2 ? Fx.floor(num(spawn.get(1))) : 1; + int sx = sc * ts + (ts - heroW) / 2; + int sy = (sr + 1) * ts - heroH; + world.setSpawn(sx, sy); + List goal = LevelJson.list(json, "goal"); + if (goal.size() >= 2) { + int gw = goal.size() >= 4 ? Fx.mul(num(goal.get(2)), ts) : ts; + int gh = goal.size() >= 4 ? Fx.mul(num(goal.get(3)), ts) : ts; + world.setGoal(Fx.mul(num(goal.get(0)), ts), Fx.mul(num(goal.get(1)), ts), gw, gh); + } + List plats = LevelJson.list(json, "platforms"); + for (int i = 0; i < plats.size(); i++) { + world.addPlatform(platform(plats.get(i), ts)); + } + Actor hero = new Actor("hero", sx, sy, heroW, heroH); + hero.getBody().setStepHeight(Math.max(Fx.of(1), ts / 2 - Fx.of(1))); + List names = LevelJson.list(json, "abilities"); + if (names.isEmpty()) { + String[] all = {"move", "ladder", "walljump", "jump", "crouch", "dash"}; + for (int i = 0; i < all.length; i++) { + addAbility(hero, all[i], ts); + } + } else { + for (int i = 0; i < names.size(); i++) { + Object n = names.get(i); + if (n instanceof String) { + addAbility(hero, (String) n, ts); + } + } + } + applyTuning(hero, LevelJson.obj(json, "tuning")); + int hp = LevelJson.integer(json, "health", 0); + if (hp > 0) { + hero.setHealth(new Health(hp)); + } + world.setLives(LevelJson.integer(json, "lives", -1)); + world.addCharacter(hero); + List ents = LevelJson.list(json, "entities"); + for (int i = 0; i < ents.size(); i++) { + addEntity(world, ents.get(i), i, ts, factory); + } + return world; + } + + @SuppressWarnings("unchecked") + private static void addEntity(PlatformWorld world, Object o, int index, int ts, EntityFactory factory) { + if (!(o instanceof Map)) { + throw new IllegalArgumentException("entities[" + index + "] is not an object"); + } + Map m = (Map) o; + String type = LevelJson.str(m, "type", ""); + String id = LevelJson.str(m, "id", type + index); + List at = LevelJson.list(m, "at"); + if (at.size() < 2) { + throw new IllegalArgumentException("entities[" + index + "] needs \"at\": [col, row]"); + } + int x = Fx.mul(num(at.get(0)), ts); + int y = Fx.mul(num(at.get(1)), ts); + int w = Fx.mul(LevelJson.fx(m, "w", Fx.ONE), ts); + int h = Fx.mul(LevelJson.fx(m, "h", Fx.ONE), ts); + if ("enemy".equals(type)) { + world.addCharacter(enemy(id, m, x, y, ts)); + return; + } + Entity e = null; + if (factory != null) { + e = factory.create(id, type, x, y, ts, m); + } + if (e == null) { + e = stockEntity(id, type, m, x, y, w, h, ts); + } + if (e == null) { + throw new IllegalArgumentException("Unknown entity type \"" + type + "\""); + } + world.addEntity(e); + } + + private static Entity stockEntity(String id, String type, Map m, int x, int y, + int w, int h, int ts) { + if ("coin".equals(type) || "gem".equals(type) || "heart".equals(type) || "life".equals(type) + || "key".equals(type) || "powerup".equals(type)) { + int size = ts * 3 / 4; + int def = "gem".equals(type) ? 100 : "coin".equals(type) ? 10 : 1; + return new Pickup(id, type, x + (ts - size) / 2, y + (ts - size) / 2, size, + LevelJson.integer(m, "value", def), LevelJson.str(m, "name", null)); + } + if ("spring".equals(type)) { + int sh = ts / 2; + return new Spring(id, x, y + ts - sh, w, sh, LevelJson.fx(m, "power", Fx.of(7))); + } + if ("checkpoint".equals(type)) { + return new Checkpoint(id, x, y - ts, w, ts * 2); + } + if ("door".equals(type)) { + return new Door(id, x, y, w, Fx.mul(LevelJson.fx(m, "h", Fx.of(2)), ts), + LevelJson.str(m, "key", "")); + } + if ("gate".equals(type)) { + return new Gate(id, x, y, w, h, LevelJson.integer(m, "channel", 0), + Boolean.TRUE.equals(m.get("inverted"))); + } + if ("lever".equals(type) || "plate".equals(type)) { + boolean plate = "plate".equals(type); + int sh = plate ? ts / 4 : ts; + return new Switch(id, x, y + ts - sh, w, sh, LevelJson.integer(m, "channel", 0), plate); + } + if ("crumble".equals(type)) { + return new CrumbleBlock(id, x, y, w, h, LevelJson.integer(m, "delay", 30), + LevelJson.integer(m, "respawn", 180)); + } + return null; + } + + /// Builds a stock enemy. `kind` names the art; `brain` is one of `patrol` + /// (walks, turns at walls and ledges), `walker` (walks off ledges), `chase`, + /// `turret` (stands and shoots), `hopper`, `flyer` (chases through the air) + /// or `boss` (patrols, then chases and shoots below half health). `hp`, + /// `damage`, `speed` and `stompable` tune it. + private static Actor enemy(String id, Map m, int x, int y, int ts) { + String brainName = LevelJson.str(m, "brain", "patrol"); + String kind = LevelJson.str(m, "kind", brainName); + boolean flyer = "flyer".equals(brainName); + int ew = Fx.mul(LevelJson.fx(m, "w", Fx.ratio(3, 4)), ts); + int eh = Fx.mul(LevelJson.fx(m, "h", Fx.ratio(3, 4)), ts); + Actor c = new Actor(id, x + (ts - ew) / 2, y + ts - eh, ew, eh); + c.setKind(kind).setTeam(1); + c.getBody().setStepHeight(ts / 4); + int speed = LevelJson.fx(m, "speed", Fx.ratio(3, 5)); + if (flyer) { + FlyAbility f = new FlyAbility(); + f.speed = speed; + c.addAbility(f); + } else { + MoveAbility mv = new MoveAbility(); + mv.walkSpeed = speed; + mv.canRun = false; + c.addAbility(mv); + JumpAbility j = new JumpAbility(); + j.jumpSpeed = Fx.of(4); + c.addAbility(j); + } + boolean shoots = "turret".equals(brainName) || "boss".equals(brainName); + if (shoots) { + WeaponAbility w = new WeaponAbility(); + w.projectileType = LevelJson.str(m, "projectile", "orb"); + w.speed = Fx.of(2); + w.cooldownTicks = 30; + w.lifeTicks = 120; + w.eightWay = false; + c.addAbility(w); + } + int hp = LevelJson.integer(m, "hp", "boss".equals(brainName) ? 8 : 1); + if (hp > 1) { + Health health = new Health(hp); + health.invulnerableTicks = 30; + c.setHealth(health); + } + c.setContactDamage(LevelJson.integer(m, "damage", 1)); + Object st = m.get("stompable"); + c.setStompable(st instanceof Boolean ? ((Boolean) st).booleanValue() : !"turret".equals(brainName)); + AIBrain brain = new AIBrain(); + int range = Fx.mul(LevelJson.fx(m, "range", Fx.of(6)), ts); + if ("chase".equals(brainName) || flyer) { + AIBrain.State idle = brain.addState("idle", flyer ? new AIBrain.Idle() : new AIBrain.Patrol()); + AIBrain.State chase = brain.addState("chase", new AIBrain.Chase(!flyer)); + idle.addTransition(new AIBrain.TargetWithin(range, false), chase); + chase.addTransition(new AIBrain.Not(new AIBrain.TargetWithin(range * 3 / 2, false)), idle); + } else if ("turret".equals(brainName)) { + AIBrain.State wait = brain.addState("wait", new AIBrain.Idle()); + AIBrain.State fire = brain.addState("fire", new AIBrain.Shoot(LevelJson.integer(m, "interval", 60))); + wait.addTransition(new AIBrain.TargetWithin(range, false), fire); + fire.addTransition(new AIBrain.Not(new AIBrain.TargetWithin(range, false)), wait); + } else if ("hopper".equals(brainName)) { + brain.addState("hop", new AIBrain.Hop(LevelJson.integer(m, "interval", 70))); + } else if ("walker".equals(brainName)) { + brain.addState("walk", new AIBrain.Patrol(false)); + } else if ("boss".equals(brainName)) { + AIBrain.State patrol = brain.addState("patrol", new AIBrain.Both(new AIBrain.Patrol(false), + new AIBrain.Shoot(90))); + AIBrain.State rage = brain.addState("rage", new AIBrain.Both(new AIBrain.Chase(true), + new AIBrain.Shoot(45))); + patrol.addTransition(new AIBrain.HealthAtMost(hp / 2), rage); + } else { + brain.addState("patrol", new AIBrain.Patrol(true)); + } + c.setBrain(brain); + return c; + } + + private static int num(Object o) { + if (o instanceof Integer) { + return ((Integer) o).intValue(); + } + throw new IllegalArgumentException("Expected a number, got " + o); + } + + @SuppressWarnings("unchecked") + private static MovingPlatform platform(Object o, int ts) { + if (!(o instanceof Map)) { + throw new IllegalArgumentException("A platform is an object"); + } + Map m = (Map) o; + List path = LevelJson.list(m, "path"); + if (path.isEmpty()) { + throw new IllegalArgumentException("A platform needs a \"path\""); + } + int[] pts = new int[path.size() * 2]; + for (int i = 0; i < path.size(); i++) { + Object p = path.get(i); + if (!(p instanceof List) || ((List) p).size() < 2) { + throw new IllegalArgumentException("A path point is [col, row]"); + } + List pt = (List) p; + pts[i * 2] = Fx.mul(num(pt.get(0)), ts); + pts[i * 2 + 1] = Fx.mul(num(pt.get(1)), ts); + } + int w = Fx.mul(LevelJson.fx(m, "w", Fx.of(2)), ts); + int h = Fx.mul(LevelJson.fx(m, "h", Fx.ratio(1, 2)), ts); + int speed = LevelJson.fx(m, "speed", Fx.of(1)); + int pause = LevelJson.integer(m, "pause", 0); + return new MovingPlatform(pts, w, h, speed, pause); + } + + private static void addAbility(Actor c, String name, int ts) { + Ability a = Abilities.create(name, ts); + if (a == null) { + throw new IllegalArgumentException("Unknown ability \"" + name + "\""); + } + c.addAbility(a); + } + + /// Applies tuning to a character's abilities. Keys, all optional, in pixels and + /// ticks: `gravity`, `maxFall`, `walkSpeed`, `runSpeed`, `jumpSpeed`, + /// `maxJumps`, `coyoteTicks`, `bufferTicks`, `climbSpeed`, `dashSpeed`, + /// `dashTicks`, `wallSlide`. Unknown keys are ignored so a game can keep its own + /// keys in the same object. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `t`: the tuning object, may be null + public static void applyTuning(Actor c, Map t) { + if (t == null) { + return; + } + c.setGravity(LevelJson.fx(t, "gravity", c.getGravity())); + c.setMaxFall(LevelJson.fx(t, "maxFall", c.getMaxFall())); + MoveAbility m = c.getAbility(MoveAbility.class); + if (m != null) { + m.walkSpeed = LevelJson.fx(t, "walkSpeed", m.walkSpeed); + m.runSpeed = LevelJson.fx(t, "runSpeed", m.runSpeed); + } + JumpAbility j = c.getAbility(JumpAbility.class); + if (j != null) { + j.jumpSpeed = LevelJson.fx(t, "jumpSpeed", j.jumpSpeed); + j.maxJumps = LevelJson.integer(t, "maxJumps", j.maxJumps); + j.coyoteTicks = LevelJson.integer(t, "coyoteTicks", j.coyoteTicks); + j.bufferTicks = LevelJson.integer(t, "bufferTicks", j.bufferTicks); + } + LadderAbility l = c.getAbility(LadderAbility.class); + if (l != null) { + l.climbSpeed = LevelJson.fx(t, "climbSpeed", l.climbSpeed); + } + DashAbility d = c.getAbility(DashAbility.class); + if (d != null) { + d.dashSpeed = LevelJson.fx(t, "dashSpeed", d.dashSpeed); + d.dashTicks = LevelJson.integer(t, "dashTicks", d.dashTicks); + } + WallJumpAbility w = c.getAbility(WallJumpAbility.class); + if (w != null) { + w.slideSpeed = LevelJson.fx(t, "wallSlide", w.slideSpeed); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java b/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java new file mode 100644 index 00000000000..28dd3a6fcb6 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/// A small JSON reader and writer for level files, shared by the app and the +/// server. +/// +/// Numbers are read straight into fixed point (`Fx#parse`) as `Integer`s, never +/// through `double`, so `"speed": 1.5` means exactly the same thing on every +/// runtime. Objects become `Map`, arrays `List`, and `true`, `false` and `null` +/// what one would expect. +@com.codename1.impl.SharedWithBackend +public final class LevelJson { + private final String src; + private int pos; + + private LevelJson(String src) { + this.src = src; + } + + /// Parses JSON text. + /// + /// #### Parameters + /// + /// - `text`: the JSON + /// + /// #### Returns + /// + /// the parsed value + /// + /// #### Throws + /// + /// - `IllegalArgumentException`: on malformed input, naming the offset + public static Object parse(String text) { + LevelJson p = new LevelJson(text); + Object v = p.value(); + p.skipWs(); + if (p.pos != text.length()) { + throw p.error("Trailing characters"); + } + return v; + } + + private IllegalArgumentException error(String msg) { + return new IllegalArgumentException(msg + " at offset " + pos); + } + + private void skipWs() { + while (pos < src.length()) { + char c = src.charAt(pos); + if (c == ' ' || c == '\n' || c == '\r' || c == '\t') { + pos++; + } else { + break; + } + } + } + + private Object value() { + skipWs(); + if (pos >= src.length()) { + throw error("Unexpected end"); + } + char c = src.charAt(pos); + if (c == '{') { + return object(); + } + if (c == '[') { + return array(); + } + if (c == '"') { + return string(); + } + if (src.startsWith("true", pos)) { + pos += 4; + return Boolean.TRUE; + } + if (src.startsWith("false", pos)) { + pos += 5; + return Boolean.FALSE; + } + if (src.startsWith("null", pos)) { + pos += 4; + return null; + } + int start = pos; + while (pos < src.length()) { + char d = src.charAt(pos); + if ((d >= '0' && d <= '9') || d == '-' || d == '+' || d == '.') { + pos++; + } else { + break; + } + } + if (start == pos) { + throw error("Unexpected '" + c + "'"); + } + try { + return Integer.valueOf(Fx.parse(src.substring(start, pos))); + } catch (IllegalArgumentException e) { + throw error(e.getMessage()); + } + } + + private Map object() { + Map m = new HashMap(); + pos++; + skipWs(); + if (pos < src.length() && src.charAt(pos) == '}') { + pos++; + return m; + } + while (true) { + skipWs(); + if (pos >= src.length() || src.charAt(pos) != '"') { + throw error("Expected a key"); + } + String key = string(); + skipWs(); + if (pos >= src.length() || src.charAt(pos) != ':') { + throw error("Expected ':'"); + } + pos++; + m.put(key, value()); + skipWs(); + if (pos >= src.length()) { + throw error("Unclosed object"); + } + char c = src.charAt(pos++); + if (c == '}') { + return m; + } + if (c != ',') { + throw error("Expected ',' or '}'"); + } + } + } + + private List array() { + List l = new ArrayList(); + pos++; + skipWs(); + if (pos < src.length() && src.charAt(pos) == ']') { + pos++; + return l; + } + while (true) { + l.add(value()); + skipWs(); + if (pos >= src.length()) { + throw error("Unclosed array"); + } + char c = src.charAt(pos++); + if (c == ']') { + return l; + } + if (c != ',') { + throw error("Expected ',' or ']'"); + } + } + } + + private String string() { + pos++; + StringBuilder sb = new StringBuilder(); + while (pos < src.length()) { + char c = src.charAt(pos++); + if (c == '"') { + return sb.toString(); + } + if (c == '\\') { + if (pos >= src.length()) { + break; + } + char e = src.charAt(pos++); + switch (e) { + case 'n': + sb.append('\n'); + break; + case 't': + sb.append('\t'); + break; + case 'r': + sb.append('\r'); + break; + case 'b': + sb.append('\b'); + break; + case 'f': + sb.append('\f'); + break; + case 'u': + if (pos + 4 > src.length()) { + throw error("Bad escape"); + } + sb.append((char) Integer.parseInt(src.substring(pos, pos + 4), 16)); + pos += 4; + break; + default: + sb.append(e); + break; + } + } else { + sb.append(c); + } + } + throw error("Unclosed string"); + } + + /// Writes a JSON string literal. + /// + /// #### Parameters + /// + /// - `sb`: the output + /// - `s`: the string + public static void quote(StringBuilder sb, String s) { + sb.append('"'); + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + if (c == '"' || c == '\\') { + sb.append('\\').append(c); + } else if (c == '\n') { + sb.append("\\n"); + } else if (c < 0x20) { + String hex = Integer.toHexString(c); + sb.append("\\u"); + for (int k = hex.length(); k < 4; k++) { + sb.append('0'); + } + sb.append(hex); + } else { + sb.append(c); + } + } + sb.append('"'); + } + + /// A number field as fixed point. + /// + /// #### Parameters + /// + /// - `m`: the object + /// - `key`: the field + /// - `def`: the value when absent, fixed point + /// + /// #### Returns + /// + /// the field, fixed point + public static int fx(Map m, String key, int def) { + Object v = m == null ? null : m.get(key); + return v instanceof Integer ? ((Integer) v).intValue() : def; + } + + /// A number field as a whole number (the fixed-point value floored). + /// + /// #### Parameters + /// + /// - `m`: the object + /// - `key`: the field + /// - `def`: the value when absent + /// + /// #### Returns + /// + /// the field + public static int integer(Map m, String key, int def) { + Object v = m == null ? null : m.get(key); + return v instanceof Integer ? Fx.floor(((Integer) v).intValue()) : def; + } + + /// A string field. + /// + /// #### Parameters + /// + /// - `m`: the object + /// - `key`: the field + /// - `def`: the value when absent + /// + /// #### Returns + /// + /// the field + public static String str(Map m, String key, String def) { + Object v = m == null ? null : m.get(key); + return v instanceof String ? (String) v : def; + } + + /// An object field. + /// + /// #### Parameters + /// + /// - `m`: the object + /// - `key`: the field + /// + /// #### Returns + /// + /// the nested object, or null + @SuppressWarnings("unchecked") + public static Map obj(Map m, String key) { + Object v = m == null ? null : m.get(key); + return v instanceof Map ? (Map) v : null; + } + + /// An array field. + /// + /// #### Parameters + /// + /// - `m`: the object + /// - `key`: the field + /// + /// #### Returns + /// + /// the list, or an empty list + @SuppressWarnings("unchecked") + public static List list(Map m, String key) { + Object v = m == null ? null : m.get(key); + return v instanceof List ? (List) v : new ArrayList(); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LookAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/LookAbility.java new file mode 100644 index 00000000000..027fd913a6f --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/LookAbility.java @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Looking up and down: holding up, or down, while standing still for `delayTicks` +/// sets a look direction that a camera pans by (see `getLook()`). +@com.codename1.impl.SharedWithBackend +public class LookAbility extends Ability { + /// Ticks of holding before the camera pans. + public int delayTicks = 30; + + private int held; + private int look; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + int v = Input.vertical(c.getInput()); + if (v != 0 && b.isGrounded() && Input.horizontal(c.getInput()) == 0 + && c.getState() != MovementState.CLIMBING) { + held++; + } else { + held = 0; + } + look = held >= delayTicks ? v : 0; + } + + /// The look direction: -1 up, 1 down, 0 neither. + /// + /// #### Returns + /// + /// the direction + public int getLook() { + return look; + } + + @Override + public long hashState(long h) { + return mix(mix(h, held), look); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/MoveAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/MoveAbility.java new file mode 100644 index 00000000000..2741b6b3594 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/MoveAbility.java @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Horizontal movement: walking, running while `Input#RUN` is held, crawling while +/// crouched, with separate acceleration on the ground and in the air. +@com.codename1.impl.SharedWithBackend +public class MoveAbility extends Ability { + /// Walking speed, fixed point per tick. + public int walkSpeed = Fx.ratio(3, 2); + /// Running speed, fixed point per tick. + public int runSpeed = Fx.ratio(5, 2); + /// Speed while crouched. + public int crawlSpeed = Fx.ratio(3, 4); + /// Change of speed per tick on the ground. + public int groundAcceleration = Fx.ratio(1, 4); + /// Change of speed per tick on the ground with no input, the friction. + public int groundDeceleration = Fx.ratio(3, 8); + /// Change of speed per tick in the air. + public int airAcceleration = Fx.ratio(3, 20); + /// Whether `Input#RUN` is honoured. + public boolean canRun = true; + + @Override + public void process(Actor c, PlatformWorld world) { + MovementState s = c.getState(); + if (s == MovementState.DASHING || s == MovementState.CLIMBING || s == MovementState.DEAD + || c.isControlLocked()) { + return; + } + Body b = c.getBody(); + int dir = Input.horizontal(c.getInput()); + if (dir != 0) { + c.setFacing(dir); + } + boolean crouched = b.h < c.getStandHeight(); + boolean running = canRun && c.held(Input.RUN) && !crouched; + int speed = crouched ? crawlSpeed : running ? runSpeed : walkSpeed; + int target = dir * speed; + int accel; + if (b.isGrounded()) { + accel = dir == 0 ? groundDeceleration : groundAcceleration; + } else { + accel = airAcceleration; + } + b.vx = Fx.approach(b.vx, target, accel); + if (b.isGrounded() && !crouched && b.vx != 0 && running && dir != 0) { + c.claimState(MovementState.RUNNING); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java b/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java new file mode 100644 index 00000000000..6a0fcc28dec --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// What a `Actor` is doing this tick, which a renderer maps to an animation +/// clip (see `CharacterAnimator`) and abilities read to stay out of each other's +/// way. +@com.codename1.impl.SharedWithBackend +public enum MovementState { + /// Standing still on the ground. + IDLE, + /// Walking. + WALKING, + /// Running. + RUNNING, + /// Crouched in place. + CROUCHING, + /// Moving while crouched. + CRAWLING, + /// Rising after a jump. + JUMPING, + /// In the air, going down. + FALLING, + /// Sliding down a wall. + WALL_CLINGING, + /// Mid dash. + DASHING, + /// On a ladder. + CLIMBING, + /// Thrust from a jetpack. + JETPACKING, + /// Gliding. + GLIDING, + /// In water. + SWIMMING, + /// Hanging from a ledge or a grip point. + GRIPPING, + /// Pushing a block. + PUSHING, + /// Knocked back after a hit. + HURT, + /// Out of health. + DEAD +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java b/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java new file mode 100644 index 00000000000..bc160dda78c --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java @@ -0,0 +1,173 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A platform that travels back and forth along a path of waypoints and carries +/// whatever stands on it. +/// +/// It is solid from above only, like `Tile#ONE_WAY`, so a character can jump up +/// through it. A `PlatformWorld` moves every platform before it moves the +/// characters, and a `Body` standing on one is shifted by the platform's step +/// before its own move, so a rider never slides or sinks. +@com.codename1.impl.SharedWithBackend +public final class MovingPlatform { + private final int[] path; + private final int speed; + private final int width; + private final int height; + private final int pauseTicks; + private int x; + private int y; + private int target; + private int direction = 1; + private int dx; + private int dy; + private int wait; + + /// Creates a platform at the first waypoint. + /// + /// #### Parameters + /// + /// - `path`: waypoint coordinates of the platform's top-left corner, fixed point, + /// as `x0, y0, x1, y1, ...`; at least one point + /// - `width`: the width, fixed point + /// - `height`: the height, fixed point + /// - `speed`: distance per tick, fixed point + /// - `pauseTicks`: ticks to wait at each end of the path + public MovingPlatform(int[] path, int width, int height, int speed, int pauseTicks) { + if (path.length < 2 || (path.length & 1) != 0) { + throw new IllegalArgumentException("A path needs x,y pairs"); + } + this.path = new int[path.length]; + System.arraycopy(path, 0, this.path, 0, path.length); + this.width = width; + this.height = height; + this.speed = speed; + this.pauseTicks = pauseTicks; + this.x = path[0]; + this.y = path[1]; + this.target = path.length > 2 ? 1 : 0; + } + + /// Advances one tick. + public void step() { + int ox = x; + int oy = y; + if (wait > 0) { + wait--; + } else if (path.length > 2) { + int remaining = speed; + int guard = path.length; + while (remaining > 0 && guard-- > 0) { + int tx = path[target * 2]; + int ty = path[target * 2 + 1]; + int ddx = tx - x; + int ddy = ty - y; + int dist = Math.abs(ddx) + Math.abs(ddy); + if (dist <= remaining) { + x = tx; + y = ty; + remaining -= dist; + advanceTarget(); + if (wait > 0) { + break; + } + } else { + // Manhattan-normalised step keeps this exact in integers; paths + // are horizontal or vertical in practice, where it is exact. + x += (int) ((long) ddx * remaining / dist); + y += (int) ((long) ddy * remaining / dist); + remaining = 0; + } + } + } + dx = x - ox; + dy = y - oy; + } + + private void advanceTarget() { + int points = path.length / 2; + int next = target + direction; + if (next < 0 || next >= points) { + direction = -direction; + next = target + direction; + wait = pauseTicks; + } + target = next; + } + + /// Left edge, fixed point. + /// + /// #### Returns + /// + /// the x of the top-left corner + public int getX() { + return x; + } + + /// Top edge, fixed point. + /// + /// #### Returns + /// + /// the y of the top-left corner + public int getY() { + return y; + } + + /// Width, fixed point. + /// + /// #### Returns + /// + /// the width + public int getWidth() { + return width; + } + + /// Height, fixed point. + /// + /// #### Returns + /// + /// the height + public int getHeight() { + return height; + } + + /// How far the platform moved horizontally in the last tick. + /// + /// #### Returns + /// + /// the x delta, fixed point + public int getDx() { + return dx; + } + + /// How far the platform moved vertically in the last tick. + /// + /// #### Returns + /// + /// the y delta, fixed point + public int getDy() { + return dy; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java b/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java new file mode 100644 index 00000000000..371572e81a1 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A collectible: a coin or gem that scores, a heart that heals, a key, an extra +/// life, or a power-up that switches an ability on. +/// +/// Only the player collects pickups. The kind is the entity type, and decides the +/// effect: +/// +/// | Type | Effect | +/// |---|---| +/// | `coin` | +1 coin, + `value` score | +/// | `gem` | + `value` score, counted as a secret | +/// | `heart` | heals `value` | +/// | `life` | +1 life | +/// | `key` | adds key `name` to the inventory | +/// | `powerup` | enables the ability named `name` (`"dash"`, `"walljump"`, `"jetpack"`, ...) | +/// | anything else | + `value` score | +@com.codename1.impl.SharedWithBackend +public class Pickup extends Entity { + private final int value; + private final String name; + + /// Creates a pickup. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `type`: the kind, see the class description + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `size`: width and height, fixed point + /// - `value`: score or healing + /// - `name`: the key or ability name, may be null + public Pickup(String id, String type, int x, int y, int size, int value, String name) { + super(id, type, x, y, size, size); + this.value = value; + this.name = name; + } + + /// The pickup's value. + /// + /// #### Returns + /// + /// score or healing + public int getValue() { + return value; + } + + /// The key or ability name. + /// + /// #### Returns + /// + /// the name, or null + public String getName() { + return name; + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + if (c != world.getPlayer() || !isActive()) { + return; + } + String t = getType(); + if ("coin".equals(t)) { + world.addCoins(1); + world.addScore(value); + } else if ("gem".equals(t)) { + world.addScore(value); + world.addSecret(); + } else if ("heart".equals(t)) { + if (c.getHealth() != null) { + c.getHealth().heal(value); + } + } else if ("life".equals(t)) { + world.addLife(); + } else if ("key".equals(t)) { + world.addKey(name); + } else if ("powerup".equals(t)) { + world.enableAbility(c, name); + } else { + world.addScore(value); + } + world.emit(WorldEvent.PICKUP, x + w / 2, y + h / 2, getId(), t); + deactivate(); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java new file mode 100644 index 00000000000..80a84a87b87 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java @@ -0,0 +1,683 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +import java.util.ArrayList; +import java.util.List; + +/// The whole platformer simulation: a `TileGrid`, its `MovingPlatform`s, the +/// `Actor`s and `Entity`s in it, advanced one fixed tick (1/60 s) at a time. +/// +/// The world is deterministic. Given the same level and the same `Input` bits per +/// tick it reaches the same `hash()` on every device and on the server, which is +/// what `Replay` relies on to verify a run. Rendering never feeds back into it: a +/// view reads positions after each step, interpolates between them, and plays +/// the tick's `getEvents()`. +/// +/// It also keeps the level's bookkeeping, the part of Corgi Engine's level and +/// game managers that affects play: score, coins, secrets, keys, lives, the +/// respawn point and the switch channels. +@com.codename1.impl.SharedWithBackend +public class PlatformWorld { + /// The rate the world is designed for. + public static final int TICKS_PER_SECOND = 60; + + private final TileGrid grid; + private final List platforms = new ArrayList(); + private final List characters = new ArrayList(); + private final List entities = new ArrayList(); + private final List pending = new ArrayList(); + private final List events = new ArrayList(); + private final List keys = new ArrayList(); + private final Rng rng; + private int tick; + private int spawnX; + private int spawnY; + private int goalX; + private int goalY; + private int goalW; + private int goalH; + private boolean complete; + private boolean gameOver; + private int deaths; + private int score; + private int coins; + private int secrets; + private int lives = -1; + private int channels; + private int stompBounce = Fx.ratio(7, 2); + private int tileSizeForAbilities; + + /// Creates a world over a grid. + /// + /// #### Parameters + /// + /// - `grid`: the level's collision map + /// - `seed`: the random seed + public PlatformWorld(TileGrid grid, long seed) { + this.grid = grid; + this.rng = new Rng(seed); + this.tileSizeForAbilities = grid.getTileSize(); + } + + /// Adds a moving platform. + /// + /// #### Parameters + /// + /// - `p`: the platform + public void addPlatform(MovingPlatform p) { + platforms.add(p); + } + + /// Adds a character. The first one added is the player, which `step` drives + /// with its first input; characters with a brain ignore their input slot. + /// + /// #### Parameters + /// + /// - `c`: the character + public void addCharacter(Actor c) { + characters.add(c); + } + + /// Adds an entity. Added during a step, it takes part from the next tick. + /// + /// #### Parameters + /// + /// - `e`: the entity + public void addEntity(Entity e) { + pending.add(e); + } + + private void flushPending() { + for (int i = 0; i < pending.size(); i++) { + Entity e = pending.get(i); + entities.add(e); + e.onAdded(this); + } + pending.clear(); + } + + /// Sets where the player starts and comes back after dying. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + public void setSpawn(int x, int y) { + spawnX = x; + spawnY = y; + } + + /// Sets the goal: the level is complete when the player overlaps it. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + public void setGoal(int x, int y, int w, int h) { + goalX = x; + goalY = y; + goalW = w; + goalH = h; + } + + /// Advances one tick with one input per character, in the order they were + /// added. Characters with no input entry get no buttons. + /// + /// #### Parameters + /// + /// - `inputs`: `Input` bits per character + public void step(int[] inputs) { + if (tick == 0) { + flushPending(); + } + tick++; + events.clear(); + if (gameOver) { + return; + } + for (int i = 0; i < platforms.size(); i++) { + platforms.get(i).step(); + } + int n = entities.size(); + for (int i = 0; i < n; i++) { + Entity e = entities.get(i); + if (e.isActive()) { + e.step(this); + } + } + for (int i = 0; i < characters.size(); i++) { + Actor c = characters.get(i); + if (!c.isAlive()) { + continue; + } + int bits; + if (c.getBrain() != null) { + bits = c.getBrain().think(c, this) & Input.ALL; + } else { + bits = inputs != null && i < inputs.length ? inputs[i] & Input.ALL : 0; + } + Body b = c.getBody(); + boolean wasGrounded = b.isGrounded(); + MovementState before = c.getState(); + c.tick(this, bits); + if (wasGrounded && b.vy < 0) { + emit(WorldEvent.JUMP, b.x + b.w / 2, b.y + b.h, c.getId(), null); + } else if (!wasGrounded && b.isGrounded()) { + emit(WorldEvent.LAND, b.x + b.w / 2, b.y + b.h, c.getId(), null); + } + if (c.getState() == MovementState.DASHING && before != MovementState.DASHING) { + emit(WorldEvent.DASH, b.x + b.w / 2, b.y + b.h / 2, c.getId(), null); + } + if (c.isAlive()) { + checkHazards(c); + } + } + interactCharacters(); + for (int i = 0; i < entities.size(); i++) { + Entity e = entities.get(i); + if (!e.isActive()) { + continue; + } + int m = e.getTouchMargin(); + for (int k = 0; k < characters.size() && e.isActive(); k++) { + Actor c = characters.get(k); + if (c.isAlive() && c.getBody().overlaps(e.x - m, e.y - m, e.w + 2 * m, e.h + 2 * m)) { + e.onTouch(this, c); + } + } + } + for (int i = entities.size() - 1; i >= 0; i--) { + if (!entities.get(i).isActive()) { + entities.remove(i); + } + } + flushPending(); + if (!complete && !characters.isEmpty() && goalW > 0) { + Actor p = characters.get(0); + if (p.isAlive() && p.getBody().overlaps(goalX, goalY, goalW, goalH)) { + complete = true; + emit(WorldEvent.COMPLETE, goalX + goalW / 2, goalY + goalH / 2, p.getId(), null); + } + } + } + + /// Advances one tick for a single player. + /// + /// #### Parameters + /// + /// - `input`: the player's `Input` bits + public void step(int input) { + step(new int[] {input}); + } + + private void interactCharacters() { + for (int i = 0; i < characters.size(); i++) { + Actor a = characters.get(i); + if (!a.isAlive()) { + continue; + } + for (int k = 0; k < characters.size(); k++) { + Actor e = characters.get(k); + if (k == i || !e.isAlive() || !a.isAlive() || e.getTeam() == a.getTeam()) { + continue; + } + Body ab = a.getBody(); + Body eb = e.getBody(); + if (!ab.overlaps(eb.x, eb.y, eb.w, eb.h)) { + continue; + } + boolean fromAbove = ab.vy >= 0 && ab.getPreviousY() + ab.h <= eb.y + eb.h / 3; + if (e.isStompable() && fromAbove && a.getTeam() == 0) { + ab.vy = -stompBounce; + ab.y = eb.y - ab.h; + JumpAbility j = a.getAbility(JumpAbility.class); + if (j != null) { + j.resetJumps(1); + } + emit(WorldEvent.STOMP, eb.x + eb.w / 2, eb.y, a.getId(), e.getId()); + damage(e, 1, ab.x + ab.w / 2); + } else if (e.getContactDamage() > 0) { + damage(a, e.getContactDamage(), eb.x + eb.w / 2); + } + } + } + } + + private void checkHazards(Actor c) { + Body b = c.getBody(); + boolean fell = b.y > grid.getHeight() + grid.getTileSize() * 2; + if (fell) { + if (c.getHealth() != null) { + c.getHealth().hit(c.getHealth().getCurrent()); + } + onDeath(c); + return; + } + if (grid.overlaps(b.x + Fx.of(1), b.y + Fx.of(1), b.w - Fx.of(2), b.h - Fx.of(1), Tile.HAZARD)) { + damage(c, 1, b.x + b.w / 2 - c.getFacing()); + } + } + + /// Hurts a character: removes hit points (respecting invulnerability), knocks it + /// away from `fromX`, and kills it at zero. A character without `Health` dies + /// at once. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `amount`: hit points + /// - `fromX`: where the hit came from, fixed point x + /// + /// #### Returns + /// + /// true if the hit landed + public boolean damage(Actor c, int amount, int fromX) { + if (!c.isAlive()) { + return false; + } + Health h = c.getHealth(); + if (h == null) { + emit(WorldEvent.HURT, c.getBody().x + c.getBody().w / 2, c.getBody().y, c.getId(), null); + onDeath(c); + return true; + } + if (!h.hit(amount)) { + return false; + } + Body b = c.getBody(); + emit(WorldEvent.HURT, b.x + b.w / 2, b.y, c.getId(), null); + if (h.getCurrent() <= 0) { + onDeath(c); + return true; + } + int away = b.x + b.w / 2 >= fromX ? 1 : -1; + b.vx = away * h.knockbackX; + b.vy = -h.knockbackY; + c.lockControl(h.stunTicks); + c.forceState(MovementState.HURT); + return true; + } + + /// Called when a character runs out of health or falls out of the level. The + /// player loses a life and respawns at the last checkpoint, or the game is + /// over; any other character dies. Override to change the rules. + /// + /// #### Parameters + /// + /// - `c`: the character + protected void onDeath(Actor c) { + Body b = c.getBody(); + emit(WorldEvent.DEATH, b.x + b.w / 2, b.y + b.h / 2, c.getId(), c.getKind()); + if (!characters.isEmpty() && c == characters.get(0)) { + deaths++; + if (lives > 0) { + lives--; + } + if (lives == 0) { + c.kill(); + gameOver = true; + emit(WorldEvent.GAME_OVER, b.x, b.y, c.getId(), null); + return; + } + c.respawn(spawnX, spawnY); + if (c.getHealth() != null) { + c.getHealth().grantInvulnerability(60); + } + } else { + c.kill(); + } + } + + /// Records an event for the view. + /// + /// #### Parameters + /// + /// - `type`: a `WorldEvent` constant + /// - `x`: where, fixed point + /// - `y`: where, fixed point + /// - `subject`: the id involved, may be null + /// - `detail`: extra detail, may be null + public void emit(int type, int x, int y, String subject, String detail) { + events.add(new WorldEvent(type, x, y, subject, detail)); + } + + /// The events of the last tick. + /// + /// #### Returns + /// + /// the live list, cleared at the start of each step + public List getEvents() { + return events; + } + + /// Switches an ability on for a character, creating it if the character lacks + /// it, as a power-up does. + /// + /// #### Parameters + /// + /// - `c`: the character + /// - `name`: a stock ability name (see `Abilities`) + public void enableAbility(Actor c, String name) { + Class type = Abilities.typeOf(name); + if (type == null) { + return; + } + Ability a = c.getAbility(type); + if (a == null) { + a = Abilities.create(name, tileSizeForAbilities); + c.addAbility(a); + } + a.setEnabled(true); + } + + /// Whether a switch channel is on. + /// + /// #### Parameters + /// + /// - `channel`: 0 to 31 + /// + /// #### Returns + /// + /// true while on + public boolean isChannelOn(int channel) { + return (channels & (1 << (channel & 31))) != 0; + } + + /// Turns a switch channel on or off. + /// + /// #### Parameters + /// + /// - `channel`: 0 to 31 + /// - `on`: the new state + public void setChannel(int channel, boolean on) { + int bit = 1 << (channel & 31); + channels = on ? channels | bit : channels & ~bit; + } + + /// Adds to the score. + /// + /// #### Parameters + /// + /// - `points`: the points + public void addScore(int points) { + score += points; + } + + /// Adds coins. + /// + /// #### Parameters + /// + /// - `n`: the coins + public void addCoins(int n) { + coins += n; + } + + /// Counts a secret found. + public void addSecret() { + secrets++; + } + + /// Adds a life, when lives are limited. + public void addLife() { + if (lives >= 0) { + lives++; + } + } + + /// Adds a key to the inventory. + /// + /// #### Parameters + /// + /// - `name`: the key name + public void addKey(String name) { + keys.add(name == null ? "" : name); + } + + /// Uses up a key. + /// + /// #### Parameters + /// + /// - `name`: the key name + /// + /// #### Returns + /// + /// true if the key was held + public boolean useKey(String name) { + return keys.remove(name == null ? "" : name); + } + + /// The keys held. + /// + /// #### Returns + /// + /// the live list + public List getKeys() { + return keys; + } + + /// Lives left; negative means unlimited. + /// + /// #### Returns + /// + /// the lives + public int getLives() { + return lives; + } + + /// Sets the lives; negative means unlimited. + /// + /// #### Parameters + /// + /// - `lives`: the lives + public void setLives(int lives) { + this.lives = lives; + } + + /// The upward speed of a stomp bounce. + /// + /// #### Parameters + /// + /// - `speed`: fixed point per tick + public void setStompBounce(int speed) { + this.stompBounce = speed; + } + + /// The score. + /// + /// #### Returns + /// + /// the score + public int getScore() { + return score; + } + + /// The coins collected. + /// + /// #### Returns + /// + /// the coins + public int getCoins() { + return coins; + } + + /// The secrets found. + /// + /// #### Returns + /// + /// the secrets + public int getSecrets() { + return secrets; + } + + /// The collision map. + /// + /// #### Returns + /// + /// the grid + public TileGrid getGrid() { + return grid; + } + + /// The moving platforms. + /// + /// #### Returns + /// + /// the live list + public List getPlatforms() { + return platforms; + } + + /// The characters, the player first. + /// + /// #### Returns + /// + /// the live list + public List getCharacters() { + return characters; + } + + /// The active entities. + /// + /// #### Returns + /// + /// the live list + public List getEntities() { + return entities; + } + + /// The player, the first character added. + /// + /// #### Returns + /// + /// the player, or null in an empty world + public Actor getPlayer() { + return characters.isEmpty() ? null : characters.get(0); + } + + /// The world's random generator. Only the simulation may draw from it. + /// + /// #### Returns + /// + /// the generator + public Rng getRng() { + return rng; + } + + /// Ticks stepped so far. + /// + /// #### Returns + /// + /// the tick count + public int getTick() { + return tick; + } + + /// Whether the player reached the goal. + /// + /// #### Returns + /// + /// true once complete + public boolean isComplete() { + return complete; + } + + /// Whether the player ran out of lives. + /// + /// #### Returns + /// + /// true once the game is over + public boolean isGameOver() { + return gameOver; + } + + /// How many times the player died. + /// + /// #### Returns + /// + /// the death count + public int getDeaths() { + return deaths; + } + + /// Spawn x, fixed point. + /// + /// #### Returns + /// + /// the spawn's left edge + public int getSpawnX() { + return spawnX; + } + + /// Spawn y, fixed point. + /// + /// #### Returns + /// + /// the spawn's top edge + public int getSpawnY() { + return spawnY; + } + + /// The goal rectangle as `{x, y, w, h}`, fixed point. + /// + /// #### Returns + /// + /// a new array + public int[] getGoal() { + return new int[] {goalX, goalY, goalW, goalH}; + } + + /// A 64-bit digest of the whole simulation state. Two worlds that stepped the + /// same level with the same inputs have the same hash; a replay compares it. + /// + /// #### Returns + /// + /// the hash + public long hash() { + long h = 0xcbf29ce484222325L; + h = Ability.mix(h, tick); + h = Ability.mix(h, rng.state()); + h = Ability.mix(h, complete ? 1 : 0); + h = Ability.mix(h, deaths); + h = Ability.mix(h, score); + h = Ability.mix(h, coins); + h = Ability.mix(h, lives); + h = Ability.mix(h, channels); + h = Ability.mix(h, keys.size()); + for (int i = 0; i < platforms.size(); i++) { + MovingPlatform p = platforms.get(i); + h = Ability.mix(h, p.getX()); + h = Ability.mix(h, p.getY()); + } + for (int i = 0; i < characters.size(); i++) { + h = characters.get(i).hash(h); + } + for (int i = 0; i < entities.size(); i++) { + h = entities.get(i).hashState(h); + } + return h; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java b/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java new file mode 100644 index 00000000000..b22fd29839a --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A bullet, arrow or fireball: flies at a fixed velocity, optionally falls, and +/// damages the first character of another team it touches. It disappears on a +/// solid tile, on a hit, or when its range runs out. +@com.codename1.impl.SharedWithBackend +public class Projectile extends Entity { + private final int team; + private final int damage; + private final int gravity; + private int vx; + private int vy; + private int life; + + /// Creates a projectile. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `type`: the kind, for the art (`"bullet"`, `"arrow"`, `"slash"`) + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `size`: width and height, fixed point + /// - `vx`: horizontal speed, fixed point per tick + /// - `vy`: vertical speed, fixed point per tick + /// - `gravity`: downward acceleration, 0 for a straight shot + /// - `team`: the shooter's team; it never hurts its own + /// - `damage`: hit points removed on a hit + /// - `lifeTicks`: ticks before it expires + public Projectile(String id, String type, int x, int y, int size, int vx, int vy, int gravity, + int team, int damage, int lifeTicks) { + super(id, type, x, y, size, size); + this.vx = vx; + this.vy = vy; + this.gravity = gravity; + this.team = team; + this.damage = damage; + this.life = lifeTicks; + } + + /// The horizontal speed, which the view uses to flip the sprite. + /// + /// #### Returns + /// + /// the speed, fixed point per tick + public int getVx() { + return vx; + } + + @Override + public void step(PlatformWorld world) { + if (--life <= 0) { + deactivate(); + return; + } + vy += gravity; + x += vx; + y += vy; + TileGrid g = world.getGrid(); + if (g.blocked(x, y, w, h)) { + world.emit(WorldEvent.IMPACT, x + w / 2, y + h / 2, getId(), null); + deactivate(); + } + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + if (!isActive() || c.getTeam() == team) { + return; + } + // A shot is spent on whatever it hits, even a target that is still + // invulnerable from the last hit: passing through would read as a miss. + world.damage(c, damage, x + w / 2); + world.emit(WorldEvent.IMPACT, x + w / 2, y + h / 2, getId(), c.getId()); + deactivate(); + } + + @Override + public long hashState(long h) { + return Ability.mix(Ability.mix(super.hashState(h), vy), life); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Replay.java b/CodenameOne/src/com/codename1/gaming/platformer/Replay.java new file mode 100644 index 00000000000..144d27e6b82 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Replay.java @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Plays a recorded run against a level and reports what happened, which is how a +/// server verifies a score instead of trusting it. +/// +/// ```java +/// Replay.Result r = Replay.run(LevelData.parse(levelJson), seed, InputLog.decode(upload, 60 * 60 * 15)); +/// if (r.isComplete() && r.getTicks() == claimedTicks) { +/// // the time is real +/// } +/// ``` +@com.codename1.impl.SharedWithBackend +public final class Replay { + private Replay() { + } + + /// The outcome of a replay. + public static final class Result { + private final boolean complete; + private final int ticks; + private final int deaths; + private final long hash; + + Result(boolean complete, int ticks, int deaths, long hash) { + this.complete = complete; + this.ticks = ticks; + this.deaths = deaths; + this.hash = hash; + } + + /// Whether the run reached the goal. + /// + /// #### Returns + /// + /// true if complete + public boolean isComplete() { + return complete; + } + + /// The tick the goal was reached on, or the log's length if never. + /// + /// #### Returns + /// + /// the tick count + public int getTicks() { + return ticks; + } + + /// Deaths during the run. + /// + /// #### Returns + /// + /// the death count + public int getDeaths() { + return deaths; + } + + /// The world hash where the replay stopped. + /// + /// #### Returns + /// + /// the hash + public long getHash() { + return hash; + } + } + + /// Replays a log, stopping at the tick the goal is reached. + /// + /// #### Parameters + /// + /// - `level`: the level + /// - `seed`: the seed the run used + /// - `log`: the recorded input + /// + /// #### Returns + /// + /// the outcome + public static Result run(LevelData level, long seed, InputLog log) { + PlatformWorld w = level.createWorld(seed); + int[] in = log.toArray(); + for (int i = 0; i < in.length && !w.isComplete(); i++) { + w.step(in[i]); + } + return new Result(w.isComplete(), w.getTick(), w.getDeaths(), w.hash()); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Rng.java b/CodenameOne/src/com/codename1/gaming/platformer/Rng.java new file mode 100644 index 00000000000..19722bc3862 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Rng.java @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// SplitMix64, the simulation's only source of randomness. +/// +/// Seeded from the level and the run, it yields the same sequence on every runtime, +/// so an enemy that picks a random patrol turn picks the same one in a replay. +@com.codename1.impl.SharedWithBackend +public final class Rng { + private long state; + + /// Creates a generator. + /// + /// #### Parameters + /// + /// - `seed`: the seed + public Rng(long seed) { + this.state = seed; + } + + /// The next 64 random bits. + /// + /// #### Returns + /// + /// a random `long` + public long nextLong() { + state += 0x9E3779B97F4A7C15L; + long z = state; + z = (z ^ (z >>> 30)) * 0xBF58476D1CE4E5B9L; + z = (z ^ (z >>> 27)) * 0x94D049BB133111EBL; + return z ^ (z >>> 31); + } + + /// A random whole number in `[0, bound)`. + /// + /// #### Parameters + /// + /// - `bound`: the exclusive upper bound, positive + /// + /// #### Returns + /// + /// a random whole number + public int nextInt(int bound) { + long r = (nextLong() >>> 1) % bound; + return (int) r; + } + + /// The generator's state, folded into the world hash. + /// + /// #### Returns + /// + /// the internal state + public long state() { + return state; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Spring.java b/CodenameOne/src/com/codename1/gaming/platformer/Spring.java new file mode 100644 index 00000000000..9b10f8f6b7d --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Spring.java @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A spring pad that launches whoever lands on it upward at `power`, restoring +/// their air jumps. +@com.codename1.impl.SharedWithBackend +public class Spring extends Entity { + private final int power; + private int compressed; + + /// Creates a spring. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + /// - `power`: launch speed, fixed point per tick + public Spring(String id, int x, int y, int w, int h, int power) { + super(id, "spring", x, y, w, h); + this.power = power; + } + + @Override + public int getPhase() { + return compressed > 0 ? 1 : 0; + } + + @Override + public void step(PlatformWorld world) { + if (compressed > 0) { + compressed--; + } + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + Body b = c.getBody(); + if (b.vy < 0 && compressed > 0) { + return; + } + if (b.getPreviousY() + b.h <= y + h / 2 || b.isGrounded()) { + b.vy = -power; + b.y = Math.min(b.y, y - b.h); + compressed = 10; + JumpAbility j = c.getAbility(JumpAbility.class); + if (j != null) { + j.resetJumps(1); + } + world.emit(WorldEvent.BOUNCE, x + w / 2, y, c.getId(), null); + } + } + + @Override + public long hashState(long h) { + return Ability.mix(super.hashState(h), compressed); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java new file mode 100644 index 00000000000..656f12d6821 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Swimming in `Tile#WATER`: weak gravity, a slow sink, and a stroke upward on each +/// jump press. Leaving the water at the surface with a stroke gives a small hop out. +@com.codename1.impl.SharedWithBackend +public class SwimAbility extends Ability { + /// Gravity in water, fixed point per tick squared. + public int waterGravity = Fx.ratio(1, 20); + /// Fastest sink. + public int maxSink = Fx.of(1); + /// Upward speed of a stroke. + public int stroke = Fx.ratio(5, 2); + /// Horizontal speed limit in water. + public int maxSwimSpeed = Fx.of(1); + + private boolean inWater; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + inWater = world.getGrid().overlaps(b.x, b.y + b.h / 2, b.w, b.h / 2, Tile.WATER); + if (!inWater || c.getState() == MovementState.CLIMBING) { + return; + } + c.suspendGravity(); + b.vy = Math.min(b.vy + waterGravity, maxSink); + b.vx = Fx.clamp(b.vx, -maxSwimSpeed, maxSwimSpeed); + if (c.pressed(Input.JUMP) && !c.isJumpConsumed()) { + b.vy = -stroke; + c.consumeJump(); + } + if (c.held(Input.DOWN)) { + b.vy = Math.max(b.vy, maxSink); + } + c.claimState(MovementState.SWIMMING); + } + + /// Whether the character is in water. + /// + /// #### Returns + /// + /// true while swimming + public boolean isInWater() { + return inWater; + } + + @Override + public long hashState(long h) { + return mix(h, inWater ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Switch.java b/CodenameOne/src/com/codename1/gaming/platformer/Switch.java new file mode 100644 index 00000000000..c59656963eb --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Switch.java @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// A lever or a pressure plate on a channel. +/// +/// A lever toggles its channel when the player presses `Input#ACTIVATE` at it; a +/// plate (`plate = true`) holds the channel on while any character stands on it. +@com.codename1.impl.SharedWithBackend +public class Switch extends Entity { + private final int channel; + private final boolean plate; + private boolean pressed; + private boolean on; + + /// Creates a switch. + /// + /// #### Parameters + /// + /// - `id`: the id + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + /// - `channel`: the channel, 0 to 31 + /// - `plate`: true for a pressure plate, false for a lever + public Switch(String id, int x, int y, int w, int h, int channel, boolean plate) { + super(id, plate ? "plate" : "lever", x, y, w, h); + this.channel = channel; + this.plate = plate; + } + + @Override + public int getPhase() { + return on ? 1 : 0; + } + + @Override + public void step(PlatformWorld world) { + if (plate) { + if (on != pressed) { + on = pressed; + world.setChannel(channel, on); + world.emit(WorldEvent.SWITCH, x + w / 2, y, getId(), on ? "on" : "off"); + } + pressed = false; + } + } + + @Override + public void onTouch(PlatformWorld world, Actor c) { + if (plate) { + pressed = true; + } else if (c == world.getPlayer() && c.pressed(Input.ACTIVATE)) { + on = !on; + world.setChannel(channel, on); + world.emit(WorldEvent.SWITCH, x + w / 2, y, getId(), on ? "on" : "off"); + } + } + + @Override + public long hashState(long h) { + return Ability.mix(Ability.mix(super.hashState(h), on ? 1 : 0), pressed ? 1 : 0); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Tile.java b/CodenameOne/src/com/codename1/gaming/platformer/Tile.java new file mode 100644 index 00000000000..04449059245 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/Tile.java @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// The collision kinds a `TileGrid` cell can hold, and the characters a level file +/// writes them with. +/// +/// A level's tiles are rows of text, one character per cell, which a person or a +/// language model can read and write directly: +/// +/// | Char | Kind | Collision | +/// |---|---|---| +/// | `.` or space | `EMPTY` | none | +/// | `#` | `SOLID` | blocks from every side | +/// | `=` | `ONE_WAY` | stands on its top, passes from below and the sides; drop through with down + jump | +/// | `/` | `SLOPE_UP` | 45 degree floor rising to the right | +/// | `\` | `SLOPE_DOWN` | 45 degree floor falling to the right | +/// | `a` `b` | `SLOPE_UP_LOW`, `SLOPE_UP_HIGH` | a 22.5 degree rise, two tiles wide | +/// | `c` `d` | `SLOPE_DOWN_HIGH`, `SLOPE_DOWN_LOW` | a 22.5 degree fall, two tiles wide | +/// | `H` | `LADDER` | climbable; the top rung of a ladder can be stood on | +/// | `^` | `HAZARD` | hurts on touch, no collision | +/// | `~` | `WATER` | a swim volume, no collision | +/// | `r` `f` | aliases for `/` and `\` | for writers that escape backslashes badly | +@com.codename1.impl.SharedWithBackend +public final class Tile { + /// Nothing. + public static final byte EMPTY = 0; + /// A full block. + public static final byte SOLID = 1; + /// A platform that is solid from above only. + public static final byte ONE_WAY = 2; + /// A 45 degree slope rising left to right. + public static final byte SLOPE_UP = 3; + /// A 45 degree slope falling left to right. + public static final byte SLOPE_DOWN = 4; + /// The low half of a 22.5 degree rise. + public static final byte SLOPE_UP_LOW = 5; + /// The high half of a 22.5 degree rise. + public static final byte SLOPE_UP_HIGH = 6; + /// The high half of a 22.5 degree fall. + public static final byte SLOPE_DOWN_HIGH = 7; + /// The low half of a 22.5 degree fall. + public static final byte SLOPE_DOWN_LOW = 8; + /// A climbable ladder. + public static final byte LADDER = 9; + /// A damaging cell such as spikes. + public static final byte HAZARD = 10; + /// Water a character swims in. + public static final byte WATER = 11; + + private Tile() { + } + + /// Maps a level-file character to its kind. + /// + /// #### Parameters + /// + /// - `c`: the character + /// + /// #### Returns + /// + /// the kind, or `-1` for a character that is not a tile + public static int fromChar(char c) { + switch (c) { + case '.': + case ' ': + return EMPTY; + case '#': + return SOLID; + case '=': + return ONE_WAY; + case '/': + case 'r': + return SLOPE_UP; + case '\\': + case 'f': + return SLOPE_DOWN; + case 'a': + return SLOPE_UP_LOW; + case 'b': + return SLOPE_UP_HIGH; + case 'c': + return SLOPE_DOWN_HIGH; + case 'd': + return SLOPE_DOWN_LOW; + case 'H': + return LADDER; + case '^': + return HAZARD; + case '~': + return WATER; + default: + return -1; + } + } + + /// The canonical level-file character for a kind. + /// + /// #### Parameters + /// + /// - `kind`: a tile kind + /// + /// #### Returns + /// + /// its character + public static char toChar(int kind) { + switch (kind) { + case SOLID: + return '#'; + case ONE_WAY: + return '='; + case SLOPE_UP: + return '/'; + case SLOPE_DOWN: + return '\\'; + case SLOPE_UP_LOW: + return 'a'; + case SLOPE_UP_HIGH: + return 'b'; + case SLOPE_DOWN_HIGH: + return 'c'; + case SLOPE_DOWN_LOW: + return 'd'; + case LADDER: + return 'H'; + case HAZARD: + return '^'; + case WATER: + return '~'; + default: + return '.'; + } + } + + /// Whether a kind is one of the slopes. + /// + /// #### Parameters + /// + /// - `kind`: a tile kind + /// + /// #### Returns + /// + /// true for the six slope kinds + public static boolean isSlope(int kind) { + return kind >= SLOPE_UP && kind <= SLOPE_DOWN_LOW; + } + + /// The floor height of a slope at a point across the tile, measured down from + /// the tile's top edge. + /// + /// #### Parameters + /// + /// - `kind`: a slope kind + /// - `lx`: the distance from the tile's left edge, fixed point, in `[0, ts]` + /// - `ts`: the tile size, fixed point + /// + /// #### Returns + /// + /// the distance from the tile's top down to the floor, fixed point + public static int slopeDepth(int kind, int lx, int ts) { + int x = Fx.clamp(lx, 0, ts); + switch (kind) { + case SLOPE_UP: + return ts - x; + case SLOPE_DOWN: + return x; + case SLOPE_UP_LOW: + return ts - x / 2; + case SLOPE_UP_HIGH: + return ts / 2 - x / 2; + case SLOPE_DOWN_HIGH: + return x / 2; + case SLOPE_DOWN_LOW: + return ts / 2 + x / 2; + default: + return 0; + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java b/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java new file mode 100644 index 00000000000..e31c195b82c --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java @@ -0,0 +1,258 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// The collision map of a level: a grid of `Tile` kinds. +/// +/// Cells outside the grid read as `Tile#SOLID` to the left and right, so nothing +/// walks off the side of a level, and as `Tile#EMPTY` above and below, so a +/// character can jump above the top row and falls out of the bottom one (which a +/// `PlatformWorld` treats as a death). +@com.codename1.impl.SharedWithBackend +public final class TileGrid { + private final int cols; + private final int rows; + private final int tileSize; + private final byte[] cells; + + /// Creates an empty grid. + /// + /// #### Parameters + /// + /// - `cols`: the width in tiles + /// - `rows`: the height in tiles + /// - `tileSizePx`: the side of a tile in pixels, a whole number + public TileGrid(int cols, int rows, int tileSizePx) { + if (cols <= 0 || rows <= 0 || tileSizePx <= 1) { + throw new IllegalArgumentException("Bad grid " + cols + "x" + rows + "@" + tileSizePx); + } + this.cols = cols; + this.rows = rows; + this.tileSize = Fx.of(tileSizePx); + this.cells = new byte[cols * rows]; + } + + /// Builds a grid from rows of level-file characters (see `Tile`). Short rows are + /// padded with empty cells. + /// + /// #### Parameters + /// + /// - `lines`: the rows, top first + /// - `tileSizePx`: the side of a tile in pixels + /// + /// #### Returns + /// + /// the grid + /// + /// #### Throws + /// + /// - `IllegalArgumentException`: on a character that is not a tile + public static TileGrid parse(String[] lines, int tileSizePx) { + int w = 1; + for (int i = 0; i < lines.length; i++) { + if (lines[i].length() > w) { + w = lines[i].length(); + } + } + TileGrid g = new TileGrid(w, Math.max(1, lines.length), tileSizePx); + for (int r = 0; r < lines.length; r++) { + String line = lines[r]; + for (int c = 0; c < line.length(); c++) { + int k = Tile.fromChar(line.charAt(c)); + if (k < 0) { + throw new IllegalArgumentException("Unknown tile '" + line.charAt(c) + + "' at column " + c + ", row " + r); + } + g.cells[r * w + c] = (byte) k; + } + } + return g; + } + + /// The width in tiles. + /// + /// #### Returns + /// + /// the column count + public int getCols() { + return cols; + } + + /// The height in tiles. + /// + /// #### Returns + /// + /// the row count + public int getRows() { + return rows; + } + + /// The side of a tile, fixed point. + /// + /// #### Returns + /// + /// the tile size + public int getTileSize() { + return tileSize; + } + + /// The width of the level, fixed point. + /// + /// #### Returns + /// + /// the pixel width scaled by `Fx#ONE` + public int getWidth() { + return cols * tileSize; + } + + /// The height of the level, fixed point. + /// + /// #### Returns + /// + /// the pixel height scaled by `Fx#ONE` + public int getHeight() { + return rows * tileSize; + } + + /// The kind of a cell, with the out-of-bounds rule in the class description. + /// + /// #### Parameters + /// + /// - `c`: the column + /// - `r`: the row + /// + /// #### Returns + /// + /// a `Tile` kind + public int get(int c, int r) { + if (c < 0 || c >= cols) { + return Tile.SOLID; + } + if (r < 0 || r >= rows) { + return Tile.EMPTY; + } + return cells[r * cols + c]; + } + + /// Changes a cell, for breakable blocks and the level editor. Cells outside the + /// grid are ignored. + /// + /// #### Parameters + /// + /// - `c`: the column + /// - `r`: the row + /// - `kind`: the new `Tile` kind + public void set(int c, int r, int kind) { + if (c >= 0 && c < cols && r >= 0 && r < rows) { + cells[r * cols + c] = (byte) kind; + } + } + + /// The column containing a fixed-point x. + /// + /// #### Parameters + /// + /// - `x`: a fixed-point x + /// + /// #### Returns + /// + /// the column index + public int col(int x) { + return Fx.floorDiv(x, tileSize); + } + + /// The row containing a fixed-point y. + /// + /// #### Parameters + /// + /// - `y`: a fixed-point y + /// + /// #### Returns + /// + /// the row index + public int row(int y) { + return Fx.floorDiv(y, tileSize); + } + + /// Whether any cell a rectangle touches is of a kind. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + /// - `kind`: the `Tile` kind + /// + /// #### Returns + /// + /// true if one of the touched cells is `kind` + public boolean overlaps(int x, int y, int w, int h, int kind) { + int c1 = col(x + w - 1); + int r1 = row(y + h - 1); + for (int r = row(y); r <= r1; r++) { + for (int c = col(x); c <= c1; c++) { + if (get(c, r) == kind) { + return true; + } + } + } + return false; + } + + /// Whether a rectangle overlaps any solid cell, as a crouching character asks + /// before it stands up. + /// + /// #### Parameters + /// + /// - `x`: left, fixed point + /// - `y`: top, fixed point + /// - `w`: width, fixed point + /// - `h`: height, fixed point + /// + /// #### Returns + /// + /// true if the rectangle is blocked + public boolean blocked(int x, int y, int w, int h) { + return overlaps(x, y, w, h, Tile.SOLID); + } + + /// The grid as level-file rows, the inverse of `parse`. + /// + /// #### Returns + /// + /// one string per row, top first + public String[] toLines() { + String[] out = new String[rows]; + StringBuilder sb = new StringBuilder(); + for (int r = 0; r < rows; r++) { + sb.setLength(0); + for (int c = 0; c < cols; c++) { + sb.append(Tile.toChar(cells[r * cols + c])); + } + out[r] = sb.toString(); + } + return out; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java new file mode 100644 index 00000000000..ccd2940b4a9 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Wall clinging and wall jumping. Falling while pushing into a wall slows the fall +/// to `slideSpeed`; jumping from the wall (or within `graceTicks` of leaving it) +/// kicks the character up and away, locking control for `lockTicks` so the kick +/// carries before input steers again. +/// +/// Add it before `JumpAbility`, which it pre-empts on the wall. +@com.codename1.impl.SharedWithBackend +public class WallJumpAbility extends Ability { + /// Fastest fall while clinging, fixed point per tick. + public int slideSpeed = Fx.of(1); + /// Horizontal kick of a wall jump. + public int kickX = Fx.ratio(5, 2); + /// Vertical speed of a wall jump. + public int kickY = Fx.ratio(21, 5); + /// Ticks horizontal control is locked after a wall jump. + public int lockTicks = 8; + /// Ticks after leaving a wall that a wall jump still works. + public int graceTicks = 4; + + private int wallSide; + private int grace; + + @Override + public void process(Actor c, PlatformWorld world) { + Body b = c.getBody(); + if (c.getState() == MovementState.CLIMBING || c.getState() == MovementState.DASHING) { + grace = 0; + return; + } + if (grace > 0 && !b.isGrounded() && c.pressed(Input.JUMP) && !c.isJumpConsumed()) { + b.vy = -kickY; + b.vx = -wallSide * kickX; + c.setFacing(-wallSide); + c.lockControl(lockTicks); + c.consumeJump(); + JumpAbility j = c.getAbility(JumpAbility.class); + if (j != null) { + j.resetJumps(1); + } + grace = 0; + c.claimState(MovementState.JUMPING); + return; + } + int dir = Input.horizontal(c.getInput()); + if (!b.isGrounded() && wallSide != 0 && dir == wallSide && b.vy > 0) { + c.suspendGravity(); + b.vy = Math.min(b.vy + c.getGravity(), slideSpeed); + c.claimState(MovementState.WALL_CLINGING); + } + } + + @Override + public void lateProcess(Actor c, PlatformWorld world) { + Body b = c.getBody(); + int dir = Input.horizontal(c.getInput()); + int touching = b.hitLeft() ? -1 : b.hitRight() ? 1 : 0; + if (!b.isGrounded() && touching != 0 && dir == touching) { + wallSide = touching; + grace = graceTicks; + } else { + if (grace > 0) { + grace--; + } + if (grace == 0 || b.isGrounded()) { + wallSide = 0; + grace = 0; + } + } + } + + @Override + public long hashState(long h) { + return mix(mix(h, wallSide), grace); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java new file mode 100644 index 00000000000..57cac4a4371 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Firing on `Input#FIRE`: projectiles (a blaster, a bow) or a melee swing, with a +/// cooldown, optional ammunition and eight-way aiming from the held directions. +/// +/// A melee weapon (`speed` 0) is a short-lived projectile that does not move, +/// placed in front of the character, so one mechanism covers both. +@com.codename1.impl.SharedWithBackend +public class WeaponAbility extends Ability { + /// The projectile's art type. + public String projectileType = "bullet"; + /// Projectile speed, fixed point per tick; 0 makes a melee weapon. + public int speed = Fx.of(5); + /// Projectile size, fixed point. + public int size = Fx.of(4); + /// Gravity on the projectile, 0 for straight shots. + public int gravity; + /// Damage per hit. + public int damage = 1; + /// Ticks between shots. + public int cooldownTicks = 14; + /// Ticks a projectile lives (its range). + public int lifeTicks = 50; + /// Rounds left; negative is unlimited. + public int ammo = -1; + /// Whether up/down aim the shot diagonally or vertically. + public boolean eightWay = true; + /// Whether the trigger can be held for automatic fire. + public boolean automatic; + + private int cooldown; + private int shots; + + @Override + public void process(Actor c, PlatformWorld world) { + if (cooldown > 0) { + cooldown--; + } + boolean trigger = automatic ? c.held(Input.FIRE) : c.pressed(Input.FIRE); + if (!trigger || cooldown > 0 || ammo == 0 || !c.isAlive() + || c.getState() == MovementState.CLIMBING) { + return; + } + cooldown = cooldownTicks; + if (ammo > 0) { + ammo--; + } + Body b = c.getBody(); + int dx = c.getFacing(); + int dy = 0; + if (eightWay) { + int v = Input.vertical(c.getInput()); + int hdir = Input.horizontal(c.getInput()); + if (v != 0) { + dy = v; + dx = hdir; + if (v > 0 && b.isGrounded()) { + dy = 0; + dx = c.getFacing(); + } + } + } + int vx; + int vy; + if (dx != 0 && dy != 0) { + int diag = Fx.mul(speed, 46341); + vx = dx * diag; + vy = dy * diag; + } else { + vx = dx * speed; + vy = dy * speed; + } + int px; + int py = b.y + b.h / 2 - size / 2; + if (speed == 0) { + px = dx >= 0 ? b.x + b.w : b.x - size; + py = b.y + (b.h - size) / 2; + } else { + px = b.x + b.w / 2 - size / 2 + dx * (b.w / 2); + } + shots++; + Projectile p = new Projectile(c.getId() + "#" + shots, projectileType, px, py, size, vx, vy, + gravity, c.getTeam(), damage, lifeTicks); + world.addEntity(p); + world.emit(WorldEvent.FIRE, px, py, c.getId(), projectileType); + } + + @Override + public long hashState(long h) { + return mix(mix(mix(h, cooldown), ammo), shots); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java b/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java new file mode 100644 index 00000000000..00955515aa7 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer; + +/// Something that happened in a tick that a view should show or play: a jump, a +/// coin, a hit. The simulation never calls into a view; it records events, and the +/// view reads `PlatformWorld#getEvents()` after each step to trigger sounds, +/// particles and screen shake. +@com.codename1.impl.SharedWithBackend +public final class WorldEvent { + /// A character jumped. + public static final int JUMP = 1; + /// A character landed. + public static final int LAND = 2; + /// A pickup was collected; `detail` is its kind name. + public static final int PICKUP = 3; + /// A character was hurt. + public static final int HURT = 4; + /// A character died. + public static final int DEATH = 5; + /// The player stomped an enemy. + public static final int STOMP = 6; + /// A weapon fired. + public static final int FIRE = 7; + /// A projectile hit something. + public static final int IMPACT = 8; + /// A checkpoint was reached. + public static final int CHECKPOINT = 9; + /// A spring launched a character. + public static final int BOUNCE = 10; + /// A door opened or a gate changed. + public static final int OPEN = 11; + /// A block crumbled. + public static final int CRUMBLE = 12; + /// A character dashed. + public static final int DASH = 13; + /// The level was completed. + public static final int COMPLETE = 14; + /// The player ran out of lives. + public static final int GAME_OVER = 15; + /// A switch was activated. + public static final int SWITCH = 16; + + private final int type; + private final int x; + private final int y; + private final String subject; + private final String detail; + + /// Creates an event. + /// + /// #### Parameters + /// + /// - `type`: one of the constants + /// - `x`: where, fixed point + /// - `y`: where, fixed point + /// - `subject`: the id of the character or entity involved, may be null + /// - `detail`: extra information such as a pickup kind, may be null + public WorldEvent(int type, int x, int y, String subject, String detail) { + this.type = type; + this.x = x; + this.y = y; + this.subject = subject; + this.detail = detail; + } + + /// The event type. + /// + /// #### Returns + /// + /// one of the constants + public int getType() { + return type; + } + + /// Where it happened. + /// + /// #### Returns + /// + /// x, fixed point + public int getX() { + return x; + } + + /// Where it happened. + /// + /// #### Returns + /// + /// y, fixed point + public int getY() { + return y; + } + + /// The id of the character or entity involved. + /// + /// #### Returns + /// + /// the id, or null + public String getSubject() { + return subject; + } + + /// Extra information. + /// + /// #### Returns + /// + /// the detail, or null + public String getDetail() { + return detail; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/package-info.java b/CodenameOne/src/com/codename1/gaming/platformer/package-info.java new file mode 100644 index 00000000000..532bb130345 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/package-info.java @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +/// A deterministic 2D platformer engine: the character controller, abilities and +/// level model behind the Ledge template, in the spirit of Unity's Corgi Engine. +/// +/// The simulation is integer only (`Fx` fixed point, 60 ticks a second) and shared +/// with the backend, so a run recorded as an `InputLog` replays identically on the +/// server (`Replay`) -- leaderboards, ghosts and speedruns can be verified rather +/// than trusted. +/// +/// - `TileGrid` and `Tile`: the collision map, written as rows of characters. +/// - `Body`: a kinematic box with slopes, one-way platforms, steps and riding. +/// - `MovingPlatform`: waypoint platforms that carry riders. +/// - `Actor` and `Ability`: a body driven by an ordered list of abilities -- +/// `MoveAbility`, `JumpAbility` (coyote time, buffering, variable height, +/// multi-jump, drop-through), `CrouchAbility`, `LadderAbility`, +/// `WallJumpAbility` and `DashAbility`. +/// - `PlatformWorld`: steps everything one tick from `Input` bits. +/// - `LevelData` and `LevelJson`: the JSON level format. +/// - `InputLog` and `Replay`: recording and verifying runs. +package com.codename1.gaming.platformer; diff --git a/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java new file mode 100644 index 00000000000..01683c107f5 --- /dev/null +++ b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java @@ -0,0 +1,455 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ +package com.codename1.gaming.platformer; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +/// Behaviour of the deterministic platformer simulation: the collision controller, +/// the stock abilities and replay. Pure model tests, no `Display`. +class PlatformWorldTest { + + private static PlatformWorld world(String extra, String... rows) { + StringBuilder sb = new StringBuilder("{\"tileSize\":16,\"tiles\":["); + for (int i = 0; i < rows.length; i++) { + if (i > 0) { + sb.append(','); + } + LevelJson.quote(sb, rows[i]); + } + sb.append("],\"spawn\":[1,1]").append(extra).append('}'); + return LevelData.parse(sb.toString()).createWorld(1); + } + + private static final String ROW = ".............................."; + private static final String FLOOR = "##############################"; + + /// A flat 30 x 5 level with the hero spawned on the floor at column 1 and the + /// given extra JSON (entities, abilities, health). + private static PlatformWorld flat(String extra) { + StringBuilder sb = new StringBuilder("{\"tileSize\":16,\"tiles\":["); + for (int i = 0; i < 4; i++) { + LevelJson.quote(sb, ROW); + sb.append(','); + } + LevelJson.quote(sb, FLOOR); + sb.append("],\"spawn\":[1,3]").append(extra).append('}'); + PlatformWorld w = LevelData.parse(sb.toString()).createWorld(1); + run(w, 20, 0); + return w; + } + + private static boolean sawEvent(PlatformWorld w, int ticks, int input, int type) { + boolean seen = false; + for (int i = 0; i < ticks; i++) { + w.step(input); + for (int k = 0; k < w.getEvents().size(); k++) { + seen |= w.getEvents().get(k).getType() == type; + } + } + return seen; + } + + private static void run(PlatformWorld w, int ticks, int input) { + for (int i = 0; i < ticks; i++) { + w.step(input); + } + } + + private static Body hero(PlatformWorld w) { + return w.getPlayer().getBody(); + } + + @Test + void walksUpAndDownSlopesWithoutLeavingTheGround() { + PlatformWorld w = world("", + "....................", + "....................", + "....................", + "....../#\\...........", + "....ab###cd.........", + "####################"); + run(w, 40, 0); + assertTrue(hero(w).isGrounded()); + int startBottom = hero(w).y + hero(w).h; + int airborne = 0; + int highest = startBottom; + for (int i = 0; i < 150; i++) { + w.step(Input.RIGHT); + if (!hero(w).isGrounded()) { + airborne++; + } + highest = Math.min(highest, hero(w).y + hero(w).h); + } + assertEquals(0, airborne, "a walk over a hill never leaves the ground"); + assertTrue(highest <= startBottom - Fx.of(30), "the walk went up the hill"); + assertEquals(startBottom, hero(w).y + hero(w).h, "and back down to the plain"); + } + + @Test + void oneWayPlatformCatchesFromAboveAndDropsThrough() { + PlatformWorld w = world("", + "..........", "..........", "..........", "..====....", "..........", "##########"); + run(w, 30, 0); + run(w, 8, Input.RIGHT); + run(w, 20, 0); + int floor = hero(w).y; + run(w, 15, Input.JUMP); + run(w, 40, 0); + assertTrue(hero(w).isGrounded()); + assertTrue(hero(w).isOnOneWay(), "jumped up through and landed on top"); + assertEquals(Fx.of(48), hero(w).y + hero(w).h); + run(w, 2, Input.JUMP | Input.DOWN); + run(w, 30, 0); + assertEquals(floor, hero(w).y, "down + jump dropped back to the floor"); + } + + @Test + void climbsALadderAndStandsOnItsTop() { + PlatformWorld w = world("", + "..........", "..........", "..====H...", "......H...", "......H...", "##########"); + run(w, 30, 0); + for (int i = 0; i < 200 && hero(w).x < Fx.of(92); i++) { + w.step(Input.RIGHT); + } + run(w, 20, 0); + run(w, 90, Input.UP); + run(w, 20, 0); + assertTrue(hero(w).isGrounded()); + assertEquals(Fx.of(32), hero(w).y + hero(w).h, "standing on the top rung"); + assertEquals(MovementState.IDLE, w.getPlayer().getState()); + run(w, 90, Input.DOWN); + run(w, 5, 0); + assertEquals(Fx.of(80), hero(w).y + hero(w).h, "climbed back down"); + assertEquals(MovementState.IDLE, w.getPlayer().getState(), "let go at the bottom"); + } + + @Test + void movingPlatformCarriesItsRider() { + PlatformWorld w = world(",\"platforms\":[{\"path\":[[0,4],[6,4]],\"w\":4,\"speed\":1}]", + "..........", "..........", "..........", "..........", "..........", + "..........", "..........", ".........."); + run(w, 30, 0); + assertTrue(hero(w).isGrounded()); + assertNotNull(hero(w).getRiding()); + int offset = hero(w).x - w.getPlatforms().get(0).getX(); + run(w, 40, 0); + assertEquals(offset, hero(w).x - w.getPlatforms().get(0).getX(), "no sliding on the platform"); + assertEquals(w.getPlatforms().get(0).getY(), hero(w).y + hero(w).h); + } + + @Test + void clingsToAWallAndJumpsAwayFromIt() { + PlatformWorld w = world("", + "#........#", "#........#", "#........#", "#....#...#", "#....#...#", "#....#...#", + "##########"); + run(w, 30, 0); + run(w, 40, Input.RIGHT); + run(w, 8, Input.RIGHT | Input.JUMP); + run(w, 20, Input.RIGHT); + assertEquals(MovementState.WALL_CLINGING, w.getPlayer().getState()); + assertTrue(hero(w).vy <= Fx.of(1), "a cling slides slowly"); + w.step(Input.RIGHT); + w.step(Input.RIGHT | Input.JUMP); + assertTrue(hero(w).vy < 0); + assertTrue(hero(w).vx < 0, "kicked away from the wall although right is held"); + assertEquals(-1, w.getPlayer().getFacing()); + } + + @Test + void crouchesUnderALowCeilingAndStaysCrouched() { + PlatformWorld w = world("", + "..........", "..........", "...#######", "..........", "##########"); + run(w, 30, 0); + int stand = hero(w).h; + run(w, 80, Input.RIGHT | Input.DOWN); + assertEquals(MovementState.CRAWLING, w.getPlayer().getState()); + assertTrue(hero(w).h < stand); + run(w, 5, Input.RIGHT); + assertTrue(hero(w).h < stand, "cannot stand up under the ceiling"); + } + + @Test + void coyoteTimeAllowsALateJump() { + PlatformWorld w = world("", + "..........", "..........", "####......", "..........", "..........", "##########"); + run(w, 30, 0); + for (int i = 0; i < 200 && hero(w).isGrounded(); i++) { + w.step(Input.RIGHT); + } + run(w, 3, Input.RIGHT); + w.step(Input.RIGHT | Input.JUMP); + assertTrue(hero(w).vy < -Fx.of(4), "jumped four ticks after leaving the ledge"); + } + + @Test + void bufferedJumpFiresOnLanding() { + PlatformWorld w = world("", "..........", "..........", "..........", "..........", "##########"); + for (int i = 0; i < 200 && hero(w).y + hero(w).h < Fx.of(56); i++) { + w.step(0); + } + assertFalse(hero(w).isGrounded()); + w.step(Input.JUMP); + boolean jumped = false; + for (int i = 0; i < 6 && !jumped; i++) { + w.step(Input.JUMP); + jumped = hero(w).vy < 0; + } + assertTrue(jumped, "the press before landing jumped on landing"); + } + + @Test + void dashMovesFastWithoutFalling() { + PlatformWorld w = world("", "....................", "....................", "....................", + "....................", "####################"); + run(w, 30, 0); + run(w, 10, Input.JUMP); + int y = hero(w).y; + int x = hero(w).x; + w.step(Input.RIGHT | Input.DASH); + run(w, 5, Input.RIGHT | Input.DASH); + assertEquals(MovementState.DASHING, w.getPlayer().getState()); + assertEquals(y, hero(w).y, "no gravity mid dash"); + assertEquals(x + Fx.of(30), hero(w).x); + } + + @Test + void hazardsAndFallsRespawnThePlayer() { + PlatformWorld w = world("", "..........", "..........", "..........", "##^^######"); + run(w, 30, 0); + for (int i = 0; i < 60 && w.getDeaths() == 0; i++) { + w.step(Input.RIGHT); + } + assertEquals(1, w.getDeaths()); + assertEquals(w.getSpawnX(), hero(w).x, "back at the spawn point"); + } + + @Test + void replayReproducesTheLiveRunExactly() { + String lvl = "{\"tileSize\":16,\"tiles\":[\"#..........#\",\"#....====..#\",\"#...........#\"," + + "\"#..H.......#\",\"############\"],\"spawn\":[1,3],\"goal\":[10,1,1,1]," + + "\"platforms\":[{\"path\":[[5,3],[8,3]],\"w\":1,\"speed\":0.5,\"pause\":20}]}"; + LevelData ld = LevelData.parse(lvl); + PlatformWorld live = ld.createWorld(7); + InputLog log = new InputLog(); + for (int i = 0; i < 600 && !live.isComplete(); i++) { + int phase = (i / 37) % 3; + int in = phase == 0 ? Input.RIGHT : phase == 1 ? Input.LEFT | Input.RUN : Input.RIGHT | Input.DASH; + if (i % 23 < 5) { + in |= Input.JUMP; + } + log.add(in); + live.step(in); + } + assertTrue(live.isComplete()); + Replay.Result r = Replay.run(ld, 7, InputLog.decode(log.encode(), 100000)); + assertTrue(r.isComplete()); + assertEquals(live.getTick(), r.getTicks()); + assertEquals(live.hash(), r.getHash()); + // Golden: a change to this number is a change to how every recorded run plays. + // Bump the rules version of any game that stores runs when it moves. + assertEquals(0x7f68405691d581e0L, r.getHash()); + } + + @Test + void coinsScoreAndDisappear() { + PlatformWorld w = flat(",\"entities\":[{\"type\":\"coin\",\"at\":[3,3]}," + + "{\"type\":\"gem\",\"at\":[5,3]}]"); + assertTrue(sawEvent(w, 60, Input.RIGHT, WorldEvent.PICKUP)); + assertEquals(1, w.getCoins()); + assertEquals(110, w.getScore()); + assertEquals(1, w.getSecrets()); + assertTrue(w.getEntities().isEmpty()); + } + + @Test + void touchingAnEnemyHurtsButStompingKillsIt() { + PlatformWorld w = flat(",\"entities\":[{\"type\":\"enemy\",\"at\":[12,3]}]"); + run(w, 150, Input.RIGHT); + assertTrue(w.getDeaths() >= 1, "walking into a slime kills a hero with no health"); + + w = flat(",\"entities\":[{\"type\":\"enemy\",\"kind\":\"slime\",\"at\":[6,3],\"brain\":\"walker\"}]"); + Actor slime = w.getCharacters().get(1); + boolean stomped = false; + for (int i = 0; i < 200 && slime.isAlive(); i++) { + Body s = slime.getBody(); + Body h = hero(w); + int dx = s.x - h.x; + int in = dx > Fx.of(20) ? Input.RIGHT : dx < -Fx.of(20) ? Input.LEFT : 0; + if (Math.abs(dx) < Fx.of(40) && h.isGrounded()) { + in |= Input.JUMP; + } + w.step(in); + for (int k = 0; k < w.getEvents().size(); k++) { + stomped |= w.getEvents().get(k).getType() == WorldEvent.STOMP; + } + } + assertTrue(stomped); + assertFalse(slime.isAlive()); + assertEquals(0, w.getDeaths()); + } + + @Test + void aKeyOpensItsDoor() { + PlatformWorld w = flat(",\"entities\":[{\"type\":\"door\",\"at\":[8,2],\"key\":\"red\"}]"); + run(w, 120, Input.RIGHT); + assertTrue(hero(w).x < Fx.of(8 * 16), "a locked door blocks"); + w = flat(",\"entities\":[{\"type\":\"key\",\"at\":[3,3],\"name\":\"red\"}," + + "{\"type\":\"door\",\"at\":[8,2],\"key\":\"red\"}]"); + run(w, 120, Input.RIGHT); + assertTrue(hero(w).x > Fx.of(9 * 16), "the key opened it"); + assertTrue(w.getKeys().isEmpty(), "and was used up"); + } + + @Test + void springsLaunchHigherThanAJump() { + PlatformWorld w = flat(",\"entities\":[{\"type\":\"spring\",\"at\":[4,3]}]"); + int top = Integer.MAX_VALUE; + for (int i = 0; i < 60; i++) { + w.step(Input.RIGHT); + top = Math.min(top, hero(w).y); + } + assertTrue(top < 0, "launched off the top of the screen"); + } + + @Test + void crumblingFloorGivesWay() { + PlatformWorld w = world(",\"entities\":[{\"type\":\"crumble\",\"at\":[2,4],\"w\":3,\"delay\":20," + + "\"respawn\":0}]", "..........", "..........", "..........", "..........", "##......##", + "##########"); + run(w, 20, 0); + assertTrue(sawEvent(w, 30, Input.RIGHT, WorldEvent.CRUMBLE) || sawEvent(w, 40, 0, WorldEvent.CRUMBLE)); + run(w, 30, 0); + assertEquals(Fx.of(80), hero(w).y + hero(w).h, "fell to the floor below"); + } + + @Test + void aLeverOpensItsGate() { + String gate = "{\"type\":\"gate\",\"at\":[7,2],\"h\":2,\"channel\":2}"; + PlatformWorld w = flat(",\"entities\":[" + gate + "]"); + run(w, 90, Input.RIGHT); + assertTrue(hero(w).x < Fx.of(7 * 16)); + w = flat(",\"entities\":[{\"type\":\"lever\",\"at\":[2,3],\"channel\":2}," + gate + "]"); + run(w, 8, Input.RIGHT); + w.step(Input.ACTIVATE); + assertTrue(w.isChannelOn(2)); + run(w, 90, Input.RIGHT); + assertTrue(hero(w).x > Fx.of(8 * 16)); + } + + @Test + void shotsKillAnEnemyWithHitPoints() { + PlatformWorld w = flat(",\"abilities\":[\"move\",\"jump\",\"weapon\"]," + + "\"entities\":[{\"type\":\"enemy\",\"at\":[10,3],\"brain\":\"turret\",\"hp\":2,\"range\":3}]"); + Actor turret = w.getCharacters().get(1); + for (int i = 0; i < 120 && turret.isAlive(); i++) { + w.step(i % 16 == 0 ? Input.FIRE : 0); + } + assertFalse(turret.isAlive()); + } + + @Test + void healthAbsorbsHitsWithInvulnerability() { + PlatformWorld w = flat(",\"health\":3,\"entities\":[{\"type\":\"enemy\",\"at\":[8,3]," + + "\"brain\":\"turret\",\"range\":10,\"interval\":40}]"); + assertTrue(sawEvent(w, 80, 0, WorldEvent.HURT)); + assertEquals(2, w.getPlayer().getHealth().getCurrent()); + assertTrue(w.getPlayer().getHealth().isInvulnerable() || w.getPlayer().getHealth().getCurrent() < 3); + } + + @Test + void runningOutOfLivesEndsTheGame() { + PlatformWorld w = world(",\"lives\":2", ROW, ROW, ROW, "##^^^^^^^^^^^^^^^^^^^^^^^^^^##"); + run(w, 300, Input.RIGHT); + assertTrue(w.isGameOver()); + assertEquals(0, w.getLives()); + assertEquals(2, w.getDeaths()); + } + + @Test + void jetpackSwimAndPowerUps() { + PlatformWorld w = world(",\"abilities\":[\"move\",\"jump\",\"jetpack\"]", ROW, ROW, ROW, ROW, ROW, FLOOR); + run(w, 30, 0); + int floorY = hero(w).y; + w.step(Input.JUMP); + run(w, 40, Input.JUMP | Input.ALT); + assertEquals(MovementState.JETPACKING, w.getPlayer().getState()); + assertTrue(hero(w).y < floorY - Fx.of(48)); + + w = world(",\"abilities\":[\"move\",\"swim\",\"jump\"]", ROW, ROW, ROW, + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", FLOOR); + run(w, 60, 0); + assertEquals(MovementState.SWIMMING, w.getPlayer().getState()); + + w = flat(",\"abilities\":[\"move\",\"jump\"],\"entities\":[{\"type\":\"powerup\",\"at\":[3,3]," + + "\"name\":\"dash\"}]"); + assertNull(w.getPlayer().getAbility(DashAbility.class)); + run(w, 40, Input.RIGHT); + assertNotNull(w.getPlayer().getAbility(DashAbility.class), "the power-up granted the dash"); + } + + @Test + void enemiesAndBossesReplayDeterministically() { + String lvl = "{\"tileSize\":16,\"tiles\":[\"" + ROW + "\",\"" + ROW + "\",\"" + ROW + "\",\"" + ROW + + "\",\"" + FLOOR + "\"],\"spawn\":[1,3],\"health\":3,\"entities\":[" + + "{\"type\":\"enemy\",\"at\":[12,3],\"brain\":\"boss\",\"hp\":4}," + + "{\"type\":\"enemy\",\"at\":[20,1],\"brain\":\"flyer\"}," + + "{\"type\":\"coin\",\"at\":[5,3]}],\"abilities\":[\"move\",\"jump\",\"weapon\"]}"; + PlatformWorld a = LevelData.parse(lvl).createWorld(3); + PlatformWorld b = LevelData.parse(lvl).createWorld(3); + for (int i = 0; i < 900; i++) { + int in = (i % 30 < 4 ? Input.FIRE : 0) | ((i / 60) % 2 == 0 ? Input.RIGHT : Input.LEFT) + | (i % 45 == 0 ? Input.JUMP : 0); + a.step(in); + b.step(in); + } + assertEquals(a.hash(), b.hash()); + assertFalse(a.getCharacters().get(1).isAlive(), "the boss went down"); + } + + @Test + void inputLogRejectsHostileText() { + assertThrows(IllegalArgumentException.class, () -> InputLog.decode("1*ffffff", 1000)); + assertThrows(IllegalArgumentException.class, () -> InputLog.decode("ffff*1", 1000)); + assertThrows(IllegalArgumentException.class, () -> InputLog.decode("1*", 1000)); + assertEquals(3, InputLog.decode("1*2,0*1", 1000).length()); + } + + @Test + void fixedPointParsesExactly() { + assertEquals(Fx.of(1) + Fx.HALF, Fx.parse("1.5")); + assertEquals(-Fx.ratio(1, 4), Fx.parse("-0.25")); + assertEquals("2.75", Fx.format(Fx.parse("2.75"))); + assertEquals(-1, Fx.floorDiv(-1, 16)); + assertEquals(0, Fx.floorDiv(15, 16)); + assertThrows(IllegalArgumentException.class, () -> Fx.parse("1e3")); + } + + @Test + void tileGridRoundTripsItsText() { + String[] rows = {"#./\\abcd#", "=H^~....#"}; + assertArrayEquals(rows, TileGrid.parse(rows, 16).toLines()); + assertThrows(IllegalArgumentException.class, () -> TileGrid.parse(new String[] {"#X#"}, 16)); + } +} From f33cf4de369f639a68950be2d0f1bb76334d9936 Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Mon, 30 Nov 2026 11:55:53 +0200 Subject: [PATCH 02/13] Gaming: platformer view, 2.5D mode, one-way physics, hardened level parsing PlatformView plays a PlatformWorld at a fixed 60 Hz with interpolation, a dead-zone/look-ahead camera, per-event feedback, keyboard/gamepad/touch input mapping and procedural art; setDepth(true) draws the same world in 2.5D. PhysicsWorld gains one-way bodies and a contact filter (preSolve was empty). LevelData rejects hostile levels and Fx/Rng throw on zero divisors, since the server replays player-published levels natively. Co-Authored-By: Claude Opus 5.5 --- .../gaming/physics/ContactFilter.java | 51 ++ .../gaming/physics/PhysicsWorld.java | 69 +- .../codename1/gaming/platformer/AIBrain.java | 24 +- .../gaming/platformer/Abilities.java | 14 +- .../codename1/gaming/platformer/Ability.java | 10 +- .../codename1/gaming/platformer/Actor.java | 62 +- .../gaming/platformer/BlockEntity.java | 6 +- .../com/codename1/gaming/platformer/Body.java | 4 +- .../gaming/platformer/Checkpoint.java | 2 +- .../gaming/platformer/CrouchAbility.java | 2 +- .../com/codename1/gaming/platformer/Door.java | 2 +- .../codename1/gaming/platformer/Entity.java | 10 +- .../com/codename1/gaming/platformer/Fx.java | 15 +- .../codename1/gaming/platformer/Health.java | 2 +- .../codename1/gaming/platformer/Input.java | 4 +- .../gaming/platformer/JumpAbility.java | 2 +- .../gaming/platformer/LadderAbility.java | 4 +- .../gaming/platformer/LevelData.java | 120 ++- .../gaming/platformer/LevelJson.java | 2 +- .../gaming/platformer/MovementState.java | 2 +- .../gaming/platformer/MovingPlatform.java | 4 +- .../codename1/gaming/platformer/Pickup.java | 2 +- .../gaming/platformer/PlatformWorld.java | 84 +- .../gaming/platformer/Projectile.java | 5 +- .../com/codename1/gaming/platformer/Rng.java | 6 +- .../gaming/platformer/SwimAbility.java | 2 +- .../codename1/gaming/platformer/Switch.java | 4 +- .../com/codename1/gaming/platformer/Tile.java | 6 +- .../codename1/gaming/platformer/TileGrid.java | 8 +- .../gaming/platformer/WallJumpAbility.java | 2 +- .../gaming/platformer/WeaponAbility.java | 2 +- .../gaming/platformer/WorldEvent.java | 16 +- .../gaming/platformer/view/ActorAnimator.java | 205 +++++ .../gaming/platformer/view/Feedback.java | 263 ++++++ .../gaming/platformer/view/InputMapper.java | 177 ++++ .../gaming/platformer/view/PlatformArt.java | 102 +++ .../platformer/view/PlatformCamera.java | 238 ++++++ .../gaming/platformer/view/PlatformView.java | 789 ++++++++++++++++++ .../gaming/platformer/view/ProceduralArt.java | 409 +++++++++ .../platformer/view/TileLayerCollision.java | 86 ++ .../gaming/platformer/view/package-info.java | 37 + .../gaming/physics/PhysicsWorldTest.java | 35 + .../gaming/platformer/PlatformWorldTest.java | 48 +- .../view/PlatformViewLogicTest.java | 155 ++++ 44 files changed, 2937 insertions(+), 155 deletions(-) create mode 100644 CodenameOne/src/com/codename1/gaming/physics/ContactFilter.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/ActorAnimator.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/InputMapper.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/PlatformCamera.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java create mode 100644 CodenameOne/src/com/codename1/gaming/platformer/view/package-info.java create mode 100644 maven/core-unittests/src/test/java/com/codename1/gaming/platformer/view/PlatformViewLogicTest.java diff --git a/CodenameOne/src/com/codename1/gaming/physics/ContactFilter.java b/CodenameOne/src/com/codename1/gaming/physics/ContactFilter.java new file mode 100644 index 00000000000..b248d653751 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/physics/ContactFilter.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.physics; + +/// Decides, step by step, whether two touching bodies in a `PhysicsWorld` push +/// on each other. Install with `PhysicsWorld#setContactFilter(ContactFilter)`. +/// +/// Returning false lets the bodies pass through each other for this step only; +/// the question is asked again on the next step while they still overlap. That +/// is how one-way platforms, team pass-through and "ghost" pickups are made -- +/// `PhysicsWorld#setOneWay(PhysicsBody, boolean)` is the stock one-way rule. +/// +/// Called from inside `PhysicsWorld#step(float)`. Do not create or destroy +/// bodies here. +public interface ContactFilter { + /// Whether two bodies collide this step. + /// + /// #### Parameters + /// + /// - `a`: one body + /// - `b`: the other + /// - `normalX`: the contact normal from `a` to `b`, screen space + /// - `normalY`: the contact normal from `a` to `b`, screen space (positive is + /// down) + /// + /// #### Returns + /// + /// false to let them pass through each other this step + boolean shouldCollide(PhysicsBody a, PhysicsBody b, float normalX, float normalY); +} diff --git a/CodenameOne/src/com/codename1/gaming/physics/PhysicsWorld.java b/CodenameOne/src/com/codename1/gaming/physics/PhysicsWorld.java index 49a3553c9e2..b62e90c1b5e 100644 --- a/CodenameOne/src/com/codename1/gaming/physics/PhysicsWorld.java +++ b/CodenameOne/src/com/codename1/gaming/physics/PhysicsWorld.java @@ -225,15 +225,51 @@ public void removeBody(PhysicsBody body) { if (bodies.remove(body)) { world.destroyBody(body.getNativeBody()); } + if (contactDispatcher != null) { + contactDispatcher.oneWay.remove(body); + } } /// Registers a contact listener notified when bodies start and stop touching. public void addContactListener(ContactListener listener) { + dispatcher().add(listener); + } + + private ContactDispatcher dispatcher() { if (contactDispatcher == null) { contactDispatcher = new ContactDispatcher(); world.setContactListener(contactDispatcher); } - contactDispatcher.add(listener); + return contactDispatcher; + } + + /// Installs a filter that can let touching bodies pass through each other, + /// asked on every step of every contact. Runs after the one-way rule of + /// `#setOneWay(PhysicsBody, boolean)`. + /// + /// #### Parameters + /// + /// - `filter`: the filter, or null for none + public void setContactFilter(ContactFilter filter) { + dispatcher().filter = filter; + } + + /// Makes a body a one-way platform: others land on its top and pass through + /// it from below and from the sides, as a jump-through ledge does. + /// + /// #### Parameters + /// + /// - `body`: the platform, normally static or kinematic + /// - `oneWay`: true to make it one-way, false to make it solid again + public void setOneWay(PhysicsBody body, boolean oneWay) { + ContactDispatcher d = dispatcher(); + if (oneWay) { + if (!d.oneWay.contains(body)) { + d.oneWay.add(body); + } + } else { + d.oneWay.remove(body); + } } public void removeContactListener(ContactListener listener) { @@ -396,6 +432,10 @@ static com.codename1.gaming.physics.box2d.dynamics.BodyType toBox2d(BodyType typ /// needed. private static final class ContactDispatcher implements com.codename1.gaming.physics.box2d.callbacks.ContactListener { private final List listeners = new ArrayList(); + private final List oneWay = new ArrayList(); + private final com.codename1.gaming.physics.box2d.collision.WorldManifold manifold = + new com.codename1.gaming.physics.box2d.collision.WorldManifold(); + private ContactFilter filter; void add(ContactListener l) { listeners.add(l); @@ -423,6 +463,33 @@ public void endContact(com.codename1.gaming.physics.box2d.dynamics.contacts.Cont @Override public void preSolve(com.codename1.gaming.physics.box2d.dynamics.contacts.Contact contact, com.codename1.gaming.physics.box2d.collision.Manifold oldManifold) { + if (filter == null && oneWay.isEmpty()) { + return; + } + Object ua = contact.getFixtureA().getBody().getUserData(); + Object ub = contact.getFixtureB().getBody().getUserData(); + if (!(ua instanceof PhysicsBody) || !(ub instanceof PhysicsBody)) { + return; + } + PhysicsBody a = (PhysicsBody) ua; + PhysicsBody b = (PhysicsBody) ub; + contact.getWorldManifold(manifold); + // Box2D's normal points from A to B with y up; the API is y down. + float nx = manifold.normal.x; + float ny = -manifold.normal.y; + // A one-way platform holds a body only when the body is above it: + // the normal from platform to body points up the screen. + if (oneWay.contains(a) && ny > -0.5f) { + contact.setEnabled(false); + return; + } + if (oneWay.contains(b) && ny < 0.5f) { + contact.setEnabled(false); + return; + } + if (filter != null && !filter.shouldCollide(a, b, nx, ny)) { + contact.setEnabled(false); + } } @Override diff --git a/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java b/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java index 3690ca9a285..d4d9c5e58b0 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/AIBrain.java @@ -30,7 +30,7 @@ /// Engine's AI Brain. /// /// A brain does not move anything itself. Each tick it produces the `Input` bits -/// its character would get from a player, so an enemy runs on exactly the same +/// its actor would get from a player, so an enemy runs on exactly the same /// abilities and collision as the hero, and is as deterministic. The current /// `State` runs its `Action`, then its transitions are tried in order and the first /// `Decision` that holds switches state. @@ -52,7 +52,7 @@ public interface Action { /// #### Parameters /// /// - `brain`: the brain, for its timers and target - /// - `self`: the character + /// - `self`: the actor /// - `world`: the world /// /// #### Returns @@ -68,7 +68,7 @@ public interface Decision { /// #### Parameters /// /// - `brain`: the brain - /// - `self`: the character + /// - `self`: the actor /// - `world`: the world /// /// #### Returns @@ -119,7 +119,6 @@ public State addTransition(Decision d, State target) { private State current; private int ticksInState; private int direction = -1; - private int lastInput; /// Adds a state. The first one added is where the brain starts. /// @@ -140,11 +139,11 @@ public State addState(String name, Action action) { return s; } - /// Computes the character's input for this tick. Called by `PlatformWorld`. + /// Computes the actor's input for this tick. Called by `PlatformWorld`. /// /// #### Parameters /// - /// - `self`: the character + /// - `self`: the actor /// - `world`: the world /// /// #### Returns @@ -162,8 +161,7 @@ public int think(Actor self, PlatformWorld world) { } } ticksInState++; - lastInput = current.action.act(this, self, world); - return lastInput; + return current.action.act(this, self, world); } /// The current state. @@ -211,11 +209,11 @@ private static int dirBits(int d) { return d < 0 ? Input.LEFT : d > 0 ? Input.RIGHT : 0; } - /// Whether the cell ahead of a character's feet has no floor. + /// Whether the cell ahead of an actor's feet has no floor. /// /// #### Parameters /// - /// - `self`: the character + /// - `self`: the actor /// - `world`: the world /// - `dir`: -1 or 1 /// @@ -277,7 +275,7 @@ public Chase(boolean jumps) { @Override public int act(AIBrain brain, Actor self, PlatformWorld world) { Actor t = world.getPlayer(); - if (t == null || t == self) { + if (t == null || t == self) { // NOPMD CompareObjectsWithEquals - identity is intended return 0; } Body b = self.getBody(); @@ -396,7 +394,7 @@ public TargetWithin(int range, boolean inFront) { @Override public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { Actor t = world.getPlayer(); - if (t == null || t == self || !t.isAlive()) { + if (t == null || t == self || !t.isAlive()) { // NOPMD CompareObjectsWithEquals - identity is intended return false; } int dx = t.getBody().x - self.getBody().x; @@ -446,7 +444,7 @@ public boolean decide(AIBrain brain, Actor self, PlatformWorld world) { } } - /// Holds while the character's health is at or below a value. + /// Holds while the actor's health is at or below a value. public static final class HealthAtMost implements Decision { private final int hp; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java b/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java index 0c8c3fe4fa6..3ba5b45ff46 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Abilities.java @@ -27,11 +27,21 @@ /// refer to them. @com.codename1.impl.SharedWithBackend public final class Abilities { - /// Every stock ability name, in a sensible processing order for a hero. - public static final String[] HERO_ORDER = { + private static final String[] HERO_ORDER = { "move", "ladder", "swim", "walljump", "jump", "glide", "jetpack", "crouch", "dash", "look", "weapon" }; + /// Every stock ability name, in a sensible processing order for a hero. + /// + /// #### Returns + /// + /// a new array + public static String[] heroOrder() { + String[] copy = new String[HERO_ORDER.length]; + System.arraycopy(HERO_ORDER, 0, copy, 0, copy.length); + return copy; + } + private Abilities() { } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Ability.java b/CodenameOne/src/com/codename1/gaming/platformer/Ability.java index 9e5cd271484..9bda04be194 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Ability.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Ability.java @@ -26,13 +26,13 @@ /// One thing a `Actor` can do -- walk, jump, dash, climb -- as a small, /// separately tunable unit, in the manner of Corgi Engine's character abilities. /// -/// A character runs its abilities in the order they were added, three times a tick: +/// An actor runs its abilities in the order they were added, three times a tick: /// `earlyProcess` before anything moves, `process` to set velocity and state, and /// `lateProcess` after the body has moved and its contacts are known. Order matters /// where two abilities read the same button: an ability that consumes the jump /// press (a wall jump, a ladder jump) belongs before `JumpAbility`. /// -/// Abilities must be deterministic: they read only the character, the world and +/// Abilities must be deterministic: they read only the actor, the world and /// the tick's input, use `Fx` arithmetic and the world's `Rng`, and keep their /// state in fields so `Actor#hash` can fold it in through `hashState`. @com.codename1.impl.SharedWithBackend @@ -62,7 +62,7 @@ public void setEnabled(boolean enabled) { /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `world`: the world public void earlyProcess(Actor c, PlatformWorld world) { } @@ -71,7 +71,7 @@ public void earlyProcess(Actor c, PlatformWorld world) { /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `world`: the world public abstract void process(Actor c, PlatformWorld world); @@ -79,7 +79,7 @@ public void earlyProcess(Actor c, PlatformWorld world) { /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `world`: the world public void lateProcess(Actor c, PlatformWorld world) { } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Actor.java b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java index af9f4663cd5..4dfa5cb876e 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Actor.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java @@ -28,7 +28,7 @@ /// A player or an enemy: a `Body` driven by an ordered list of `Ability`s. /// -/// Each `PlatformWorld#step` the character takes its tick of `Input` bits (from a +/// Each `PlatformWorld#step` the actor takes its tick of `Input` bits (from a /// player, a replay or an `AIBrain`), runs its abilities, applies gravity unless an /// ability turned it off, moves the body, and settles a `MovementState` that the /// renderer animates. All tuning is in fixed point (`Fx`), in pixels and ticks at @@ -42,7 +42,7 @@ /// hero.addAbility(new JumpAbility()); /// hero.addAbility(new CrouchAbility()); /// hero.addAbility(new DashAbility()); -/// world.addCharacter(hero); +/// world.addActor(hero); /// ``` @com.codename1.impl.SharedWithBackend public class Actor { @@ -69,7 +69,7 @@ public class Actor { private AIBrain brain; private String kind = "hero"; - /// Creates a character. + /// Creates an actor. /// /// #### Parameters /// @@ -92,7 +92,7 @@ public Actor(String id, int x, int y, int w, int h) { /// /// #### Returns /// - /// this character, for chaining + /// this actor, for chaining public Actor addAbility(Ability a) { abilities.add(a); return this; @@ -109,7 +109,7 @@ public Actor addAbility(Ability a) { /// the first ability of that class, or null @SuppressWarnings("unchecked") public T getAbility(Class type) { - for (int i = 0; i < abilities.size(); i++) { + for (int i = 0; i < abilities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Ability a = abilities.get(i); if (a.getClass() == type) { return (T) a; @@ -139,13 +139,13 @@ public void tick(PlatformWorld world, int bits) { if (controlLock > 0) { controlLock--; } - for (int i = 0; i < abilities.size(); i++) { + for (int i = 0; i < abilities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Ability a = abilities.get(i); if (a.isEnabled()) { a.earlyProcess(this, world); } } - for (int i = 0; i < abilities.size(); i++) { + for (int i = 0; i < abilities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Ability a = abilities.get(i); if (a.isEnabled()) { a.process(this, world); @@ -160,7 +160,7 @@ public void tick(PlatformWorld world, int bits) { } else { airTicks++; } - for (int i = 0; i < abilities.size(); i++) { + for (int i = 0; i < abilities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Ability a = abilities.get(i); if (a.isEnabled()) { a.lateProcess(this, world); @@ -199,7 +199,7 @@ public void forceState(MovementState s) { stateClaimed = true; } - /// The art kind the view draws this character with (`"hero"`, `"slime"`). + /// The art kind the view draws this actor with (`"hero"`, `"slime"`). /// /// #### Returns /// @@ -216,7 +216,7 @@ public String getKind() { /// /// #### Returns /// - /// this character + /// this actor public Actor setKind(String kind) { this.kind = kind; return this; @@ -240,13 +240,13 @@ public int getTeam() { /// /// #### Returns /// - /// this character + /// this actor public Actor setTeam(int team) { this.team = team; return this; } - /// Hit points, or null for a character that dies at the first hit. + /// Hit points, or null for an actor that dies at the first hit. /// /// #### Returns /// @@ -255,7 +255,7 @@ public Health getHealth() { return health; } - /// Gives the character hit points. + /// Gives the actor hit points. /// /// #### Parameters /// @@ -263,13 +263,13 @@ public Health getHealth() { /// /// #### Returns /// - /// this character + /// this actor public Actor setHealth(Health health) { this.health = health; return this; } - /// Damage dealt to characters of another team on contact. + /// Damage dealt to actors of another team on contact. /// /// #### Returns /// @@ -286,13 +286,13 @@ public int getContactDamage() { /// /// #### Returns /// - /// this character + /// this actor public Actor setContactDamage(int damage) { this.contactDamage = damage; return this; } - /// Whether landing on this character's head hurts it and bounces the player. + /// Whether landing on this actor's head hurts it and bounces the player. /// /// #### Returns /// @@ -301,7 +301,7 @@ public boolean isStompable() { return stompable; } - /// Sets whether the character can be stomped. + /// Sets whether the actor can be stomped. /// /// #### Parameters /// @@ -309,13 +309,13 @@ public boolean isStompable() { /// /// #### Returns /// - /// this character + /// this actor public Actor setStompable(boolean stompable) { this.stompable = stompable; return this; } - /// The brain that drives a non-player character, or null. + /// The brain that drives a non-player actor, or null. /// /// #### Returns /// @@ -324,7 +324,7 @@ public AIBrain getBrain() { return brain; } - /// Gives the character a brain; the world then ignores its input slot. + /// Gives the actor a brain; the world then ignores its input slot. /// /// #### Parameters /// @@ -332,13 +332,13 @@ public AIBrain getBrain() { /// /// #### Returns /// - /// this character + /// this actor public Actor setBrain(AIBrain brain) { this.brain = brain; return this; } - /// The character's id. + /// The actor's id. /// /// #### Returns /// @@ -356,7 +356,7 @@ public Body getBody() { return body; } - /// The height the character stands at, which crouching shrinks from. + /// The height the actor stands at, which crouching shrinks from. /// /// #### Returns /// @@ -491,7 +491,7 @@ public void setMaxFall(int maxFall) { } /// Locks horizontal control for a number of ticks, so a wall jump or a - /// knock-back carries the character away before input steers again. + /// knock-back carries the actor away before input steers again. /// /// #### Parameters /// @@ -509,7 +509,7 @@ public boolean isControlLocked() { return controlLock > 0; } - /// Ticks since the character last stood on something. + /// Ticks since the actor last stood on something. /// /// #### Returns /// @@ -532,7 +532,7 @@ public boolean isJumpConsumed() { return jumpConsumed; } - /// Whether the character is alive. + /// Whether the actor is alive. /// /// #### Returns /// @@ -541,7 +541,7 @@ public boolean isAlive() { return alive; } - /// Kills the character; it stops processing until `respawn`. + /// Kills the actor; it stops processing until `respawn`. public void kill() { alive = false; state = MovementState.DEAD; @@ -549,7 +549,7 @@ public void kill() { body.vy = 0; } - /// Brings the character back at a point, standing and still. + /// Brings the actor back at a point, standing and still. /// /// #### Parameters /// @@ -571,7 +571,7 @@ public void respawn(int x, int y) { } } - /// The character's state as a hash, for replay verification. + /// The actor's state as a hash, for replay verification. /// /// #### Parameters /// @@ -589,7 +589,7 @@ public long hash(long h) { r = Ability.mix(r, state.ordinal()); r = Ability.mix(r, facing); r = Ability.mix(r, alive ? 1 : 0); - for (int i = 0; i < abilities.size(); i++) { + for (int i = 0; i < abilities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow r = abilities.get(i).hashState(r); } if (health != null) { diff --git a/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java b/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java index 8a35097faa6..247b300119e 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/BlockEntity.java @@ -57,7 +57,7 @@ public boolean isSolid() { return solid; } - /// Makes the cells solid or empty. Becoming solid waits while a character is + /// Makes the cells solid or empty. Becoming solid waits while an actor is /// inside, so nobody is ever trapped in a wall. /// /// #### Parameters @@ -73,8 +73,8 @@ protected boolean setSolid(PlatformWorld world, boolean s) { return true; } if (s) { - for (int i = 0; i < world.getCharacters().size(); i++) { - Actor c = world.getCharacters().get(i); + for (int i = 0; i < world.getActors().size(); i++) { + Actor c = world.getActors().get(i); if (c.isAlive() && c.getBody().overlaps(x, y, w, h)) { return false; } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Body.java b/CodenameOne/src/com/codename1/gaming/platformer/Body.java index f815716e496..e423767b2d9 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Body.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Body.java @@ -313,7 +313,7 @@ private void moveY(TileGrid grid, List platforms, boolean wasGro } int oldB = y + h; int newB = ny + h; - boolean snapping = wasGrounded && vy >= 0; + boolean snapping = wasGrounded; int probeB = snapping ? newB + stepHeight : newB; int tol = wasGrounded ? stepHeight : 0; boolean oneWayOk = dropTicks == 0 && !ignoreOneWay; @@ -367,7 +367,7 @@ private void moveY(TileGrid grid, List platforms, boolean wasGro } if (platforms != null && oneWayOk) { - for (int i = 0; i < platforms.size(); i++) { + for (int i = 0; i < platforms.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow MovingPlatform p = platforms.get(i); int top = p.getY(); if (x + w <= p.getX() || x >= p.getX() + p.getWidth()) { diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java b/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java index 651c559f7fb..40ed0430daa 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Checkpoint.java @@ -48,7 +48,7 @@ public int getPhase() { @Override public void onTouch(PlatformWorld world, Actor c) { - if (reached || c != world.getPlayer()) { + if (reached || c != world.getPlayer()) { // NOPMD CompareObjectsWithEquals - identity is intended return; } reached = true; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java index 29597e377e5..59348150944 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/CrouchAbility.java @@ -24,7 +24,7 @@ package com.codename1.gaming.platformer; /// Crouching and crawling: holding down on the ground shrinks the body to -/// `crouchHeight`, keeping its feet in place. The character stands again only when +/// `crouchHeight`, keeping its feet in place. The actor stands again only when /// there is room above, so it can crawl through a one-tile gap and stays crouched /// under it. @com.codename1.impl.SharedWithBackend diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Door.java b/CodenameOne/src/com/codename1/gaming/platformer/Door.java index 6aa1b860257..a8c42541d23 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Door.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Door.java @@ -65,7 +65,7 @@ public void onAdded(PlatformWorld world) { @Override public void onTouch(PlatformWorld world, Actor c) { - if (isSolid() && c == world.getPlayer() && world.useKey(key)) { + if (isSolid() && c == world.getPlayer() && world.useKey(key)) { // NOPMD CompareObjectsWithEquals - identity is intended setSolid(world, false); world.emit(WorldEvent.OPEN, x + w / 2, y + h / 2, getId(), key); } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Entity.java b/CodenameOne/src/com/codename1/gaming/platformer/Entity.java index 701729ea64d..ef6ef3eedd5 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Entity.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Entity.java @@ -23,12 +23,12 @@ package com.codename1.gaming.platformer; -/// Something in a level that is not a character: a coin, a spring, a door, a +/// Something in a level that is not an actor: a coin, a spring, a door, a /// projectile, a crumbling block. /// /// An entity is a rectangle with a `getType()` name that the view maps to art. /// Each tick the world calls `step`, and calls `onTouch` for every living -/// character that overlaps it. An entity that must block movement (a door, a +/// actor that overlaps it. An entity that must block movement (a door, a /// gate, a crumbling block) writes `Tile#SOLID` cells into the grid rather than /// colliding itself, so the controller stays one fast tile scan. /// @@ -111,7 +111,7 @@ public int getPhase() { } /// How far outside its rectangle the entity still counts as touched. An entity - /// that writes solid cells (a door) needs a margin, since a character can never + /// that writes solid cells (a door) needs a margin, since an actor can never /// overlap a solid cell. The default is 0. /// /// #### Returns @@ -138,12 +138,12 @@ public void onAdded(PlatformWorld world) { public void step(PlatformWorld world) { } - /// Called each tick a living character overlaps the entity. + /// Called each tick a living actor overlaps the entity. /// /// #### Parameters /// /// - `world`: the world - /// - `c`: the character + /// - `c`: the actor public void onTouch(PlatformWorld world, Actor c) { } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Fx.java b/CodenameOne/src/com/codename1/gaming/platformer/Fx.java index afce74c767b..938d877dfe0 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Fx.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Fx.java @@ -65,6 +65,11 @@ public static int of(int i) { /// /// the fraction in fixed point public static int ratio(int num, int den) { + if (den == 0) { + // Thrown explicitly: a raw zero divide answers 0 on arm64 and kills + // the process on x86-64 under ParparVM, never ArithmeticException. + throw new ArithmeticException("division by zero"); + } return (int) (((long) num << 16) / den); } @@ -93,6 +98,11 @@ public static int mul(int a, int b) { /// /// `a / b` in fixed point public static int div(int a, int b) { + if (b == 0) { + // Thrown explicitly: a raw zero divide answers 0 on arm64 and kills + // the process on x86-64 under ParparVM, never ArithmeticException. + throw new ArithmeticException("division by zero"); + } return (int) (((long) a << 16) / b); } @@ -121,8 +131,11 @@ public static int floor(int a) { /// /// the floor of `a / b` public static int floorDiv(int a, int b) { + if (b <= 0) { + throw new ArithmeticException("divisor must be positive"); + } int q = a / b; - if (q * b != a && ((a < 0) != (b < 0))) { + if (q * b != a && a < 0) { q--; } return q; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Health.java b/CodenameOne/src/com/codename1/gaming/platformer/Health.java index 465ce779c87..f7d594be1d8 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Health.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Health.java @@ -26,7 +26,7 @@ /// Hit points, invulnerability frames and knock-back for a `Actor`. /// /// `PlatformWorld#damage` is the one way to hurt something: it checks the -/// invulnerability window, knocks the character away from the source, locks its +/// invulnerability window, knocks the actor away from the source, locks its /// control briefly and, at zero, hands it to `PlatformWorld#onDeath`. @com.codename1.impl.SharedWithBackend public final class Health { diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Input.java b/CodenameOne/src/com/codename1/gaming/platformer/Input.java index f35f1c9db95..6b5cf1e6692 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Input.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Input.java @@ -23,7 +23,7 @@ package com.codename1.gaming.platformer; -/// The buttons a character reads, as bits of one `int` per tick. +/// The buttons an actor reads, as bits of one `int` per tick. /// /// A tick's input is a single `int`, which is what makes a run cheap to record /// (`InputLog`) and exact to replay. Touch controls, a keyboard and a gamepad all @@ -46,7 +46,7 @@ public final class Input { public static final int DASH = 1 << 6; /// Use the weapon. public static final int FIRE = 1 << 7; - /// Activate what the character stands at: a lever, a door, a sign. + /// Activate what the actor stands at: a lever, a door, a sign. public static final int ACTIVATE = 1 << 8; /// Use the jetpack or glide while held (an ability decides which). public static final int ALT = 1 << 9; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java index 59dca6b9be7..6ee2fddadb3 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/JumpAbility.java @@ -106,7 +106,7 @@ public void lateProcess(Actor c, PlatformWorld world) { } } - /// Lets the character jump again in the air, as a wall jump or a bounce does. + /// Lets the actor jump again in the air, as a wall jump or a bounce does. /// /// #### Parameters /// diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java index 79e0943b391..5e7a2671b8d 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/LadderAbility.java @@ -24,7 +24,7 @@ package com.codename1.gaming.platformer; /// Climbing `Tile#LADDER` cells. Up or down while overlapping a ladder grabs it: -/// gravity stops, the character centres on the ladder and moves at `climbSpeed`. +/// gravity stops, the actor centres on the ladder and moves at `climbSpeed`. /// Jumping lets go (`JumpAbility` treats a ladder as ground), as does climbing off /// either end. Standing on top of a ladder and holding down climbs down through it. /// @@ -88,7 +88,7 @@ private static boolean ladderAt(TileGrid g, int col, int y, int h) { return false; } - /// Whether the character is on a ladder. + /// Whether the actor is on a ladder. /// /// #### Returns /// diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java index c2d69ab5b37..63e3179b766 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java @@ -51,7 +51,7 @@ /// } /// ``` /// -/// `tiles` uses the characters listed on `Tile`. `abilities` lists the hero's +/// `tiles` uses the actors listed on `Tile`. `abilities` lists the hero's /// abilities in processing order (names on `Abilities`); omitted, the hero gets /// move, ladder, walljump, jump, crouch and dash. `tuning` keys are listed on /// `applyTuning`. `health` gives the hero hit points (otherwise one hit kills) and @@ -70,6 +70,18 @@ public final class LevelData { private final int tileSize; private final String[] tiles; + /// Limits on a level, so that a published level's replay on the server has a + /// bounded cost and every size reaching the simulation is sane. + static final int MAX_TILE_SIZE = 256; + static final int MAX_ROWS = 512; + static final int MAX_COLUMNS = 4096; + static final int MAX_CELLS = 1 << 20; + static final int MAX_PIXELS = 30000; + static final int MAX_ENTITIES = 2048; + static final int MAX_PLATFORMS = 256; + static final int MAX_PATH_POINTS = 64; + static final int MAX_TICKS_FIELD = 60 * 600; + private LevelData(Map json) { this.json = json; this.name = LevelJson.str(json, "name", "Untitled"); @@ -86,6 +98,89 @@ private LevelData(Map json) { } tiles[i] = (String) r; } + validate(); + } + + private void validate() { + if (tileSize < 4 || tileSize > MAX_TILE_SIZE) { + throw new IllegalArgumentException("tileSize must be 4 to " + MAX_TILE_SIZE); + } + if (tiles.length > MAX_ROWS) { + throw new IllegalArgumentException("At most " + MAX_ROWS + " rows"); + } + int cols = 1; + for (int i = 0; i < tiles.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + cols = Math.max(cols, tiles[i].length()); + } + // 16.16 fixed point reaches 32767 px; keep the level, plus the fall-out + // margin below it, well inside that. + if (cols > MAX_COLUMNS || (long) cols * tiles.length > MAX_CELLS + || (long) cols * tileSize > MAX_PIXELS || (long) (tiles.length + 4) * tileSize > MAX_PIXELS) { + throw new IllegalArgumentException("The level is too large"); + } + List ents = LevelJson.list(json, "entities"); + if (ents.size() > MAX_ENTITIES) { + throw new IllegalArgumentException("At most " + MAX_ENTITIES + " entities"); + } + for (int i = 0; i < ents.size(); i++) { + Object o = ents.get(i); + if (o instanceof Map) { + @SuppressWarnings("unchecked") + Map m = (Map) o; + checkCell(LevelJson.list(m, "at"), cols, "entities[" + i + "]"); + checkTicks(m, "delay"); + checkTicks(m, "respawn"); + checkTicks(m, "interval"); + checkTicks(m, "pause"); + } + } + List plats = LevelJson.list(json, "platforms"); + if (plats.size() > MAX_PLATFORMS) { + throw new IllegalArgumentException("At most " + MAX_PLATFORMS + " platforms"); + } + for (int i = 0; i < plats.size(); i++) { + Object o = plats.get(i); + if (o instanceof Map) { + @SuppressWarnings("unchecked") + Map m = (Map) o; + List path = LevelJson.list(m, "path"); + if (path.size() > MAX_PATH_POINTS) { + throw new IllegalArgumentException("platforms[" + i + "] has too many points"); + } + for (int k = 0; k < path.size(); k++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + Object pt = path.get(k); + if (pt instanceof List) { + @SuppressWarnings("unchecked") + List cell = (List) pt; + checkCell(cell, cols, "platforms[" + i + "]"); + } + } + int speed = LevelJson.fx(m, "speed", Fx.ONE); + if (speed <= 0 || speed > Fx.of(tileSize)) { + throw new IllegalArgumentException("platforms[" + i + "] speed must be above 0 and at most " + + "a tile per tick"); + } + checkTicks(m, "pause"); + } + } + } + + private void checkCell(List at, int cols, String where) { + if (at.size() < 2) { + return; + } + int c = num(at.get(0)); + int r = num(at.get(1)); + if (c < 0 || r < 0 || c > Fx.of(cols) || r > Fx.of(tiles.length)) { + throw new IllegalArgumentException(where + " is outside the level"); + } + } + + private static void checkTicks(Map m, String key) { + int v = LevelJson.integer(m, key, 0); + if (v < 0 || v > MAX_TICKS_FIELD) { + throw new IllegalArgumentException("\"" + key + "\" must be 0 to " + MAX_TICKS_FIELD); + } } /// Reads a level. @@ -190,7 +285,7 @@ public PlatformWorld createWorld(long seed, EntityFactory factory) { world.setGoal(Fx.mul(num(goal.get(0)), ts), Fx.mul(num(goal.get(1)), ts), gw, gh); } List plats = LevelJson.list(json, "platforms"); - for (int i = 0; i < plats.size(); i++) { + for (int i = 0; i < plats.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow world.addPlatform(platform(plats.get(i), ts)); } Actor hero = new Actor("hero", sx, sy, heroW, heroH); @@ -198,11 +293,11 @@ public PlatformWorld createWorld(long seed, EntityFactory factory) { List names = LevelJson.list(json, "abilities"); if (names.isEmpty()) { String[] all = {"move", "ladder", "walljump", "jump", "crouch", "dash"}; - for (int i = 0; i < all.length; i++) { + for (int i = 0; i < all.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow addAbility(hero, all[i], ts); } } else { - for (int i = 0; i < names.size(); i++) { + for (int i = 0; i < names.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Object n = names.get(i); if (n instanceof String) { addAbility(hero, (String) n, ts); @@ -215,7 +310,7 @@ public PlatformWorld createWorld(long seed, EntityFactory factory) { hero.setHealth(new Health(hp)); } world.setLives(LevelJson.integer(json, "lives", -1)); - world.addCharacter(hero); + world.addActor(hero); List ents = LevelJson.list(json, "entities"); for (int i = 0; i < ents.size(); i++) { addEntity(world, ents.get(i), i, ts, factory); @@ -240,7 +335,7 @@ private static void addEntity(PlatformWorld world, Object o, int index, int ts, int w = Fx.mul(LevelJson.fx(m, "w", Fx.ONE), ts); int h = Fx.mul(LevelJson.fx(m, "h", Fx.ONE), ts); if ("enemy".equals(type)) { - world.addCharacter(enemy(id, m, x, y, ts)); + world.addActor(enemy(id, m, x, y, ts)); return; } Entity e = null; @@ -410,15 +505,16 @@ private static void addAbility(Actor c, String name, int ts) { c.addAbility(a); } - /// Applies tuning to a character's abilities. Keys, all optional, in pixels and + /// Applies tuning to an actor's abilities. Keys, all optional, in pixels and /// ticks: `gravity`, `maxFall`, `walkSpeed`, `runSpeed`, `jumpSpeed`, /// `maxJumps`, `coyoteTicks`, `bufferTicks`, `climbSpeed`, `dashSpeed`, - /// `dashTicks`, `wallSlide`. Unknown keys are ignored so a game can keep its own + /// `dashTicks`, `wallSlide`, `automaticFire`, `shotGravity`, `fireCooldown`. + /// Unknown keys are ignored so a game can keep its own /// keys in the same object. /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `t`: the tuning object, may be null public static void applyTuning(Actor c, Map t) { if (t == null) { @@ -451,5 +547,11 @@ public static void applyTuning(Actor c, Map t) { if (w != null) { w.slideSpeed = LevelJson.fx(t, "wallSlide", w.slideSpeed); } + WeaponAbility weapon = c.getAbility(WeaponAbility.class); + if (weapon != null) { + weapon.automatic = Boolean.TRUE.equals(t.get("automaticFire")); + weapon.gravity = LevelJson.fx(t, "shotGravity", weapon.gravity); + weapon.cooldownTicks = LevelJson.integer(t, "fireCooldown", weapon.cooldownTicks); + } } } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java b/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java index 28dd3a6fcb6..ee4a55a56d5 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/LevelJson.java @@ -124,7 +124,7 @@ private Object value() { try { return Integer.valueOf(Fx.parse(src.substring(start, pos))); } catch (IllegalArgumentException e) { - throw error(e.getMessage()); + throw error(e.getMessage()); // NOPMD PreserveStackTrace - the message and position are the whole story } } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java b/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java index 6a0fcc28dec..8b812abc99a 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/MovementState.java @@ -24,7 +24,7 @@ package com.codename1.gaming.platformer; /// What a `Actor` is doing this tick, which a renderer maps to an animation -/// clip (see `CharacterAnimator`) and abilities read to stay out of each other's +/// clip (see `ActorAnimator`) and abilities read to stay out of each other's /// way. @com.codename1.impl.SharedWithBackend public enum MovementState { diff --git a/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java b/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java index bc160dda78c..e6065e53af7 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/MovingPlatform.java @@ -26,9 +26,9 @@ /// A platform that travels back and forth along a path of waypoints and carries /// whatever stands on it. /// -/// It is solid from above only, like `Tile#ONE_WAY`, so a character can jump up +/// It is solid from above only, like `Tile#ONE_WAY`, so an actor can jump up /// through it. A `PlatformWorld` moves every platform before it moves the -/// characters, and a `Body` standing on one is shifted by the platform's step +/// actors, and a `Body` standing on one is shifted by the platform's step /// before its own move, so a rider never slides or sinks. @com.codename1.impl.SharedWithBackend public final class MovingPlatform { diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java b/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java index 371572e81a1..eaecabefe6a 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Pickup.java @@ -80,7 +80,7 @@ public String getName() { @Override public void onTouch(PlatformWorld world, Actor c) { - if (c != world.getPlayer() || !isActive()) { + if (c != world.getPlayer() || !isActive()) { // NOPMD CompareObjectsWithEquals - identity is intended return; } String t = getType(); diff --git a/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java index 80a84a87b87..33dca7a1e85 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java @@ -45,7 +45,7 @@ public class PlatformWorld { private final TileGrid grid; private final List platforms = new ArrayList(); - private final List characters = new ArrayList(); + private final List actors = new ArrayList(); private final List entities = new ArrayList(); private final List pending = new ArrayList(); private final List events = new ArrayList(); @@ -90,14 +90,14 @@ public void addPlatform(MovingPlatform p) { platforms.add(p); } - /// Adds a character. The first one added is the player, which `step` drives - /// with its first input; characters with a brain ignore their input slot. + /// Adds an actor. The first one added is the player, which `step` drives + /// with its first input; actors with a brain ignore their input slot. /// /// #### Parameters /// - /// - `c`: the character - public void addCharacter(Actor c) { - characters.add(c); + /// - `c`: the actor + public void addActor(Actor c) { + actors.add(c); } /// Adds an entity. Added during a step, it takes part from the next tick. @@ -110,7 +110,7 @@ public void addEntity(Entity e) { } private void flushPending() { - for (int i = 0; i < pending.size(); i++) { + for (int i = 0; i < pending.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Entity e = pending.get(i); entities.add(e); e.onAdded(this); @@ -144,12 +144,12 @@ public void setGoal(int x, int y, int w, int h) { goalH = h; } - /// Advances one tick with one input per character, in the order they were - /// added. Characters with no input entry get no buttons. + /// Advances one tick with one input per actor, in the order they were + /// added. Actors with no input entry get no buttons. /// /// #### Parameters /// - /// - `inputs`: `Input` bits per character + /// - `inputs`: `Input` bits per actor public void step(int[] inputs) { if (tick == 0) { flushPending(); @@ -159,7 +159,7 @@ public void step(int[] inputs) { if (gameOver) { return; } - for (int i = 0; i < platforms.size(); i++) { + for (int i = 0; i < platforms.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow platforms.get(i).step(); } int n = entities.size(); @@ -169,8 +169,8 @@ public void step(int[] inputs) { e.step(this); } } - for (int i = 0; i < characters.size(); i++) { - Actor c = characters.get(i); + for (int i = 0; i < actors.size(); i++) { + Actor c = actors.get(i); if (!c.isAlive()) { continue; } @@ -196,15 +196,15 @@ public void step(int[] inputs) { checkHazards(c); } } - interactCharacters(); - for (int i = 0; i < entities.size(); i++) { + interactActors(); + for (int i = 0; i < entities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Entity e = entities.get(i); if (!e.isActive()) { continue; } int m = e.getTouchMargin(); - for (int k = 0; k < characters.size() && e.isActive(); k++) { - Actor c = characters.get(k); + for (int k = 0; k < actors.size() && e.isActive(); k++) { + Actor c = actors.get(k); if (c.isAlive() && c.getBody().overlaps(e.x - m, e.y - m, e.w + 2 * m, e.h + 2 * m)) { e.onTouch(this, c); } @@ -216,8 +216,8 @@ public void step(int[] inputs) { } } flushPending(); - if (!complete && !characters.isEmpty() && goalW > 0) { - Actor p = characters.get(0); + if (!complete && !actors.isEmpty() && goalW > 0) { + Actor p = actors.get(0); if (p.isAlive() && p.getBody().overlaps(goalX, goalY, goalW, goalH)) { complete = true; emit(WorldEvent.COMPLETE, goalX + goalW / 2, goalY + goalH / 2, p.getId(), null); @@ -234,14 +234,14 @@ public void step(int input) { step(new int[] {input}); } - private void interactCharacters() { - for (int i = 0; i < characters.size(); i++) { - Actor a = characters.get(i); + private void interactActors() { + for (int i = 0; i < actors.size(); i++) { + Actor a = actors.get(i); if (!a.isAlive()) { continue; } - for (int k = 0; k < characters.size(); k++) { - Actor e = characters.get(k); + for (int k = 0; k < actors.size(); k++) { + Actor e = actors.get(k); if (k == i || !e.isAlive() || !a.isAlive() || e.getTeam() == a.getTeam()) { continue; } @@ -282,13 +282,13 @@ private void checkHazards(Actor c) { } } - /// Hurts a character: removes hit points (respecting invulnerability), knocks it - /// away from `fromX`, and kills it at zero. A character without `Health` dies + /// Hurts an actor: removes hit points (respecting invulnerability), knocks it + /// away from `fromX`, and kills it at zero. An actor without `Health` dies /// at once. /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `amount`: hit points /// - `fromX`: where the hit came from, fixed point x /// @@ -322,17 +322,17 @@ public boolean damage(Actor c, int amount, int fromX) { return true; } - /// Called when a character runs out of health or falls out of the level. The + /// Called when an actor runs out of health or falls out of the level. The /// player loses a life and respawns at the last checkpoint, or the game is - /// over; any other character dies. Override to change the rules. + /// over; any other actor dies. Override to change the rules. /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor protected void onDeath(Actor c) { Body b = c.getBody(); emit(WorldEvent.DEATH, b.x + b.w / 2, b.y + b.h / 2, c.getId(), c.getKind()); - if (!characters.isEmpty() && c == characters.get(0)) { + if (!actors.isEmpty() && c == actors.get(0)) { // NOPMD CompareObjectsWithEquals - identity is intended deaths++; if (lives > 0) { lives--; @@ -374,12 +374,12 @@ public List getEvents() { return events; } - /// Switches an ability on for a character, creating it if the character lacks + /// Switches an ability on for an actor, creating it if the actor lacks /// it, as a power-up does. /// /// #### Parameters /// - /// - `c`: the character + /// - `c`: the actor /// - `name`: a stock ability name (see `Abilities`) public void enableAbility(Actor c, String name) { Class type = Abilities.typeOf(name); @@ -551,13 +551,13 @@ public List getPlatforms() { return platforms; } - /// The characters, the player first. + /// The actors, the player first. /// /// #### Returns /// /// the live list - public List getCharacters() { - return characters; + public List getActors() { + return actors; } /// The active entities. @@ -569,13 +569,13 @@ public List getEntities() { return entities; } - /// The player, the first character added. + /// The player, the first actor added. /// /// #### Returns /// /// the player, or null in an empty world public Actor getPlayer() { - return characters.isEmpty() ? null : characters.get(0); + return actors.isEmpty() ? null : actors.get(0); } /// The world's random generator. Only the simulation may draw from it. @@ -667,15 +667,15 @@ public long hash() { h = Ability.mix(h, lives); h = Ability.mix(h, channels); h = Ability.mix(h, keys.size()); - for (int i = 0; i < platforms.size(); i++) { + for (int i = 0; i < platforms.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow MovingPlatform p = platforms.get(i); h = Ability.mix(h, p.getX()); h = Ability.mix(h, p.getY()); } - for (int i = 0; i < characters.size(); i++) { - h = characters.get(i).hash(h); + for (int i = 0; i < actors.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + h = actors.get(i).hash(h); } - for (int i = 0; i < entities.size(); i++) { + for (int i = 0; i < entities.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow h = entities.get(i).hashState(h); } return h; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java b/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java index b22fd29839a..8f51ef6c699 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Projectile.java @@ -24,7 +24,7 @@ package com.codename1.gaming.platformer; /// A bullet, arrow or fireball: flies at a fixed velocity, optionally falls, and -/// damages the first character of another team it touches. It disappears on a +/// damages the first actor of another team it touches. It disappears on a /// solid tile, on a hit, or when its range runs out. @com.codename1.impl.SharedWithBackend public class Projectile extends Entity { @@ -72,7 +72,8 @@ public int getVx() { @Override public void step(PlatformWorld world) { - if (--life <= 0) { + life--; + if (life <= 0) { deactivate(); return; } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Rng.java b/CodenameOne/src/com/codename1/gaming/platformer/Rng.java index 19722bc3862..01ff667af0e 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Rng.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Rng.java @@ -63,8 +63,10 @@ public long nextLong() { /// /// a random whole number public int nextInt(int bound) { - long r = (nextLong() >>> 1) % bound; - return (int) r; + if (bound <= 0) { + throw new IllegalArgumentException("bound must be positive"); + } + return (int) ((nextLong() >>> 1) % bound); } /// The generator's state, folded into the world hash. diff --git a/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java index 656f12d6821..cb6616bbf0b 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/SwimAbility.java @@ -58,7 +58,7 @@ public void process(Actor c, PlatformWorld world) { c.claimState(MovementState.SWIMMING); } - /// Whether the character is in water. + /// Whether the actor is in water. /// /// #### Returns /// diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Switch.java b/CodenameOne/src/com/codename1/gaming/platformer/Switch.java index c59656963eb..0a01e3e321e 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Switch.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Switch.java @@ -26,7 +26,7 @@ /// A lever or a pressure plate on a channel. /// /// A lever toggles its channel when the player presses `Input#ACTIVATE` at it; a -/// plate (`plate = true`) holds the channel on while any character stands on it. +/// plate (`plate = true`) holds the channel on while any actor stands on it. @com.codename1.impl.SharedWithBackend public class Switch extends Entity { private final int channel; @@ -72,7 +72,7 @@ public void step(PlatformWorld world) { public void onTouch(PlatformWorld world, Actor c) { if (plate) { pressed = true; - } else if (c == world.getPlayer() && c.pressed(Input.ACTIVATE)) { + } else if (c == world.getPlayer() && c.pressed(Input.ACTIVATE)) { // NOPMD CompareObjectsWithEquals - identity is intended on = !on; world.setChannel(channel, on); world.emit(WorldEvent.SWITCH, x + w / 2, y, getId(), on ? "on" : "off"); diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Tile.java b/CodenameOne/src/com/codename1/gaming/platformer/Tile.java index 04449059245..bb207912d97 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Tile.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Tile.java @@ -23,7 +23,7 @@ package com.codename1.gaming.platformer; -/// The collision kinds a `TileGrid` cell can hold, and the characters a level file +/// The collision kinds a `TileGrid` cell can hold, and the actors a level file /// writes them with. /// /// A level's tiles are rows of text, one character per cell, which a person or a @@ -66,7 +66,7 @@ public final class Tile { public static final byte LADDER = 9; /// A damaging cell such as spikes. public static final byte HAZARD = 10; - /// Water a character swims in. + /// Water an actor swims in. public static final byte WATER = 11; private Tile() { @@ -80,7 +80,7 @@ private Tile() { /// /// #### Returns /// - /// the kind, or `-1` for a character that is not a tile + /// the kind, or `-1` for an actor that is not a tile public static int fromChar(char c) { switch (c) { case '.': diff --git a/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java b/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java index e31c195b82c..3b34820c870 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/TileGrid.java @@ -27,7 +27,7 @@ /// /// Cells outside the grid read as `Tile#SOLID` to the left and right, so nothing /// walks off the side of a level, and as `Tile#EMPTY` above and below, so a -/// character can jump above the top row and falls out of the bottom one (which a +/// actor can jump above the top row and falls out of the bottom one (which a /// `PlatformWorld` treats as a death). @com.codename1.impl.SharedWithBackend public final class TileGrid { @@ -67,10 +67,10 @@ public TileGrid(int cols, int rows, int tileSizePx) { /// /// #### Throws /// - /// - `IllegalArgumentException`: on a character that is not a tile + /// - `IllegalArgumentException`: on an actor that is not a tile public static TileGrid parse(String[] lines, int tileSizePx) { int w = 1; - for (int i = 0; i < lines.length; i++) { + for (int i = 0; i < lines.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow if (lines[i].length() > w) { w = lines[i].length(); } @@ -221,7 +221,7 @@ public boolean overlaps(int x, int y, int w, int h, int kind) { return false; } - /// Whether a rectangle overlaps any solid cell, as a crouching character asks + /// Whether a rectangle overlaps any solid cell, as a crouching actor asks /// before it stands up. /// /// #### Parameters diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java index ccd2940b4a9..690aa2381d7 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/WallJumpAbility.java @@ -25,7 +25,7 @@ /// Wall clinging and wall jumping. Falling while pushing into a wall slows the fall /// to `slideSpeed`; jumping from the wall (or within `graceTicks` of leaving it) -/// kicks the character up and away, locking control for `lockTicks` so the kick +/// kicks the actor up and away, locking control for `lockTicks` so the kick /// carries before input steers again. /// /// Add it before `JumpAbility`, which it pre-empts on the wall. diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java b/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java index 57cac4a4371..f1c2056c7aa 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/WeaponAbility.java @@ -27,7 +27,7 @@ /// cooldown, optional ammunition and eight-way aiming from the held directions. /// /// A melee weapon (`speed` 0) is a short-lived projectile that does not move, -/// placed in front of the character, so one mechanism covers both. +/// placed in front of the actor, so one mechanism covers both. @com.codename1.impl.SharedWithBackend public class WeaponAbility extends Ability { /// The projectile's art type. diff --git a/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java b/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java index 00955515aa7..813e5aa1571 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/WorldEvent.java @@ -29,15 +29,15 @@ /// particles and screen shake. @com.codename1.impl.SharedWithBackend public final class WorldEvent { - /// A character jumped. + /// An actor jumped. public static final int JUMP = 1; - /// A character landed. + /// An actor landed. public static final int LAND = 2; /// A pickup was collected; `detail` is its kind name. public static final int PICKUP = 3; - /// A character was hurt. + /// An actor was hurt. public static final int HURT = 4; - /// A character died. + /// An actor died. public static final int DEATH = 5; /// The player stomped an enemy. public static final int STOMP = 6; @@ -47,13 +47,13 @@ public final class WorldEvent { public static final int IMPACT = 8; /// A checkpoint was reached. public static final int CHECKPOINT = 9; - /// A spring launched a character. + /// A spring launched an actor. public static final int BOUNCE = 10; /// A door opened or a gate changed. public static final int OPEN = 11; /// A block crumbled. public static final int CRUMBLE = 12; - /// A character dashed. + /// An actor dashed. public static final int DASH = 13; /// The level was completed. public static final int COMPLETE = 14; @@ -75,7 +75,7 @@ public final class WorldEvent { /// - `type`: one of the constants /// - `x`: where, fixed point /// - `y`: where, fixed point - /// - `subject`: the id of the character or entity involved, may be null + /// - `subject`: the id of the actor or entity involved, may be null /// - `detail`: extra information such as a pickup kind, may be null public WorldEvent(int type, int x, int y, String subject, String detail) { this.type = type; @@ -112,7 +112,7 @@ public int getY() { return y; } - /// The id of the character or entity involved. + /// The id of the actor or entity involved. /// /// #### Returns /// diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/ActorAnimator.java b/CodenameOne/src/com/codename1/gaming/platformer/view/ActorAnimator.java new file mode 100644 index 00000000000..0440f229cad --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/ActorAnimator.java @@ -0,0 +1,205 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.platformer.MovementState; + +/// Chooses an `Actor`'s animation frame from its `MovementState`: the +/// presentation half of Corgi Engine's animator parameters. +/// +/// Each state maps to a `Clip` of frame indices in a sprite sheet. A state with +/// no clip of its own borrows a related one -- running falls back to walking, +/// crawling to crouching, every airborne state to jumping or falling, and in the +/// end everything to idle -- so a character drawn with only idle, walk and jump +/// frames still animates sensibly. One animator can serve every actor of a kind; +/// the per-actor progress lives in a `Track`. +public class ActorAnimator { + private final Clip[] clips = new Clip[MovementState.values().length]; + + /// A run of frames. + public static final class Clip { + final int[] frames; + final int ticksPerFrame; + final boolean loop; + + /// Creates a clip. + /// + /// #### Parameters + /// + /// - `frames`: frame indices into the sheet, at least one + /// - `ticksPerFrame`: world ticks (1/60 s) each frame shows + /// - `loop`: whether it repeats; otherwise it holds the last frame + public Clip(int[] frames, int ticksPerFrame, boolean loop) { + if (frames.length == 0) { + throw new IllegalArgumentException("A clip needs a frame"); + } + this.frames = new int[frames.length]; + System.arraycopy(frames, 0, this.frames, 0, frames.length); + this.ticksPerFrame = Math.max(1, ticksPerFrame); + this.loop = loop; + } + + /// The frame shown a number of ticks into the clip. + /// + /// #### Parameters + /// + /// - `ticks`: ticks since the clip started + /// + /// #### Returns + /// + /// a sheet frame index + public int frameAt(int ticks) { + int i = Math.max(0, ticks) / ticksPerFrame; + i = loop ? i % frames.length : Math.min(i, frames.length - 1); + return frames[i]; + } + } + + /// One actor's place in its animation. + public static final class Track { + private MovementState state; + private int ticks; + + /// Advances one world tick. + /// + /// #### Parameters + /// + /// - `s`: the actor's state this tick + public void tick(MovementState s) { + if (s != state) { + state = s; + ticks = 0; + } else { + ticks++; + } + } + + /// The state being shown. + /// + /// #### Returns + /// + /// the state, null before the first tick + public MovementState getState() { + return state; + } + + /// Ticks spent in the state. + /// + /// #### Returns + /// + /// the tick count + public int getTicks() { + return ticks; + } + } + + /// Sets a state's clip. + /// + /// #### Parameters + /// + /// - `state`: the state + /// - `clip`: its clip, or null to borrow a related one + /// + /// #### Returns + /// + /// this animator + public ActorAnimator set(MovementState state, Clip clip) { + clips[state.ordinal()] = clip; + return this; + } + + /// Sets a state's clip from frames. + /// + /// #### Parameters + /// + /// - `state`: the state + /// - `ticksPerFrame`: ticks each frame shows + /// - `loop`: whether it repeats + /// - `frames`: the sheet frame indices + /// + /// #### Returns + /// + /// this animator + public ActorAnimator set(MovementState state, int ticksPerFrame, boolean loop, int... frames) { + return set(state, new Clip(frames, ticksPerFrame, loop)); + } + + /// The clip a state shows, borrowed if it has none. + /// + /// #### Parameters + /// + /// - `state`: the state + /// + /// #### Returns + /// + /// the clip, or null if not even idle has one + public Clip clipFor(MovementState state) { + MovementState s = state; + for (int guard = 0; s != null && guard < 6; guard++) { + Clip c = clips[s.ordinal()]; + if (c != null) { + return c; + } + s = fallback(s); + } + return clips[MovementState.IDLE.ordinal()]; + } + + /// The frame for a track. + /// + /// #### Parameters + /// + /// - `track`: the actor's track + /// + /// #### Returns + /// + /// the sheet frame index, 0 if nothing is set + public int frameFor(Track track) { + Clip c = clipFor(track.state == null ? MovementState.IDLE : track.state); + return c == null ? 0 : c.frameAt(track.ticks); + } + + static MovementState fallback(MovementState s) { + // An if chain rather than an enum switch, which would compile to a + // synthetic lookup class per caller. + if (s == MovementState.RUNNING || s == MovementState.PUSHING) { + return MovementState.WALKING; + } + if (s == MovementState.CRAWLING) { + return MovementState.CROUCHING; + } + if (s == MovementState.FALLING || s == MovementState.GLIDING || s == MovementState.JETPACKING + || s == MovementState.DASHING) { + return MovementState.JUMPING; + } + if (s == MovementState.WALL_CLINGING || s == MovementState.GRIPPING) { + return MovementState.CLIMBING; + } + if (s == MovementState.CLIMBING || s == MovementState.SWIMMING || s == MovementState.HURT + || s == MovementState.DEAD) { + return MovementState.FALLING; + } + return s == MovementState.IDLE ? null : MovementState.IDLE; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java b/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java new file mode 100644 index 00000000000..e97c6f16baf --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java @@ -0,0 +1,263 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.platformer.WorldEvent; + +/// "Juice": what the player sees and hears when something happens, chosen per +/// `WorldEvent` type -- the role of Corgi Engine's MMFeedbacks. +/// +/// A `Reaction` bundles a camera shake, a screen flash, a sound name and a +/// particle burst. `PlatformView` runs every event of every tick through +/// `#react`, which shakes its `PlatformCamera` and hands the sound and the burst +/// to a `Sink` the game supplies (a `com.codename1.gaming.SoundPool`, a +/// `com.codename1.gaming.ParticleEmitter`, a haptic tap). The defaults make a +/// level feel alive before any tuning: landings thud, stomps pop, hits shake. +public class Feedback { + private final Reaction[] reactions = new Reaction[32]; + private int flashColor; + private double flashTime; + private double flashDuration; + private double intensity = 1; + + /// Receives what a reaction plays. + public interface Sink { + /// Plays a named sound. + /// + /// #### Parameters + /// + /// - `name`: the reaction's sound name + /// - `x`: where in the world, pixels + /// - `y`: where in the world, pixels + void sound(String name, double x, double y); + + /// Bursts particles. + /// + /// #### Parameters + /// + /// - `x`: where in the world, pixels + /// - `y`: where in the world, pixels + /// - `count`: how many + /// - `color`: ARGB + void burst(double x, double y, int count, int color); + } + + /// What one kind of event does. + public static final class Reaction { + double shake; + double shakeSeconds; + int flash; + double flashSeconds; + String sound; + int particles; + int particleColor = 0xffffffff; + boolean playerOnly; + + /// Shakes the camera. + /// + /// #### Parameters + /// + /// - `pixels`: the amplitude + /// - `seconds`: the duration + /// + /// #### Returns + /// + /// this reaction + public Reaction shake(double pixels, double seconds) { + shake = pixels; + shakeSeconds = seconds; + return this; + } + + /// Flashes the screen. + /// + /// #### Parameters + /// + /// - `argb`: the color; its alpha is the strongest opacity + /// - `seconds`: the fade time + /// + /// #### Returns + /// + /// this reaction + public Reaction flash(int argb, double seconds) { + flash = argb; + flashSeconds = seconds; + return this; + } + + /// Plays a sound. + /// + /// #### Parameters + /// + /// - `name`: passed to the `Sink` + /// + /// #### Returns + /// + /// this reaction + public Reaction sound(String name) { + sound = name; + return this; + } + + /// Bursts particles. + /// + /// #### Parameters + /// + /// - `count`: how many + /// - `argb`: their color + /// + /// #### Returns + /// + /// this reaction + public Reaction particles(int count, int argb) { + particles = count; + particleColor = argb; + return this; + } + + /// Limits the shake and flash to events about the player, so an enemy + /// landing off screen does not rattle the camera. + /// + /// #### Returns + /// + /// this reaction + public Reaction playerOnly() { + playerOnly = true; + return this; + } + } + + /// Creates feedback with the stock reactions. + public Feedback() { + on(WorldEvent.JUMP).sound("jump").particles(4, 0xffd8d0c0).playerOnly(); + on(WorldEvent.LAND).sound("land").particles(6, 0xffd8d0c0).playerOnly(); + on(WorldEvent.PICKUP).sound("pickup").particles(8, 0xffffd34d); + on(WorldEvent.HURT).sound("hurt").shake(5, 0.25).flash(0x66ff2020, 0.2).playerOnly(); + on(WorldEvent.DEATH).sound("death").shake(8, 0.4).particles(18, 0xffff5050); + on(WorldEvent.STOMP).sound("stomp").shake(3, 0.12).particles(10, 0xffffffff); + on(WorldEvent.FIRE).sound("fire"); + on(WorldEvent.IMPACT).sound("impact").particles(6, 0xffffe0a0); + on(WorldEvent.CHECKPOINT).sound("checkpoint").flash(0x44ffffff, 0.3).particles(14, 0xff7cf0a0); + on(WorldEvent.BOUNCE).sound("bounce").particles(6, 0xffffffff); + on(WorldEvent.OPEN).sound("open").shake(2, 0.15); + on(WorldEvent.CRUMBLE).sound("crumble").shake(2, 0.2).particles(10, 0xffa08060); + on(WorldEvent.DASH).sound("dash").particles(6, 0xff9fd8ff).playerOnly(); + on(WorldEvent.COMPLETE).sound("complete").flash(0x88ffffff, 0.6).particles(30, 0xffffd34d); + on(WorldEvent.GAME_OVER).sound("gameover").flash(0xaa000000, 1.2); + on(WorldEvent.SWITCH).sound("switch").shake(1, 0.1); + } + + /// The reaction to an event type, created empty if it had none. + /// + /// #### Parameters + /// + /// - `eventType`: a `WorldEvent` constant + /// + /// #### Returns + /// + /// the reaction to configure + public final Reaction on(int eventType) { + int i = eventType & 31; + if (reactions[i] == null) { + reactions[i] = new Reaction(); + } + return reactions[i]; + } + + /// Removes the reaction to an event type. + /// + /// #### Parameters + /// + /// - `eventType`: a `WorldEvent` constant + public void off(int eventType) { + reactions[eventType & 31] = null; + } + + /// Scales every shake and flash, for an accessibility "reduce motion" setting. + /// + /// #### Parameters + /// + /// - `intensity`: 0 for none, 1 for full + public void setIntensity(double intensity) { + this.intensity = Math.max(0, intensity); + } + + /// Plays an event. + /// + /// #### Parameters + /// + /// - `e`: the event + /// - `aboutPlayer`: whether the player is its subject + /// - `camera`: shaken, may be null + /// - `sink`: receives sounds and particles, may be null + public void react(WorldEvent e, boolean aboutPlayer, PlatformCamera camera, Sink sink) { + Reaction r = reactions[e.getType() & 31]; + if (r == null) { + return; + } + double x = e.getX() / 65536.0; + double y = e.getY() / 65536.0; + if (sink != null) { + if (r.sound != null) { + sink.sound(r.sound, x, y); + } + if (r.particles > 0) { + sink.burst(x, y, r.particles, r.particleColor); + } + } + if (r.playerOnly && !aboutPlayer) { + return; + } + if (camera != null && r.shake > 0 && intensity > 0) { + camera.shake(r.shake * intensity, r.shakeSeconds); + } + if (r.flashSeconds > 0 && intensity > 0) { + flashColor = r.flash; + flashDuration = r.flashSeconds; + flashTime = r.flashSeconds; + } + } + + /// Fades the flash. + /// + /// #### Parameters + /// + /// - `seconds`: time since the last frame + public void update(double seconds) { + flashTime = Math.max(0, flashTime - seconds); + } + + /// The flash color with its current opacity, 0 when none is showing. + /// + /// #### Returns + /// + /// ARGB + public int getFlash() { + if (flashTime <= 0 || flashDuration <= 0) { + return 0; + } + int a = (int) (((flashColor >>> 24) & 0xff) * (flashTime / flashDuration) * Math.min(1, intensity)); + return (a << 24) | (flashColor & 0xffffff); + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/InputMapper.java b/CodenameOne/src/com/codename1/gaming/platformer/view/InputMapper.java new file mode 100644 index 00000000000..c9bc2ff3018 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/InputMapper.java @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.GameInput; +import com.codename1.gaming.Gamepad; +import com.codename1.gaming.platformer.Input; +import com.codename1.ui.Display; + +/// Reads the keyboard, a gamepad and the on-screen controls of a +/// `com.codename1.gaming.GameInput` into the `Input` bits a `PlatformWorld` steps +/// with. Keyboard: arrows or WASD move, space/K jump, R run, Z/J dash, X/L +/// fire, E activate, C alternate (jetpack, glide). Gamepad: stick or d-pad move, +/// A jump, B dash, X fire, Y activate, right shoulder run, left shoulder +/// alternate. On-screen buttons send the key codes above. +/// +/// Subclass it or set other key codes to remap; the world only ever sees bits, +/// so a replay is the same whichever device produced it. +public class InputMapper { + private int[] jumpKeys = {' ', 'k', 'K'}; + private int[] runKeys = {'r', 'R'}; + private int[] dashKeys = {'z', 'Z', 'j', 'J'}; + private int[] fireKeys = {'x', 'X', 'l', 'L'}; + private int[] activateKeys = {'e', 'E'}; + private int[] altKeys = {'c', 'C'}; + private float stickDeadZone = 0.35f; + private boolean alwaysRun; + + /// The keys that jump. On-screen buttons should send the first. + /// + /// #### Parameters + /// + /// - `keys`: key codes + public void setJumpKeys(int... keys) { + jumpKeys = copy(keys); + } + + /// The keys that fire. + /// + /// #### Parameters + /// + /// - `keys`: key codes + public void setFireKeys(int... keys) { + fireKeys = copy(keys); + } + + /// The keys that dash. + /// + /// #### Parameters + /// + /// - `keys`: key codes + public void setDashKeys(int... keys) { + dashKeys = copy(keys); + } + + /// Runs without holding a key, as touch players expect. + /// + /// #### Parameters + /// + /// - `alwaysRun`: true to always run + public void setAlwaysRun(boolean alwaysRun) { + this.alwaysRun = alwaysRun; + } + + /// The key code an on-screen jump button should send. + /// + /// #### Returns + /// + /// a key code + public int getJumpKey() { + return jumpKeys.length == 0 ? ' ' : jumpKeys[0]; + } + + /// The key code an on-screen fire button should send. + /// + /// #### Returns + /// + /// a key code + public int getFireKey() { + return fireKeys.length == 0 ? 'x' : fireKeys[0]; + } + + /// The key code an on-screen dash button should send. + /// + /// #### Returns + /// + /// a key code + public int getDashKey() { + return dashKeys.length == 0 ? 'z' : dashKeys[0]; + } + + private static int[] copy(int[] a) { + int[] c = new int[a.length]; + System.arraycopy(a, 0, c, 0, a.length); + return c; + } + + /// Reads the current input. + /// + /// #### Parameters + /// + /// - `in`: the view's input state + /// + /// #### Returns + /// + /// `Input` bits + public int read(GameInput in) { + int bits = 0; + float ax = in.getAxisX(); + float ay = in.getAxisY(); + if (in.isGameKeyDown(Display.GAME_LEFT) || any(in, 'a', 'A') || ax < -stickDeadZone + || in.isGamepadButtonDown(Gamepad.BUTTON_DPAD_LEFT)) { + bits |= Input.LEFT; + } + if (in.isGameKeyDown(Display.GAME_RIGHT) || any(in, 'd', 'D') || ax > stickDeadZone + || in.isGamepadButtonDown(Gamepad.BUTTON_DPAD_RIGHT)) { + bits |= Input.RIGHT; + } + if (in.isGameKeyDown(Display.GAME_UP) || any(in, 'w', 'W') || ay < -stickDeadZone + || in.isGamepadButtonDown(Gamepad.BUTTON_DPAD_UP)) { + bits |= Input.UP; + } + if (in.isGameKeyDown(Display.GAME_DOWN) || any(in, 's', 'S') || ay > stickDeadZone + || in.isGamepadButtonDown(Gamepad.BUTTON_DPAD_DOWN)) { + bits |= Input.DOWN; + } + if (any(in, jumpKeys) || in.isGamepadButtonDown(Gamepad.BUTTON_A)) { + bits |= Input.JUMP; + } + if (alwaysRun || any(in, runKeys) || in.isGamepadButtonDown(Gamepad.BUTTON_RIGHT_SHOULDER)) { + bits |= Input.RUN; + } + if (any(in, dashKeys) || in.isGamepadButtonDown(Gamepad.BUTTON_B)) { + bits |= Input.DASH; + } + if (any(in, fireKeys) || in.isGameKeyDown(Display.GAME_FIRE) || in.isGamepadButtonDown(Gamepad.BUTTON_X)) { + bits |= Input.FIRE; + } + if (any(in, activateKeys) || in.isGamepadButtonDown(Gamepad.BUTTON_Y)) { + bits |= Input.ACTIVATE; + } + if (any(in, altKeys) || in.isGamepadButtonDown(Gamepad.BUTTON_LEFT_SHOULDER)) { + bits |= Input.ALT; + } + return bits; + } + + private static boolean any(GameInput in, int... keys) { + for (int i = 0; i < keys.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + if (in.isKeyDown(keys[i])) { + return true; + } + } + return false; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java new file mode 100644 index 00000000000..2cb36c0a32d --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.SpriteSheet; +import com.codename1.gaming.platformer.Actor; +import com.codename1.gaming.platformer.Entity; +import com.codename1.gaming.platformer.MovingPlatform; +import com.codename1.gaming.platformer.TileGrid; +import com.codename1.ui.Image; + +/// Supplies the images a `PlatformView` draws. The simulation never sees any of +/// it, so art can change -- a skin, a seasonal theme, a 2.5D model set -- +/// without changing how a level plays or what a replay hashes to. +/// +/// `ProceduralArt` implements every method with generated shapes, so a level is +/// playable before any art exists; extend it and override what you have art for. +public interface PlatformArt { + /// The image for one cell. Called when the view first draws a cell and again + /// whenever the cell changes (a door opening, a block crumbling). + /// + /// #### Parameters + /// + /// - `grid`: the grid, to look at neighbors for auto-tiling + /// - `col`: the column + /// - `row`: the row + /// + /// #### Returns + /// + /// an image the size of a tile in pixels, or null to draw nothing + Image tile(TileGrid grid, int col, int row); + + /// The sprite sheet for an actor; frames are chosen by `#animator(Actor)`. + /// The frame is drawn centered on the body horizontally and standing on its + /// bottom edge, so a sheet may be larger than the body. + /// + /// #### Parameters + /// + /// - `actor`: the actor; `Actor#getKind()` names its art + /// + /// #### Returns + /// + /// the sheet + SpriteSheet sheet(Actor actor); + + /// The animator for an actor. + /// + /// #### Parameters + /// + /// - `actor`: the actor + /// + /// #### Returns + /// + /// the animator, typically shared by every actor of a kind + ActorAnimator animator(Actor actor); + + /// The image for an entity this tick. Called every tick, so return cached + /// images. + /// + /// #### Parameters + /// + /// - `entity`: the entity; `Entity#getType()` and `Entity#getPhase()` select + /// the image + /// - `tick`: the world tick, for animating + /// + /// #### Returns + /// + /// the image, drawn centered on the entity, or null to draw nothing + Image entity(Entity entity, int tick); + + /// The image for a moving platform. + /// + /// #### Parameters + /// + /// - `platform`: the platform + /// + /// #### Returns + /// + /// an image the platform's size in pixels + Image platform(MovingPlatform platform); +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformCamera.java b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformCamera.java new file mode 100644 index 00000000000..a92b77b9cb8 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformCamera.java @@ -0,0 +1,238 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +/// A side-scroller camera: follows a target through a dead zone, leads in the +/// direction it faces, eases toward where it wants to be, stays inside the level +/// and shakes on demand. +/// +/// It is pure arithmetic in pixels and knows nothing of the world or the +/// renderer, so it can be tested and reused: call `#update` once per rendered +/// frame with the target's center, then read `#getX()`/`#getY()`, the top-left +/// corner of the view in world pixels. +public class PlatformCamera { + private double x; + private double y; + private double viewWidth; + private double viewHeight; + private double minX; + private double minY; + private double maxX = Double.MAX_VALUE; + private double maxY = Double.MAX_VALUE; + private double deadZoneWidth = 0.15; + private double deadZoneHeight = 0.25; + private double lookAhead = 0.12; + private double smoothing = 8; + private double lead; + private double shakeAmplitude; + private double shakeTime; + private double shakeDuration; + private double offsetX; + private double offsetY; + private long shakeSeed = 0x2545F4914F6CDD1DL; + private boolean placed; + + /// Sets the size of the view in world pixels. + /// + /// #### Parameters + /// + /// - `width`: the width + /// - `height`: the height + public void setViewSize(double width, double height) { + this.viewWidth = width; + this.viewHeight = height; + } + + /// Keeps the view inside a rectangle, normally the level. + /// + /// #### Parameters + /// + /// - `left`: the left edge + /// - `top`: the top edge + /// - `right`: the right edge + /// - `bottom`: the bottom edge + public void setBounds(double left, double top, double right, double bottom) { + minX = left; + minY = top; + maxX = right; + maxY = bottom; + } + + /// Sets the dead zone, as fractions of the view, inside which the target moves + /// without moving the camera. + /// + /// #### Parameters + /// + /// - `width`: fraction of the view width + /// - `height`: fraction of the view height + public void setDeadZone(double width, double height) { + deadZoneWidth = width; + deadZoneHeight = height; + } + + /// How far ahead of the target the camera leads, as a fraction of the view + /// width. + /// + /// #### Parameters + /// + /// - `fraction`: 0 for none + public void setLookAhead(double fraction) { + lookAhead = fraction; + } + + /// How quickly the camera catches up; higher is snappier, 0 snaps at once. + /// + /// #### Parameters + /// + /// - `rate`: per second + public void setSmoothing(double rate) { + smoothing = rate; + } + + /// Starts a shake that fades out. + /// + /// #### Parameters + /// + /// - `amplitude`: the strongest offset in pixels + /// - `seconds`: how long it lasts + public void shake(double amplitude, double seconds) { + if (amplitude >= shakeAmplitude * remainingShake()) { + shakeAmplitude = amplitude; + shakeDuration = seconds; + shakeTime = seconds; + } + } + + private double remainingShake() { + return shakeDuration <= 0 ? 0 : shakeTime / shakeDuration; + } + + /// Jumps straight to a target, as at the start of a level or after a respawn. + /// + /// #### Parameters + /// + /// - `targetX`: the target's center + /// - `targetY`: the target's center + public void snapTo(double targetX, double targetY) { + x = targetX - viewWidth / 2; + y = targetY - viewHeight / 2; + lead = 0; + clamp(); + placed = true; + } + + /// Moves the camera for one frame. + /// + /// #### Parameters + /// + /// - `targetX`: the target's center + /// - `targetY`: the target's center + /// - `facing`: 1 right, -1 left + /// - `seconds`: time since the last frame + public void update(double targetX, double targetY, int facing, double seconds) { + if (!placed) { + snapTo(targetX, targetY); + } + double wantLead = facing * lookAhead * viewWidth; + double k = smoothing <= 0 ? 1 : Math.min(1, smoothing * seconds); + lead += (wantLead - lead) * k * 0.5; + double cx = x + viewWidth / 2 - lead; + double cy = y + viewHeight / 2; + double hw = deadZoneWidth * viewWidth / 2; + double hh = deadZoneHeight * viewHeight / 2; + double wantX = x; + double wantY = y; + if (targetX > cx + hw) { + wantX += targetX - (cx + hw); + } else if (targetX < cx - hw) { + wantX += targetX - (cx - hw); + } + if (targetY > cy + hh) { + wantY += targetY - (cy + hh); + } else if (targetY < cy - hh) { + wantY += targetY - (cy - hh); + } + x += (wantX - x) * k; + y += (wantY - y) * k; + clamp(); + offsetX = 0; + offsetY = 0; + if (shakeTime > 0) { + shakeTime = Math.max(0, shakeTime - seconds); + double a = shakeAmplitude * remainingShake(); + offsetX = (nextUnit() * 2 - 1) * a; + offsetY = (nextUnit() * 2 - 1) * a; + } + } + + private double nextUnit() { + shakeSeed ^= shakeSeed << 13; + shakeSeed ^= shakeSeed >>> 7; + shakeSeed ^= shakeSeed << 17; + return ((shakeSeed >>> 11) & 0xfffff) / (double) 0x100000; + } + + private void clamp() { + double right = maxX - viewWidth; + double bottom = maxY - viewHeight; + x = right < minX ? (minX + maxX - viewWidth) / 2 : Math.max(minX, Math.min(right, x)); + y = bottom < minY ? (minY + maxY - viewHeight) / 2 : Math.max(minY, Math.min(bottom, y)); + } + + /// The left edge of the view, shake included. + /// + /// #### Returns + /// + /// world pixels + public double getX() { + return x + offsetX; + } + + /// The top edge of the view, shake included. + /// + /// #### Returns + /// + /// world pixels + public double getY() { + return y + offsetY; + } + + /// The view width. + /// + /// #### Returns + /// + /// world pixels + public double getViewWidth() { + return viewWidth; + } + + /// The view height. + /// + /// #### Returns + /// + /// world pixels + public double getViewHeight() { + return viewHeight; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java new file mode 100644 index 00000000000..203d0532a4c --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java @@ -0,0 +1,789 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.GameView; +import com.codename1.gaming.Model; +import com.codename1.gaming.Sprite; +import com.codename1.gaming.SpriteSheet; +import com.codename1.gaming.platformer.Actor; +import com.codename1.gaming.platformer.Body; +import com.codename1.gaming.platformer.Entity; +import com.codename1.gaming.platformer.MovingPlatform; +import com.codename1.gaming.platformer.PlatformWorld; +import com.codename1.gaming.platformer.Tile; +import com.codename1.gaming.platformer.TileGrid; +import com.codename1.gaming.platformer.WorldEvent; +import com.codename1.gpu.GraphicsDevice; +import com.codename1.gpu.Material; +import com.codename1.gpu.Mesh; +import com.codename1.gpu.Primitives; +import com.codename1.ui.Graphics; +import com.codename1.ui.Image; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/// Plays a `PlatformWorld` on screen: steps it at a fixed 60 Hz from the player's +/// input, draws it through a `PlatformArt`, follows the player with a +/// `PlatformCamera` and plays each tick's events through `Feedback`. +/// +/// ```java +/// LevelData level = LevelData.parse(json); +/// PlatformWorld world = level.createWorld(seed); +/// PlatformView view = new PlatformView(world, new ProceduralArt(level.getTileSize())); +/// form.add(BorderLayout.CENTER, view); +/// form.show(); +/// view.start(); +/// ``` +/// +/// Drawing is interpolated between the last two ticks, so motion is smooth at +/// any display rate while the simulation stays exactly 60 Hz. Tiles are baked +/// into chunk images once and re-baked only where the grid changes. Positions +/// are in world pixels multiplied by a scale chosen so `#setVisibleRows` rows of +/// tiles fill the height of the view. +/// +/// `#setDepth(boolean)` turns on 2.5D: the same world, the same rules and the +/// same replay, drawn with a perspective camera. Solid ground becomes extruded +/// blocks and actors, entities and backdrops become billboards at depth, so +/// backdrops get real parallax. The simulation cannot tell the difference. +/// +/// Override `#onEvent` for game rules the view should react to (a HUD, a +/// win screen), or set an `InputSource` to drive the world from a replay or a +/// network peer instead of the local player. +public class PlatformView extends GameView { + private static final int CHUNK = 16; + private static final int Z_BACK = -100; + private static final int Z_TILES = 0; + private static final int Z_PLATFORMS = 5; + private static final int Z_ENTITIES = 10; + private static final int Z_ACTORS = 20; + private static final int Z_FLASH = 1000; + + private PlatformWorld world; + private PlatformArt art; + private final PlatformCamera camera = new PlatformCamera(); + private Feedback feedback = new Feedback(); + private InputMapper mapper = new InputMapper(); + private InputSource source; + private Feedback.Sink sink; + private double visibleRows = 12; + private double scale = 1; + private final Map shown = new HashMap(); + private final List gone = new ArrayList(); + private Sprite[] chunks = new Sprite[0]; + private boolean[] dirty = new boolean[0]; + private byte[] cells = new byte[0]; + private int chunkCols; + private Sprite flash; + private final List backgrounds = new ArrayList(); + private int lastBits; + private boolean depth; + private GraphicsDevice device; + private final Model[] blocks = new Model[4]; + private final int[] blockColors = {0xff5b4b8a, 0xff8a6a4a, 0xffd8dde8, 0xffb08850}; + private boolean blocksDirty = true; + private float fov = 40f; + private float depthTilt = 0.18f; + private float blockDepth = 1.6f; + + /// Supplies the player's input instead of the device, for a replay or a + /// remote player. + public interface InputSource { + /// The input for the next tick. + /// + /// #### Parameters + /// + /// - `world`: the world about to step + /// - `local`: what the local devices read this tick + /// + /// #### Returns + /// + /// `com.codename1.gaming.platformer.Input` bits per actor, in the + /// order they were added; actors with a brain ignore theirs + int[] next(PlatformWorld world, int local); + } + + private static final class Shown { + final Sprite sprite; + final ActorAnimator.Track track; + double prevX; + double prevY; + double x; + double y; + boolean seen; + + Shown(Sprite sprite, boolean actor) { + this.sprite = sprite; + this.track = actor ? new ActorAnimator.Track() : null; + } + } + + /// Creates a view. + /// + /// #### Parameters + /// + /// - `world`: the world to play + /// - `art`: draws it + public PlatformView(PlatformWorld world, PlatformArt art) { + setFixedTimestep(1.0 / PlatformWorld.TICKS_PER_SECOND); + Image white = Image.createImage(1, 1, 0xffffffff); + flash = new Sprite(white); + flash.setAnchor(0, 0); + flash.setParallax(0, 0); + flash.setZOrder(Z_FLASH); + flash.setVisible(false); + getScene().add(flash); + setWorld(world, art); + } + + /// Replaces the world, as when the next level starts or a level restarts. + /// + /// #### Parameters + /// + /// - `world`: the new world + /// - `art`: draws it + public final void setWorld(PlatformWorld world, PlatformArt art) { + for (Shown s : shown.values()) { + getScene().remove(s.sprite); + } + shown.clear(); + for (int i = 0; i < chunks.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + if (chunks[i] != null) { + getScene().remove(chunks[i]); + releaseTexture(chunks[i].getImage()); + } + } + this.world = world; + this.art = art; + TileGrid g = world.getGrid(); + chunkCols = (g.getWidth() + CHUNK - 1) / CHUNK; + int chunkRows = (g.getHeight() + CHUNK - 1) / CHUNK; + chunks = new Sprite[chunkCols * chunkRows]; + dirty = new boolean[chunks.length]; + for (int i = 0; i < dirty.length; i++) { + dirty[i] = true; + } + cells = new byte[g.getWidth() * g.getHeight()]; + snapshotCells(false); + camera.setBounds(0, 0, g.getWidth() * g.getTileSize(), g.getHeight() * g.getTileSize()); + blocksDirty = true; + syncSprites(true); + snapCamera(); + } + + /// Draws in 2.5D: a perspective camera over extruded blocks and billboard + /// sprites. Call before `#start()` or at any time after. + /// + /// #### Parameters + /// + /// - `depth`: true for 2.5D, false for flat 2D + public void setDepth(boolean depth) { + this.depth = depth; + if (depth) { + getCamera().setPerspective(fov, 0.1f, 600f); + } else { + getCamera().setOrthographic2D(); + } + blocksDirty = true; + for (int i = 0; i < chunks.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + if (chunks[i] != null) { + chunks[i].setVisible(!depth); + } + } + } + + /// Whether the view draws in 2.5D. + /// + /// #### Returns + /// + /// true in 2.5D + public boolean isDepth() { + return depth; + } + + /// Tunes the 2.5D look. + /// + /// #### Parameters + /// + /// - `fovDegrees`: the vertical field of view, 40 by default + /// - `tilt`: how far above the action the camera sits, as a fraction of its + /// distance; 0.18 by default + /// - `blockDepth`: how deep solid ground extrudes, in tiles; 1.6 by default + public void setDepthLook(float fovDegrees, float tilt, float blockDepth) { + this.fov = fovDegrees; + this.depthTilt = tilt; + this.blockDepth = blockDepth; + blocksDirty = true; + if (depth) { + getCamera().setPerspective(fov, 0.1f, 600f); + } + } + + /// The 2.5D block colors. + /// + /// #### Parameters + /// + /// - `solid`: ground and slopes + /// - `ledge`: one-way ledges + /// - `hazard`: spikes + /// - `ladder`: ladders + public void setDepthColors(int solid, int ledge, int hazard, int ladder) { + blockColors[0] = solid; + blockColors[1] = ledge; + blockColors[2] = hazard; + blockColors[3] = ladder; + for (int i = 0; i < blocks.length; i++) { + if (blocks[i] != null) { + blocks[i].getMaterial().setColor(blockColors[i]); + } + } + } + + @Override + protected void onSetup(GraphicsDevice device) { + super.onSetup(device); + this.device = device; + Mesh cube = Primitives.cube(device, 1f); + for (int i = 0; i < blocks.length; i++) { + blocks[i] = new Model(cube, new Material(Material.Type.LAMBERT).setColor(blockColors[i])); + blocks[i].setVisible(false); + addModel(blocks[i]); + } + blocksDirty = true; + } + + private void rebuildBlocks() { + blocksDirty = false; + if (device == null) { + return; + } + TileGrid g = world.getGrid(); + float[][] m = new float[4][]; + int[] n = new int[4]; + int cap = g.getWidth() * g.getHeight() * 4; + for (int i = 0; i < 4; i++) { + m[i] = new float[16 * Math.min(cap, 64)]; + } + for (int r = 0; r < g.getHeight(); r++) { + for (int c = 0; c < g.getWidth(); c++) { + int k = g.get(c, r); + if (k == Tile.SOLID) { + m[0] = box(m[0], n[0]++, c, r, 0, 0, 1, 1, blockDepth); + } else if (Tile.isSlope(k)) { + // A slope is a staircase of four columns sampled at their + // centers, close enough at play distance. + for (int s = 0; s < 4; s++) { + int fs = 4 << 16; + int top = Tile.slopeDepth(k, (s << 16) + (1 << 15), fs); + float t = top / 65536f / 4f; + m[0] = box(m[0], n[0]++, c, r, s / 4f, t, 0.25f, 1 - t, blockDepth); + } + } else if (k == Tile.ONE_WAY) { + m[1] = box(m[1], n[1]++, c, r, 0, 0, 1, 0.22f, blockDepth * 0.8f); + } else if (k == Tile.HAZARD) { + for (int s = 0; s < 3; s++) { + m[2] = box(m[2], n[2]++, c, r, s / 3f + 0.08f, 0.55f, 0.18f, 0.45f, blockDepth * 0.6f); + } + } else if (k == Tile.LADDER) { + m[3] = box(m[3], n[3]++, c, r, 0.18f, 0, 0.1f, 1, 0.1f); + m[3] = box(m[3], n[3]++, c, r, 0.72f, 0, 0.1f, 1, 0.1f); + m[3] = box(m[3], n[3]++, c, r, 0.18f, 0.45f, 0.64f, 0.08f, 0.1f); + } + } + } + for (int i = 0; i < 4; i++) { + blocks[i].setInstances(m[i], null, n[i]); + blocks[i].setVisible(depth && n[i] > 0); + } + } + + /// Writes the transform of a box in tile units: cell (c, r), offset (ox, oy) + /// from its top-left, size w x h, extruded `d` into the screen. World y is up. + private static float[] box(float[] m, int index, int c, int r, float ox, float oy, float w, float h, float d) { + float[] out = m; + if ((index + 1) * 16 > out.length) { + out = new float[out.length * 2]; + System.arraycopy(m, 0, out, 0, m.length); + } + int o = index * 16; + for (int i = 0; i < 16; i++) { + out[o + i] = 0; + } + out[o] = w; + out[o + 5] = h; + out[o + 10] = d; + out[o + 12] = c + ox + w / 2; + out[o + 13] = -(r + oy + h / 2); + out[o + 14] = -d / 2 + 0.5f; + out[o + 15] = 1; + return out; + } + + /// Adds a parallax backdrop behind the level, repeated across the view. + /// + /// #### Parameters + /// + /// - `image`: the layer + /// - `factor`: how much it scrolls with the world; 0 pinned, 1 with the level + /// - `y`: its top in world pixels + public void addBackground(Image image, float factor, double y) { + TileGrid g = world.getGrid(); + double worldW = g.getWidth() * g.getTileSize(); + int copies = (int) Math.ceil(worldW * Math.max(0.1, factor) / image.getWidth()) + 2; + for (int i = 0; i < copies; i++) { + Sprite s = new Sprite(image); + s.setAnchor(0, 0); + s.setParallax(factor, factor); + s.setZOrder(Z_BACK + backgrounds.size()); + s.setUserData(new double[] {i * image.getWidth(), y}); + backgrounds.add(s); + getScene().add(s); + } + } + + /// How many rows of tiles fill the view's height; sets the scale. + /// + /// #### Parameters + /// + /// - `rows`: rows, 12 by default + public void setVisibleRows(double rows) { + visibleRows = Math.max(2, rows); + } + + /// The camera, to tune its dead zone, look-ahead and smoothing. + /// + /// #### Returns + /// + /// the camera + public PlatformCamera getPlatformCamera() { + return camera; + } + + /// The feedback, to change what events look and sound like. + /// + /// #### Returns + /// + /// the feedback + public Feedback getFeedback() { + return feedback; + } + + /// Replaces the feedback. + /// + /// #### Parameters + /// + /// - `feedback`: the feedback + public void setFeedback(Feedback feedback) { + this.feedback = feedback; + } + + /// Receives the sounds and particle bursts of the feedback. + /// + /// #### Parameters + /// + /// - `sink`: the sink, may be null + public void setFeedbackSink(Feedback.Sink sink) { + this.sink = sink; + } + + /// The input mapper, to remap keys. + /// + /// #### Returns + /// + /// the mapper + public InputMapper getInputMapper() { + return mapper; + } + + /// Replaces the input mapper. + /// + /// #### Parameters + /// + /// - `mapper`: the mapper + public void setInputMapper(InputMapper mapper) { + this.mapper = mapper; + } + + /// Drives the world from somewhere other than the local devices. + /// + /// #### Parameters + /// + /// - `source`: the source, or null for the local player + public void setInputSource(InputSource source) { + this.source = source; + } + + /// The world being played. + /// + /// #### Returns + /// + /// the world + public PlatformWorld getWorld() { + return world; + } + + /// The `Input` bits the local devices produced on the last tick, for a + /// recorder. + /// + /// #### Returns + /// + /// the bits + public int getLastInput() { + return lastBits; + } + + @Override + protected void update(double deltaSeconds) { + if (world.isComplete() || world.isGameOver()) { + return; + } + int local = mapper.read(getInput()); + lastBits = local; + for (Shown s : shown.values()) { + s.prevX = s.x; + s.prevY = s.y; + } + if (source != null) { + world.step(source.next(world, local)); + } else { + world.step(local); + } + onTick(local); + Actor player = world.getPlayer(); + List events = world.getEvents(); + for (int i = 0; i < events.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + WorldEvent e = events.get(i); + boolean aboutPlayer = player != null && player.getId().equals(e.getSubject()); + feedback.react(e, aboutPlayer, camera, sink); + if (e.getType() == WorldEvent.DEATH && aboutPlayer && player.isAlive()) { + // Respawned: jump the camera rather than pan across the level. + snapCamera(); + } + onEvent(e); + } + snapshotCells(true); + syncSprites(false); + } + + /// Called after every tick, before the events are played. + /// + /// #### Parameters + /// + /// - `localInput`: what the local devices read + protected void onTick(int localInput) { + } + + /// Called for every event of every tick, after its feedback played. + /// + /// #### Parameters + /// + /// - `e`: the event + protected void onEvent(WorldEvent e) { + } + + private void snapshotCells(boolean markChanges) { + TileGrid g = world.getGrid(); + int w = g.getWidth(); + for (int r = 0; r < g.getHeight(); r++) { + for (int c = 0; c < w; c++) { + byte k = (byte) g.get(c, r); + int i = r * w + c; + if (cells[i] != k) { + cells[i] = k; + if (markChanges) { + blocksDirty = true; + markDirty(c, r); + markDirty(c, r + 1); + } + } + } + } + } + + private void markDirty(int c, int r) { + TileGrid g = world.getGrid(); + if (c < 0 || r < 0 || c >= g.getWidth() || r >= g.getHeight()) { + return; + } + dirty[(r / CHUNK) * chunkCols + c / CHUNK] = true; + } + + private void bakeChunks() { + TileGrid g = world.getGrid(); + int ts = g.getTileSize(); + for (int i = 0; i < chunks.length; i++) { + if (!dirty[i]) { + continue; + } + dirty[i] = false; + int chunkRow = i / chunkCols; + int c0 = (i - chunkRow * chunkCols) * CHUNK; + int r0 = chunkRow * CHUNK; + Image img = null; + Graphics gr = null; + for (int r = r0; r < Math.min(r0 + CHUNK, g.getHeight()); r++) { + for (int c = c0; c < Math.min(c0 + CHUNK, g.getWidth()); c++) { + Image t = art.tile(g, c, r); + if (t == null) { + continue; + } + if (img == null) { + img = Image.createImage(CHUNK * ts, CHUNK * ts, 0); + gr = img.getGraphics(); + } + gr.drawImage(t, (c - c0) * ts, (r - r0) * ts); + } + } + Sprite s = chunks[i]; + if (s != null) { + releaseTexture(s.getImage()); + if (img == null) { + getScene().remove(s); + chunks[i] = null; + } else { + s.setImage(img); + } + } else if (img != null) { + s = new Sprite(img); + s.setAnchor(0, 0); + s.setZOrder(Z_TILES); + s.setUserData(new double[] {c0 * ts, r0 * ts}); + s.setVisible(!depth); + chunks[i] = s; + getScene().add(s); + } + } + } + + private void syncSprites(boolean reset) { + for (Shown s : shown.values()) { + s.seen = false; + } + List plats = world.getPlatforms(); + for (int i = 0; i < plats.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + MovingPlatform p = plats.get(i); + Shown s = show(p, Z_PLATFORMS, false); + s.sprite.setImage(art.platform(p)); + place(s, p.getX(), p.getY(), reset); + } + List ents = world.getEntities(); + for (int i = 0; i < ents.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + Entity e = ents.get(i); + Image img = art.entity(e, world.getTick()); + Shown s = show(e, Z_ENTITIES, false); + s.sprite.setVisible(img != null); + if (img != null) { + s.sprite.setImage(img); + } + place(s, e.x + e.w / 2, e.y + e.h / 2, reset); + } + List actors = world.getActors(); + for (int i = 0; i < actors.size(); i++) { + Actor a = actors.get(i); + if (!a.isAlive()) { + continue; + } + Shown s = show(a, Z_ACTORS + (i == 0 ? 1 : 0), true); + s.track.tick(a.getState()); + SpriteSheet sheet = art.sheet(a); + int frame = art.animator(a).frameFor(s.track); + s.sprite.setImage(sheet.getFrame(Math.max(0, Math.min(frame, sheet.getFrameCount() - 1)))); + Body b = a.getBody(); + place(s, b.x + b.w / 2, b.y + b.h, reset); + boolean blink = a.getHealth() != null && a.getHealth().isInvulnerable() && (world.getTick() / 4) % 2 == 0; + s.sprite.setAlpha(blink ? 90 : 255); + s.sprite.setUserData(a.getFacing() < 0 ? Boolean.TRUE : Boolean.FALSE); + } + gone.clear(); + for (Map.Entry en : shown.entrySet()) { + if (!en.getValue().seen) { + gone.add(en.getKey()); + } + } + for (int i = 0; i < gone.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + getScene().remove(shown.remove(gone.get(i)).sprite); + } + } + + private Shown show(Object key, int z, boolean actor) { + Shown s = shown.get(key); + if (s == null) { + Sprite sp = new Sprite(); + sp.setAnchor(0.5, actor ? 1 : 0.5); + if (key instanceof MovingPlatform) { + sp.setAnchor(0, 0); + } + sp.setZOrder(z); + getScene().add(sp); + s = new Shown(sp, actor); + shown.put(key, s); + s.seen = true; + s.prevX = Double.NaN; + return s; + } + s.seen = true; + return s; + } + + private static void place(Shown s, int fx, int fy, boolean reset) { + s.x = fx / 65536.0; + s.y = fy / 65536.0; + if (reset || Double.isNaN(s.prevX)) { + s.prevX = s.x; + s.prevY = s.y; + } + } + + private void snapCamera() { + Actor p = world.getPlayer(); + if (p != null) { + Body b = p.getBody(); + camera.snapTo((b.x + b.w / 2) / 65536.0, (b.y + b.h / 2) / 65536.0); + } + } + + /// Positions everything for this frame, between the last two ticks. + @Override + public void frame(double deltaSeconds) { + super.frame(deltaSeconds); + int vw = Math.max(1, getWidth()); + int vh = Math.max(1, getHeight()); + TileGrid g = world.getGrid(); + scale = vh / (visibleRows * g.getTileSize()); + camera.setViewSize(vw / scale, vh / scale); + double alpha = getInterpolationAlpha(); + Actor p = world.getPlayer(); + if (p != null && p.isAlive()) { + Shown ps = shown.get(p); + Body b = p.getBody(); + double cx = ps == null ? (b.x + b.w / 2) / 65536.0 : ps.prevX + (ps.x - ps.prevX) * alpha; + double cy = ps == null ? (b.y + b.h / 2) / 65536.0 + : ps.prevY + (ps.y - ps.prevY) * alpha - (b.h / 65536.0) / 2; + camera.update(cx, cy, p.getFacing(), deltaSeconds); + } + feedback.update(deltaSeconds); + bakeChunks(); + if (blocksDirty) { + rebuildBlocks(); + } + if (depth) { + positionDepth(alpha); + } else { + positionFlat(alpha); + } + int f = feedback.getFlash(); + flash.setVisible(f != 0); + if (f != 0) { + flash.setColor(f); + if (depth) { + double ts = g.getTileSize(); + double cx = (camera.getX() + camera.getViewWidth() / 2) / ts; + double cy = -(camera.getY() + camera.getViewHeight() / 2) / ts; + double dist = cameraDistance(); + double hh = 2 * (dist / 2) * Math.tan(Math.toRadians(fov / 2)) * 1.2; + flash.setAnchor(0.5, 0.5); + flash.setPosition(cx, cy, dist / 2); + flash.setSize((float) (hh * vw / vh), (float) hh); + } else { + flash.setAnchor(0, 0); + flash.setPosition(0, 0); + flash.setSize(vw, vh); + } + } + } + + private double cameraDistance() { + return (visibleRows / 2) / Math.tan(Math.toRadians(fov / 2)); + } + + private void positionFlat(double alpha) { + double camX = camera.getX(); + double camY = camera.getY(); + getScene().setCamera((int) Math.round(camX * scale), (int) Math.round(camY * scale)); + float sc = (float) scale; + for (int i = 0; i < chunks.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + Sprite s = chunks[i]; + if (s != null) { + double[] at = (double[]) s.getUserData(); + s.setPosition(Math.floor(at[0] * scale), Math.floor(at[1] * scale), 0); + // Overlap by a pixel so a fractional scale never opens a seam. + s.setSize((float) Math.ceil(s.getImage().getWidth() * scale) + 1, + (float) Math.ceil(s.getImage().getHeight() * scale) + 1); + } + } + for (Map.Entry en : shown.entrySet()) { + Shown s = en.getValue(); + double x = s.prevX + (s.x - s.prevX) * alpha; + double y = s.prevY + (s.y - s.prevY) * alpha; + s.sprite.setPosition(x * scale, y * scale, 0); + s.sprite.setSize(0, 0); + boolean flip = en.getKey() instanceof Actor && Boolean.TRUE.equals(s.sprite.getUserData()); + s.sprite.setScale(flip ? -sc : sc, sc); + } + for (int i = 0; i < backgrounds.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + Sprite s = backgrounds.get(i); + double[] at = (double[]) s.getUserData(); + s.setPosition(at[0] * scale, at[1] * scale, 0); + s.setScale(sc); + } + } + + private void positionDepth(double alpha) { + double ts = world.getGrid().getTileSize(); + double cx = (camera.getX() + camera.getViewWidth() / 2) / ts; + double cy = -(camera.getY() + camera.getViewHeight() / 2) / ts; + double dist = cameraDistance(); + getCamera().setPosition((float) cx, (float) (cy + dist * depthTilt), (float) dist); + getCamera().setTarget((float) cx, (float) cy, 0f); + float unit = (float) (1 / ts); + for (Map.Entry en : shown.entrySet()) { + Shown s = en.getValue(); + double x = s.prevX + (s.x - s.prevX) * alpha; + double y = s.prevY + (s.y - s.prevY) * alpha; + boolean isActor = en.getKey() instanceof Actor; + s.sprite.setPosition(x / ts, -y / ts, isActor ? 0.6 : 0.55); + Image img = s.sprite.getImage(); + if (img != null) { + s.sprite.setSize(img.getWidth() * unit, img.getHeight() * unit); + } + boolean flip = isActor && Boolean.TRUE.equals(s.sprite.getUserData()); + s.sprite.setScale(flip ? -1f : 1f, 1f); + } + for (int i = 0; i < backgrounds.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow + Sprite s = backgrounds.get(i); + double[] at = (double[]) s.getUserData(); + float factor = s.getParallaxX(); + // Depth gives parallax for free: a layer that scrolls at `factor` + // sits where perspective makes it move that fast. + double z = -dist * (1 / Math.max(0.05, factor) - 1); + double grow = (dist - z) / dist; + s.setPosition(at[0] / ts * grow, -at[1] / ts * grow + cy * (1 - grow), z); + s.setSize((float) (s.getImage().getWidth() * unit * grow), (float) (s.getImage().getHeight() * unit * grow)); + s.setScale(1f); + } + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java b/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java new file mode 100644 index 00000000000..96a01ed6f75 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java @@ -0,0 +1,409 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.SpriteSheet; +import com.codename1.gaming.platformer.Actor; +import com.codename1.gaming.platformer.Entity; +import com.codename1.gaming.platformer.MovementState; +import com.codename1.gaming.platformer.MovingPlatform; +import com.codename1.gaming.platformer.Tile; +import com.codename1.gaming.platformer.TileGrid; +import com.codename1.ui.Graphics; +import com.codename1.ui.Image; + +import java.util.HashMap; +import java.util.Map; + +/// Art drawn from code: flat tiles with a lit top edge, rounded characters with +/// eyes and stepping feet, coins, keys, doors and springs. Every image is made +/// once and cached. +/// +/// It makes a level playable and readable before any art exists, and it is the +/// fallback a game keeps for whatever it has not drawn yet: extend it and +/// override `#tile`, `#sheet` or `#entity` for the kinds you have art for. The +/// palette is set with `#setPalette`. +public class ProceduralArt implements PlatformArt { + /// Frames in a generated actor sheet: 0-1 idle, 2-5 walk, 6 jump, 7 fall, + /// 8 crouch, 9 climb, 10 hurt, 11 dash. + public static final int FRAMES = 12; + + private final int tileSize; + private int ground = 0xff5b4b8a; + private int groundTop = 0xff9d8be0; + private int accent = 0xffffd34d; + private final Map cache = new HashMap(); + private final Map sheets = new HashMap(); + private final ActorAnimator animator; + + /// Creates the art for a tile size. + /// + /// #### Parameters + /// + /// - `tileSize`: pixels per tile + public ProceduralArt(int tileSize) { + this.tileSize = tileSize; + animator = new ActorAnimator() + .set(MovementState.IDLE, 30, true, 0, 1) + .set(MovementState.WALKING, 7, true, 2, 3, 4, 5) + .set(MovementState.RUNNING, 4, true, 2, 3, 4, 5) + .set(MovementState.JUMPING, 1, false, 6) + .set(MovementState.FALLING, 1, false, 7) + .set(MovementState.CROUCHING, 1, false, 8) + .set(MovementState.CRAWLING, 8, true, 8, 0) + .set(MovementState.CLIMBING, 8, true, 9, 9) + .set(MovementState.HURT, 1, false, 10) + .set(MovementState.DASHING, 1, false, 11); + } + + /// Sets the colors. + /// + /// #### Parameters + /// + /// - `ground`: solid tiles + /// - `groundTop`: the lit top edge of solid tiles + /// - `accent`: coins and highlights + public void setPalette(int ground, int groundTop, int accent) { + this.ground = ground; + this.groundTop = groundTop; + this.accent = accent; + cache.clear(); + } + + /// The tile size. + /// + /// #### Returns + /// + /// pixels + protected int getTileSize() { + return tileSize; + } + + @Override + public Image tile(TileGrid grid, int col, int row) { + int k = grid.get(col, row); + if (k == Tile.EMPTY) { + return null; + } + boolean open = k == Tile.SOLID && !isGround(grid.get(col, row - 1)); + String key = "t" + k + (open ? "o" : ""); + Image img = cache.get(key); + if (img == null) { + img = drawTile(k, open); + cache.put(key, img); + } + return img; + } + + private static boolean isGround(int k) { + return k == Tile.SOLID || Tile.isSlope(k); + } + + private Image drawTile(int k, boolean open) { + int s = tileSize; + Image img = Image.createImage(s, s, 0); + Graphics g = img.getGraphics(); + g.setAntiAliased(false); + if (k == Tile.SOLID) { + g.setColor(ground & 0xffffff); + g.fillRect(0, 0, s, s); + g.setColor(darker(ground)); + g.fillRect(0, s - Math.max(1, s / 8), s, Math.max(1, s / 8)); + if (open) { + g.setColor(groundTop & 0xffffff); + g.fillRect(0, 0, s, Math.max(2, s / 5)); + } + } else if (Tile.isSlope(k)) { + int[] xs = new int[s + 3]; + int[] ys = new int[s + 3]; + int fs = s << 16; + for (int x = 0; x <= s; x++) { + int lx = Math.min(x, s - 1) << 16; + xs[x] = x; + ys[x] = Tile.slopeDepth(k, lx, fs) >> 16; + } + xs[s + 1] = s; + ys[s + 1] = s; + xs[s + 2] = 0; + ys[s + 2] = s; + g.setColor(ground & 0xffffff); + g.fillPolygon(xs, ys, s + 3); + g.setColor(groundTop & 0xffffff); + for (int x = 0; x < s; x++) { + g.fillRect(x, ys[x], 1, Math.max(2, s / 6)); + } + } else if (k == Tile.ONE_WAY) { + g.setColor(0x8a6a4a); + g.fillRect(0, 0, s, Math.max(3, s / 4)); + g.setColor(0xc9a27a); + g.fillRect(0, 0, s, Math.max(1, s / 10)); + } else if (k == Tile.LADDER) { + g.setColor(0xb08850); + int rail = Math.max(1, s / 8); + g.fillRect(s / 5, 0, rail, s); + g.fillRect(s - s / 5 - rail, 0, rail, s); + for (int y = s / 6; y < s; y += s / 3) { + g.fillRect(s / 5, y, s - 2 * (s / 5), rail); + } + } else if (k == Tile.HAZARD) { + g.setColor(0xd8dde8); + int teeth = 3; + int w = s / teeth; + for (int i = 0; i < teeth; i++) { + g.fillTriangle(i * w, s, i * w + w / 2, s / 3, i * w + w, s); + } + } else if (k == Tile.WATER) { + g.setColor(0x3d7fd9); + g.setAlpha(120); + g.fillRect(0, 0, s, s); + g.setAlpha(255); + } + return img; + } + + private static int darker(int argb) { + int r = ((argb >> 16) & 0xff) * 3 / 4; + int gr = ((argb >> 8) & 0xff) * 3 / 4; + int b = (argb & 0xff) * 3 / 4; + return (r << 16) | (gr << 8) | b; + } + + @Override + public SpriteSheet sheet(Actor actor) { + String kind = actor.getKind(); + int w = Math.max(4, actor.getBody().w >> 16); + int h = Math.max(4, actor.getStandHeight() >> 16); + String key = kind + w + "x" + h; + SpriteSheet sheet = sheets.get(key); + if (sheet == null) { + sheet = drawActor(colorFor(actor), w, h, actor.getTeam() != 0); + sheets.put(key, sheet); + } + return sheet; + } + + /// The body color for an actor: the hero is the accent, others are derived + /// from the kind name. + /// + /// #### Parameters + /// + /// - `actor`: the actor + /// + /// #### Returns + /// + /// RGB + protected int colorFor(Actor actor) { + if (actor.getTeam() == 0) { + return 0x4fc3f7; + } + int h = actor.getKind().hashCode(); + int[] hues = {0xef5350, 0x66bb6a, 0xab47bc, 0xffa726, 0x8d6e63, 0x26a69a}; + return hues[(h & 0x7fffffff) % hues.length]; + } + + private SpriteSheet drawActor(int color, int w, int h, boolean enemy) { + int fw = w + 4; + int fh = h + 2; + Image img = Image.createImage(fw * FRAMES, fh, 0); + Graphics g = img.getGraphics(); + g.setAntiAliased(true); + for (int f = 0; f < FRAMES; f++) { + int ox = f * fw + 2; + int bh = h; + int bob = 0; + int step = 0; + if (f == 1) { + bob = 1; + } else if (f >= 2 && f <= 5) { + step = (f & 1) == 0 ? 2 : -2; + bob = (f & 1); + } else if (f == 8) { + bh = h * 2 / 3; + } else if (f == 6) { + bob = -1; + } + int top = fh - bh + bob - 1; + int footH = Math.max(2, h / 8); + g.setColor(darker(color)); + g.fillRect(ox + w / 4 - 1 + step, fh - footH, Math.max(2, w / 4), footH); + g.setColor(darker(color)); + g.fillRect(ox + w * 3 / 4 - Math.max(2, w / 4) + 1 - step, fh - footH, Math.max(2, w / 4), footH); + g.setColor(f == 10 ? 0xffffff : color); + int arc = Math.max(3, w / 2); + g.fillRoundRect(ox, top, w, bh - footH + 1, arc, arc); + int eyeY = top + Math.max(2, bh / 4); + int eyeW = Math.max(2, w / 5); + g.setColor(0xffffff); + g.fillRect(ox + w / 2, eyeY, eyeW + 1, eyeW + 1); + g.fillRect(ox + w / 2 + eyeW + 2, eyeY, eyeW + 1, eyeW + 1); + g.setColor(enemy ? 0x400000 : 0x1a1a40); + g.fillRect(ox + w / 2 + 1, eyeY + 1, Math.max(1, eyeW - 1), Math.max(1, eyeW - 1)); + g.fillRect(ox + w / 2 + eyeW + 3, eyeY + 1, Math.max(1, eyeW - 1), Math.max(1, eyeW - 1)); + if (f == 9) { + g.setColor(darker(color)); + g.fillRect(ox - 1, top + bh / 3, 2, bh / 4); + g.fillRect(ox + w - 1, top + bh / 4, 2, bh / 4); + } + if (f == 11) { + g.setColor(0x9fd8ff); + g.fillRect(ox - 2, top + bh / 2, 2, 1); + } + } + return new SpriteSheet(img, fw, fh); + } + + @Override + public ActorAnimator animator(Actor actor) { + return animator; + } + + @Override + public Image entity(Entity e, int tick) { + int w = Math.max(2, e.w >> 16); + int h = Math.max(2, e.h >> 16); + String type = e.getType(); + int phase = e.getPhase(); + int spin = 0; + if ("coin".equals(type)) { + spin = (tick / 8) % 4; + } + String key = type + phase + ":" + w + "x" + h + ":" + spin; + Image img = cache.get(key); + if (img == null) { + img = drawEntity(type, phase, w, h, spin); + cache.put(key, img); + } + return img; + } + + private Image drawEntity(String type, int phase, int w, int h, int spin) { + Image img = Image.createImage(w, h, 0); + Graphics g = img.getGraphics(); + g.setAntiAliased(true); + if ("coin".equals(type)) { + int cw = spin == 1 || spin == 3 ? w / 2 : spin == 2 ? Math.max(2, w / 6) : w; + g.setColor(accent & 0xffffff); + g.fillArc((w - cw) / 2, 0, cw, h, 0, 360); + g.setColor(0xfff3b0); + g.fillArc((w - cw) / 2 + cw / 4, h / 4, Math.max(1, cw / 3), h / 3, 0, 360); + } else if ("gem".equals(type)) { + g.setColor(0x4dd0e1); + g.fillPolygon(new int[] {w / 2, w, w / 2, 0}, new int[] {0, h / 2, h, h / 2}, 4); + } else if ("heart".equals(type) || "life".equals(type)) { + g.setColor("life".equals(type) ? 0x66bb6a : 0xef5350); + g.fillArc(0, 0, w / 2 + 1, h / 2 + 1, 0, 360); + g.fillArc(w / 2 - 1, 0, w / 2 + 1, h / 2 + 1, 0, 360); + g.fillTriangle(0, h / 4 + 1, w, h / 4 + 1, w / 2, h); + } else if ("key".equals(type)) { + g.setColor(accent & 0xffffff); + g.fillArc(0, 0, h / 2, h / 2, 0, 360); + g.fillRect(h / 4, h / 4 - 1, w - h / 4, 3); + g.fillRect(w - 3, h / 4, 2, h / 3); + } else if ("powerup".equals(type)) { + g.setColor(0xab47bc); + g.fillRoundRect(0, 0, w, h, w / 2, h / 2); + g.setColor(0xffffff); + g.fillArc(w / 4, h / 4, w / 2, h / 2, 0, 360); + } else if ("spring".equals(type)) { + g.setColor(0x9e9e9e); + int coil = phase == 1 ? h / 3 : h * 2 / 3; + for (int y = h - 2; y > h - coil; y -= 3) { + g.fillRect(w / 4, y, w / 2, 1); + } + g.setColor(0xef5350); + g.fillRect(0, h - coil - 2, w, 3); + g.fillRect(0, h - 2, w, 2); + } else if ("checkpoint".equals(type)) { + g.setColor(0xbdbdbd); + g.fillRect(w / 2 - 1, 0, 2, h); + g.setColor(phase == 1 ? 0x66bb6a : 0x757575); + g.fillTriangle(w / 2 + 1, 1, w, h / 6, w / 2 + 1, h / 3); + } else if ("door".equals(type) || "gate".equals(type)) { + if (phase == 0) { + g.setColor("door".equals(type) ? 0x8d6e63 : 0x78909c); + g.fillRect(0, 0, w, h); + g.setColor(accent & 0xffffff); + if ("door".equals(type)) { + g.fillRect(w * 2 / 3, h / 2, 2, 2); + } else { + for (int x = 2; x < w; x += 4) { + g.fillRect(x, 0, 1, h); + } + } + } else { + g.setColor(0x3e2723); + g.setAlpha(90); + g.fillRect(0, 0, w, h); + g.setAlpha(255); + } + } else if ("lever".equals(type) || "plate".equals(type)) { + g.setColor(0x757575); + g.fillRect(0, h - Math.max(2, h / 4), w, Math.max(2, h / 4)); + if ("lever".equals(type)) { + g.setColor(phase == 1 ? 0x66bb6a : 0xef5350); + int bx = phase == 1 ? w * 3 / 4 : w / 4; + g.drawLine(w / 2, h - 2, bx, h / 3); + g.fillArc(bx - 2, h / 3 - 2, 5, 5, 0, 360); + } else if (phase == 1) { + g.setColor(0x66bb6a); + g.fillRect(1, h - Math.max(2, h / 4), w - 2, 1); + } + } else if ("crumble".equals(type)) { + if (phase != 3) { + g.setColor(phase == 2 ? 0x6d4c41 : 0xa1887f); + g.fillRect(0, 0, w, h); + g.setColor(0x4e342e); + for (int x = tileSize; x < w; x += tileSize) { + g.fillRect(x, 0, 1, h); + } + if (phase > 0) { + g.drawLine(w / 4, 0, w / 2, h); + g.drawLine(w * 3 / 4, 0, w / 2 + 2, h / 2); + } + } + } else { + g.setColor(0xfff176); + g.fillArc(0, 0, w, h, 0, 360); + } + return img; + } + + @Override + public Image platform(MovingPlatform p) { + int w = Math.max(2, p.getWidth() >> 16); + int h = Math.max(2, p.getHeight() >> 16); + String key = "p" + w + "x" + h; + Image img = cache.get(key); + if (img == null) { + img = Image.createImage(w, h, 0); + Graphics g = img.getGraphics(); + g.setColor(0x607d8b); + g.fillRect(0, 0, w, h); + g.setColor(0x90a4ae); + g.fillRect(0, 0, w, Math.max(1, h / 4)); + cache.put(key, img); + } + return img; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java b/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java new file mode 100644 index 00000000000..9970041594e --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.SpriteSheet; +import com.codename1.gaming.level.TileLayer; +import com.codename1.gaming.platformer.Tile; +import com.codename1.gaming.platformer.TileGrid; + +/// Converts between a drawn `com.codename1.gaming.level.TileLayer` and the +/// collision `TileGrid` the simulation reads. +/// +/// A game painting its levels with an atlas keeps one table, "frame N of the +/// sheet is solid, frame M is a one-way ledge", and derives the collision from +/// the art with `#toGrid`; a game that writes `Tile` characters derives the art +/// from the collision with `#toLayer`. +public final class TileLayerCollision { + private TileLayerCollision() { + } + + /// Builds the collision grid for a tile layer. + /// + /// #### Parameters + /// + /// - `layer`: the drawn layer + /// - `frameKinds`: the `Tile` kind of each sheet frame; frames past the end and + /// empty cells are `Tile#EMPTY` + /// + /// #### Returns + /// + /// a grid of the same size and tile size + public static TileGrid toGrid(TileLayer layer, int[] frameKinds) { + TileGrid g = new TileGrid(layer.getCols(), layer.getRows(), layer.getTileSize()); + for (int r = 0; r < layer.getRows(); r++) { + for (int c = 0; c < layer.getCols(); c++) { + int f = layer.getTile(c, r); + g.set(c, r, f >= 0 && f < frameKinds.length ? frameKinds[f] : Tile.EMPTY); + } + } + return g; + } + + /// Builds a tile layer that draws a collision grid. + /// + /// #### Parameters + /// + /// - `grid`: the grid + /// - `sheet`: the tileset + /// - `kindFrames`: the sheet frame for each `Tile` kind, indexed by kind; -1 or + /// past the end draws nothing + /// + /// #### Returns + /// + /// the layer + public static TileLayer toLayer(TileGrid grid, SpriteSheet sheet, int[] kindFrames) { + TileLayer layer = new TileLayer(sheet, grid.getWidth(), grid.getHeight(), grid.getTileSize()); + for (int r = 0; r < grid.getHeight(); r++) { + for (int c = 0; c < grid.getWidth(); c++) { + int k = grid.get(c, r); + layer.setTile(c, r, k >= 0 && k < kindFrames.length ? kindFrames[k] : -1); + } + } + return layer; + } +} diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/package-info.java b/CodenameOne/src/com/codename1/gaming/platformer/view/package-info.java new file mode 100644 index 00000000000..5496330c0e9 --- /dev/null +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/package-info.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +/// Draws and plays a `com.codename1.gaming.platformer.PlatformWorld`: the client +/// half of the platformer engine. +/// +/// `PlatformView` is a `com.codename1.gaming.GameView` that steps the world at a +/// fixed 60 Hz from an `InputMapper` (keyboard, gamepad, on-screen controls), +/// interpolates drawing between ticks, follows the player with a +/// `PlatformCamera` (dead zone, look-ahead, level bounds, shake) and plays each +/// tick's events through `Feedback`. What it draws comes from a `PlatformArt`; +/// `ProceduralArt` draws everything from code so a level is playable before any +/// art exists, and `ActorAnimator` maps movement states to sprite-sheet frames. +/// +/// Nothing here feeds back into the simulation, which is why the simulation +/// package is shared with the server and this one is not. +package com.codename1.gaming.platformer.view; diff --git a/maven/core-unittests/src/test/java/com/codename1/gaming/physics/PhysicsWorldTest.java b/maven/core-unittests/src/test/java/com/codename1/gaming/physics/PhysicsWorldTest.java index 6e5d2b5aeae..51fe1f36fb0 100644 --- a/maven/core-unittests/src/test/java/com/codename1/gaming/physics/PhysicsWorldTest.java +++ b/maven/core-unittests/src/test/java/com/codename1/gaming/physics/PhysicsWorldTest.java @@ -221,4 +221,39 @@ void setDebugFillAlphaIsSafeBeforeFirstDraw() { w.setDebugFillAlpha(40); // before any debugDraw() -> must not throw assertNotNull(w.getDebugDraw()); // renderer created lazily, package-private accessor } + + @Test + void oneWayPlatformHoldsFromAboveAndLetsThroughFromBelow() { + PhysicsWorld w = new PhysicsWorld(0, 600); + PhysicsBody ledge = w.createBox(160, 300, 200, 10, BodyType.STATIC); + w.setOneWay(ledge, true); + PhysicsBody falling = w.createBox(100, 200, 20, 20, BodyType.DYNAMIC); + PhysicsBody rising = w.createBox(220, 400, 20, 20, BodyType.DYNAMIC); + rising.setLinearVelocity(0, -900); + steps(w, 90); + assertEquals(285, falling.getY(), 2, "landed on top"); + assertTrue(rising.getY() < 285, "jumped up through it"); + + w.setOneWay(ledge, false); + PhysicsBody blocked = w.createBox(160, 400, 20, 20, BodyType.DYNAMIC); + blocked.setLinearVelocity(0, -900); + steps(w, 20); + assertTrue(blocked.getY() > 300, "solid again"); + } + + @Test + void contactFilterLetsBodiesPassThrough() { + PhysicsWorld w = new PhysicsWorld(0, 600); + final PhysicsBody floor = w.createBox(160, 400, 320, 40, BodyType.STATIC); + PhysicsBody ghost = w.createBox(160, 300, 20, 20, BodyType.DYNAMIC); + final PhysicsBody[] passer = {ghost}; + w.setContactFilter(new ContactFilter() { + @Override + public boolean shouldCollide(PhysicsBody a, PhysicsBody b, float nx, float ny) { + return a != passer[0] && b != passer[0]; + } + }); + steps(w, 60); + assertTrue(ghost.getY() > 420, "fell through the floor"); + } } diff --git a/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java index 01683c107f5..a29d218cea7 100644 --- a/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java +++ b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/PlatformWorldTest.java @@ -290,7 +290,7 @@ void touchingAnEnemyHurtsButStompingKillsIt() { assertTrue(w.getDeaths() >= 1, "walking into a slime kills a hero with no health"); w = flat(",\"entities\":[{\"type\":\"enemy\",\"kind\":\"slime\",\"at\":[6,3],\"brain\":\"walker\"}]"); - Actor slime = w.getCharacters().get(1); + Actor slime = w.getActors().get(1); boolean stomped = false; for (int i = 0; i < 200 && slime.isAlive(); i++) { Body s = slime.getBody(); @@ -362,7 +362,7 @@ void aLeverOpensItsGate() { void shotsKillAnEnemyWithHitPoints() { PlatformWorld w = flat(",\"abilities\":[\"move\",\"jump\",\"weapon\"]," + "\"entities\":[{\"type\":\"enemy\",\"at\":[10,3],\"brain\":\"turret\",\"hp\":2,\"range\":3}]"); - Actor turret = w.getCharacters().get(1); + Actor turret = w.getActors().get(1); for (int i = 0; i < 120 && turret.isAlive(); i++) { w.step(i % 16 == 0 ? Input.FIRE : 0); } @@ -425,7 +425,49 @@ void enemiesAndBossesReplayDeterministically() { b.step(in); } assertEquals(a.hash(), b.hash()); - assertFalse(a.getCharacters().get(1).isAlive(), "the boss went down"); + assertFalse(a.getActors().get(1).isAlive(), "the boss went down"); + } + + @Test + void levelsOutsideTheLimitsAreRejected() { + String[] bad = { + "{\"tileSize\":0,\"tiles\":[\"..\"]}", + "{\"tileSize\":1000,\"tiles\":[\"..\"]}", + "{\"tiles\":[]}", + "{\"tiles\":[\"..\", 3]}", + "{\"tiles\":[\"" + repeat('.', 5000) + "\"]}", + "{\"tiles\":[\"..\"],\"entities\":[{\"type\":\"coin\",\"at\":[99,0]}]}", + "{\"tiles\":[\"..\"],\"entities\":[{\"type\":\"coin\",\"at\":[-1,0]}]}", + "{\"tiles\":[\"..\"],\"entities\":[{\"type\":\"crumble\",\"at\":[0,0],\"delay\":-5}]}", + "{\"tiles\":[\"..\"],\"platforms\":[{\"path\":[[0,0],[1,0]],\"speed\":0}]}", + "{\"tiles\":[\"..\"],\"platforms\":[{\"path\":[[0,0],[1,0]],\"speed\":-1}]}", + "{\"tiles\":[\"..\"],\"platforms\":[{\"path\":[[0,0],[50,0]]}]}", + "[1,2]", + }; + for (int i = 0; i < bad.length; i++) { + try { + LevelData.parse(bad[i]).createWorld(1); + fail("accepted " + bad[i]); + } catch (IllegalArgumentException expected) { + // rejected as it should be + } + } + } + + @Test + void zeroDivisorsThrowInsteadOfCrashing() { + assertThrows(ArithmeticException.class, () -> Fx.div(Fx.ONE, 0)); + assertThrows(ArithmeticException.class, () -> Fx.ratio(1, 0)); + assertThrows(ArithmeticException.class, () -> Fx.floorDiv(1, 0)); + assertThrows(IllegalArgumentException.class, () -> new Rng(1).nextInt(0)); + } + + private static String repeat(char c, int n) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < n; i++) { + sb.append(c); + } + return sb.toString(); } @Test diff --git a/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/view/PlatformViewLogicTest.java b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/view/PlatformViewLogicTest.java new file mode 100644 index 00000000000..c50207b8c87 --- /dev/null +++ b/maven/core-unittests/src/test/java/com/codename1/gaming/platformer/view/PlatformViewLogicTest.java @@ -0,0 +1,155 @@ +/* + * Copyright (c) 2012, Codename One and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Codename One designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code 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 General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Codename One through http://www.codenameone.com/ if you + * need additional information or have any questions. + */ + +package com.codename1.gaming.platformer.view; + +import com.codename1.gaming.platformer.MovementState; +import com.codename1.gaming.platformer.WorldEvent; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.List; + +import static org.junit.jupiter.api.Assertions.*; + +class PlatformViewLogicTest { + + @Test + void cameraStaysStillInsideTheDeadZoneAndFollowsOutsideIt() { + PlatformCamera cam = new PlatformCamera(); + cam.setViewSize(200, 100); + cam.setBounds(0, 0, 2000, 500); + cam.setLookAhead(0); + cam.setSmoothing(0); + cam.snapTo(500, 250); + double x0 = cam.getX(); + cam.update(505, 250, 1, 1 / 60.0); + assertEquals(x0, cam.getX(), 1e-9, "inside the dead zone"); + cam.update(700, 250, 1, 1 / 60.0); + assertTrue(cam.getX() > x0 + 150, "followed out of the dead zone"); + } + + @Test + void cameraNeverLeavesTheLevel() { + PlatformCamera cam = new PlatformCamera(); + cam.setViewSize(200, 100); + cam.setBounds(0, 0, 1000, 300); + cam.snapTo(5, 5); + assertEquals(0, cam.getX(), 1e-9); + assertEquals(0, cam.getY(), 1e-9); + cam.snapTo(5000, 5000); + assertEquals(800, cam.getX(), 1e-9); + assertEquals(200, cam.getY(), 1e-9); + cam.setBounds(0, 0, 100, 50); + cam.snapTo(0, 0); + assertEquals(-50, cam.getX(), 1e-9, "a level smaller than the view is centered"); + } + + @Test + void shakeFadesOut() { + PlatformCamera cam = new PlatformCamera(); + cam.setViewSize(200, 100); + cam.setBounds(-10000, -10000, 10000, 10000); + cam.setSmoothing(0); + cam.setLookAhead(0); + cam.snapTo(0, 0); + double base = cam.getX(); + cam.shake(10, 0.5); + boolean moved = false; + for (int i = 0; i < 10; i++) { + cam.update(0, 0, 1, 1 / 60.0); + moved |= Math.abs(cam.getX() - base) > 0.01; + } + assertTrue(moved); + for (int i = 0; i < 60; i++) { + cam.update(0, 0, 1, 1 / 60.0); + } + assertEquals(base, cam.getX(), 1e-9); + } + + @Test + void animatorBorrowsRelatedClips() { + ActorAnimator a = new ActorAnimator() + .set(MovementState.IDLE, 10, true, 0, 1) + .set(MovementState.WALKING, 5, true, 2, 3, 4) + .set(MovementState.JUMPING, 1, false, 7); + ActorAnimator.Track t = new ActorAnimator.Track(); + t.tick(MovementState.RUNNING); + assertEquals(2, a.frameFor(t), "running borrows walking"); + for (int i = 0; i < 5; i++) { + t.tick(MovementState.RUNNING); + } + assertEquals(3, a.frameFor(t)); + t.tick(MovementState.GLIDING); + assertEquals(7, a.frameFor(t), "gliding borrows jumping"); + t.tick(MovementState.SWIMMING); + assertEquals(7, a.frameFor(t), "swimming -> falling -> jumping"); + t.tick(MovementState.CROUCHING); + assertEquals(0, a.frameFor(t), "crouching falls back to idle"); + for (MovementState s : MovementState.values()) { + assertNotNull(a.clipFor(s), s.name()); + } + } + + @Test + void nonLoopingClipsHoldTheLastFrame() { + ActorAnimator.Clip c = new ActorAnimator.Clip(new int[] {4, 5, 6}, 2, false); + assertEquals(4, c.frameAt(0)); + assertEquals(6, c.frameAt(100)); + ActorAnimator.Clip l = new ActorAnimator.Clip(new int[] {4, 5, 6}, 2, true); + assertEquals(4, l.frameAt(6)); + } + + @Test + void feedbackPlaysSoundsAndShakesOnlyForThePlayer() { + final List played = new ArrayList(); + Feedback.Sink sink = new Feedback.Sink() { + @Override + public void sound(String name, double x, double y) { + played.add(name); + } + + @Override + public void burst(double x, double y, int count, int color) { + played.add("burst" + count); + } + }; + Feedback f = new Feedback(); + PlatformCamera cam = new PlatformCamera(); + cam.setViewSize(100, 100); + cam.setBounds(-1000, -1000, 1000, 1000); + cam.setSmoothing(0); + cam.snapTo(0, 0); + f.react(new WorldEvent(WorldEvent.HURT, 0, 0, "slime", null), false, cam, sink); + assertEquals(0, f.getFlash(), "an enemy's hurt does not flash"); + f.react(new WorldEvent(WorldEvent.HURT, 0, 0, "hero", null), true, cam, sink); + assertTrue(played.contains("hurt")); + assertNotEquals(0, f.getFlash()); + f.update(1); + assertEquals(0, f.getFlash(), "faded"); + f.setIntensity(0); + f.react(new WorldEvent(WorldEvent.COMPLETE, 0, 0, "hero", null), true, cam, sink); + assertEquals(0, f.getFlash(), "reduce motion"); + assertTrue(played.contains("complete"), "sound still plays"); + } +} From 2ab6919d4c01b06858d14113be824828e80716c1 Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Mon, 30 Nov 2026 20:48:56 +0200 Subject: [PATCH 03/13] Ledge: generated art, sound and 13 solver-proven levels tools/make-art.py draws every tile set, actor, item, backdrop and sound; tools/sketch.py compiles level sketches; the shared Go-Explore Solver proves each shipped level completable. Core: PlatformView art scale, sprite particles and goal drawing; enemies can open a channel on defeat; replay results carry score, coins and secrets. The template tree is copied from papercut and its client is rewritten in the next commit. Co-Authored-By: Claude Opus 5.5 --- .../codename1/gaming/platformer/Actor.java | 25 + .../gaming/platformer/LevelData.java | 4 +- .../gaming/platformer/PlatformWorld.java | 3 + .../codename1/gaming/platformer/Replay.java | 47 +- .../gaming/platformer/view/Feedback.java | 9 + .../gaming/platformer/view/PlatformArt.java | 14 + .../gaming/platformer/view/PlatformView.java | 198 ++- .../gaming/platformer/view/ProceduralArt.java | 20 + .../platformer/view/TileLayerCollision.java | 6 +- NOTICE | 6 + scripts/ledge/ART.md | 39 + scripts/ledge/LICENSE | 22 + scripts/ledge/README.adoc | 114 ++ .../ledge/backend/application-dev.properties | 3 + .../ledge/backend/application-test.properties | 4 + scripts/ledge/backend/application.properties | 3 + scripts/ledge/backend/pom.xml | 166 ++ scripts/ledge/backend/server.sh | 112 ++ .../com/codenameone/examples/ledge/Clock.java | 81 + .../com/codenameone/examples/ledge/Ids.java | 53 + .../com/codenameone/examples/ledge/Roles.java | 28 + .../examples/ledge/SecurityConfig.java | 393 +++++ .../codenameone/examples/ledge/Services.java | 162 ++ .../examples/ledge/SignInCodePage.java | 67 + .../ledge/account/AccountEndpoint.java | 65 + .../examples/ledge/account/Accounts.java | 231 +++ .../examples/ledge/account/DemoAccounts.java | 126 ++ .../examples/ledge/account/Lists.java | 81 + .../examples/ledge/admin/AdminEndpoint.java | 147 ++ .../examples/ledge/admin/Flags.java | 124 ++ .../examples/ledge/admin/Moderation.java | 132 ++ .../examples/ledge/domain/AdNonce.java | 65 + .../examples/ledge/domain/AdminAction.java | 98 ++ .../examples/ledge/domain/Broadcast.java | 98 ++ .../examples/ledge/domain/DailySeed.java | 76 + .../examples/ledge/domain/Flag.java | 153 ++ .../examples/ledge/domain/Friend.java | 76 + .../examples/ledge/domain/Profile.java | 197 +++ .../examples/ledge/domain/PushDevice.java | 102 ++ .../examples/ledge/domain/RunTicket.java | 98 ++ .../examples/ledge/domain/ScoreRun.java | 153 ++ .../examples/ledge/domain/StorePurchase.java | 98 ++ .../examples/ledge/friends/Friends.java | 129 ++ .../examples/ledge/progress/Achievements.java | 95 ++ .../examples/ledge/push/Broadcasts.java | 105 ++ .../examples/ledge/push/PushDevices.java | 175 +++ .../ledge/repository/AdNonceRepository.java | 36 + .../repository/AdminActionRepository.java | 36 + .../ledge/repository/BroadcastRepository.java | 36 + .../ledge/repository/DailySeedRepository.java | 34 + .../ledge/repository/FlagRepository.java | 40 + .../ledge/repository/FriendRepository.java | 35 + .../ledge/repository/ProfileRepository.java | 61 + .../repository/PushDeviceRepository.java | 35 + .../ledge/repository/RunTicketRepository.java | 41 + .../ledge/repository/ScoreRunRepository.java | 45 + .../repository/StorePurchaseRepository.java | 36 + .../examples/ledge/run/Boards.java | 130 ++ .../examples/ledge/run/DailySeeds.java | 77 + .../codenameone/examples/ledge/run/Modes.java | 60 + .../examples/ledge/run/RunEndpoint.java | 62 + .../codenameone/examples/ledge/run/Runs.java | 228 +++ .../examples/ledge/shop/Catalog.java | 91 ++ .../ledge/shop/MisconfiguredReceipts.java | 37 + .../examples/ledge/shop/ReceiptValidator.java | 31 + .../codenameone/examples/ledge/shop/Shop.java | 212 +++ .../examples/ledge/shop/ShopEndpoint.java | 75 + .../ledge/shop/SimulatedReceipts.java | 31 + .../examples/ledge/shop/StoreReceipts.java | 138 ++ .../main/resources/db/migration/V1__game.sql | 124 ++ .../db/migration/mysql/V2__collation.sql | 14 + .../db/migration/postgresql/V2__collation.sql | 2 + .../db/migration/sqlite/V2__collation.sql | 2 + .../examples/ledge/AccountTest.java | 81 + .../codenameone/examples/ledge/AdminTest.java | 135 ++ .../com/codenameone/examples/ledge/Api.java | 114 ++ .../codenameone/examples/ledge/BoardTest.java | 127 ++ .../examples/ledge/ProgressTest.java | 71 + .../codenameone/examples/ledge/RunTest.java | 121 ++ .../codenameone/examples/ledge/ShopTest.java | 110 ++ scripts/ledge/check-template.sh | 81 + .../common/codenameone_settings.properties | 51 + scripts/ledge/common/icon.png | Bin 0 -> 82059 bytes scripts/ledge/common/pom.xml | 1383 +++++++++++++++++ .../src/desktop/resources/NativeTheme.res | Bin 0 -> 300158 bytes .../src/main/css/fonts/LilitaOne-Regular.ttf | Bin 0 -> 28092 bytes .../ledge/common/src/main/css/fonts/OFL.txt | 94 ++ scripts/ledge/common/src/main/css/theme.css | 285 ++++ .../codenameone/examples/ledge/AppConfig.java | 173 +++ .../com/codenameone/examples/ledge/Ledge.java | 94 ++ .../examples/ledge/admin/AdminConsole.java | 230 +++ .../examples/ledge/engage/Ads.java | 129 ++ .../examples/ledge/engage/Notifications.java | 140 ++ .../examples/ledge/engage/Store.java | 131 ++ .../codenameone/examples/ledge/net/Api.java | 74 + .../examples/ledge/net/Session.java | 543 +++++++ .../examples/ledge/ui/AchievementsForm.java | 65 + .../examples/ledge/ui/FriendsForm.java | 73 + .../examples/ledge/ui/HomeForm.java | 132 ++ .../examples/ledge/ui/LeaderboardForm.java | 133 ++ .../codenameone/examples/ledge/ui/Nav.java | 88 ++ .../examples/ledge/ui/PlayForm.java | 171 ++ .../codenameone/examples/ledge/ui/Runs.java | 118 ++ .../examples/ledge/ui/SettingsForm.java | 79 + .../examples/ledge/ui/ShopForm.java | 114 ++ .../examples/ledge/ui/SignInForm.java | 78 + .../com/codenameone/examples/ledge/ui/Ui.java | 330 ++++ .../src/main/resources/LilitaOne-Regular.ttf | Bin 0 -> 28092 bytes .../common/src/main/resources/bg_cavern_0.png | Bin 0 -> 7014 bytes .../common/src/main/resources/bg_cavern_1.png | Bin 0 -> 6545 bytes .../common/src/main/resources/bg_cavern_2.png | Bin 0 -> 8900 bytes .../common/src/main/resources/bg_forge_0.png | Bin 0 -> 8371 bytes .../common/src/main/resources/bg_forge_1.png | Bin 0 -> 7576 bytes .../common/src/main/resources/bg_forge_2.png | Bin 0 -> 5710 bytes .../src/main/resources/bg_foundry_0.png | Bin 0 -> 59730 bytes .../src/main/resources/bg_foundry_1.png | Bin 0 -> 5556 bytes .../src/main/resources/bg_foundry_2.png | Bin 0 -> 5059 bytes .../common/src/main/resources/bg_meadow_0.png | Bin 0 -> 11350 bytes .../common/src/main/resources/bg_meadow_1.png | Bin 0 -> 6906 bytes .../common/src/main/resources/bg_meadow_2.png | Bin 0 -> 10266 bytes .../common/src/main/resources/bg_sky_0.png | Bin 0 -> 5523 bytes .../common/src/main/resources/bg_sky_1.png | Bin 0 -> 6352 bytes .../common/src/main/resources/bg_sky_2.png | Bin 0 -> 5585 bytes .../common/src/main/resources/enemy_bat.png | Bin 0 -> 9886 bytes .../src/main/resources/enemy_beetle.png | Bin 0 -> 6134 bytes .../common/src/main/resources/enemy_brute.png | Bin 0 -> 7686 bytes .../common/src/main/resources/enemy_frog.png | Bin 0 -> 10483 bytes .../common/src/main/resources/enemy_golem.png | Bin 0 -> 48197 bytes .../common/src/main/resources/enemy_slime.png | Bin 0 -> 12061 bytes .../src/main/resources/enemy_turret.png | Bin 0 -> 9327 bytes .../common/src/main/resources/fx_spark.png | Bin 0 -> 2234 bytes .../ledge/common/src/main/resources/hero.png | Bin 0 -> 107855 bytes .../src/main/resources/item_checkpoint0.png | Bin 0 -> 2890 bytes .../src/main/resources/item_checkpoint1.png | Bin 0 -> 4629 bytes .../common/src/main/resources/item_coin.png | Bin 0 -> 15200 bytes .../src/main/resources/item_crumble0.png | Bin 0 -> 1208 bytes .../src/main/resources/item_crumble1.png | Bin 0 -> 2257 bytes .../src/main/resources/item_crumble2.png | Bin 0 -> 3393 bytes .../common/src/main/resources/item_door.png | Bin 0 -> 2236 bytes .../common/src/main/resources/item_gate.png | Bin 0 -> 1672 bytes .../common/src/main/resources/item_gem.png | Bin 0 -> 6792 bytes .../common/src/main/resources/item_goal.png | Bin 0 -> 50360 bytes .../common/src/main/resources/item_heart.png | Bin 0 -> 3849 bytes .../common/src/main/resources/item_key.png | Bin 0 -> 3922 bytes .../common/src/main/resources/item_lever0.png | Bin 0 -> 2160 bytes .../common/src/main/resources/item_lever1.png | Bin 0 -> 2162 bytes .../common/src/main/resources/item_life.png | Bin 0 -> 5061 bytes .../common/src/main/resources/item_plate0.png | Bin 0 -> 885 bytes .../common/src/main/resources/item_plate1.png | Bin 0 -> 730 bytes .../src/main/resources/item_power_glide.png | Bin 0 -> 6105 bytes .../src/main/resources/item_power_jetpack.png | Bin 0 -> 6036 bytes .../src/main/resources/item_power_weapon.png | Bin 0 -> 6494 bytes .../src/main/resources/item_spring0.png | Bin 0 -> 2541 bytes .../src/main/resources/item_spring1.png | Bin 0 -> 1278 bytes .../common/src/main/resources/ledge_icon.png | Bin 0 -> 77654 bytes .../src/main/resources/platform_cavern.png | Bin 0 -> 2689 bytes .../src/main/resources/platform_forge.png | Bin 0 -> 2581 bytes .../src/main/resources/platform_foundry.png | Bin 0 -> 2625 bytes .../src/main/resources/platform_meadow.png | Bin 0 -> 2648 bytes .../src/main/resources/platform_sky.png | Bin 0 -> 2588 bytes .../common/src/main/resources/sfx_bounce.wav | Bin 0 -> 11068 bytes .../src/main/resources/sfx_checkpoint.wav | Bin 0 -> 19888 bytes .../common/src/main/resources/sfx_coin.wav | Bin 0 -> 7982 bytes .../src/main/resources/sfx_complete.wav | Bin 0 -> 39734 bytes .../common/src/main/resources/sfx_crumble.wav | Bin 0 -> 13274 bytes .../common/src/main/resources/sfx_dash.wav | Bin 0 -> 6658 bytes .../common/src/main/resources/sfx_death.wav | Bin 0 -> 26504 bytes .../common/src/main/resources/sfx_fire.wav | Bin 0 -> 5336 bytes .../src/main/resources/sfx_gameover.wav | Bin 0 -> 44144 bytes .../common/src/main/resources/sfx_gem.wav | Bin 0 -> 14156 bytes .../common/src/main/resources/sfx_hurt.wav | Bin 0 -> 11068 bytes .../common/src/main/resources/sfx_impact.wav | Bin 0 -> 4454 bytes .../common/src/main/resources/sfx_jump.wav | Bin 0 -> 7100 bytes .../common/src/main/resources/sfx_land.wav | Bin 0 -> 3572 bytes .../common/src/main/resources/sfx_open.wav | Bin 0 -> 15478 bytes .../common/src/main/resources/sfx_pickup.wav | Bin 0 -> 11068 bytes .../common/src/main/resources/sfx_stomp.wav | Bin 0 -> 6218 bytes .../common/src/main/resources/sfx_switch.wav | Bin 0 -> 5336 bytes .../common/src/main/resources/sfx_ui.wav | Bin 0 -> 2248 bytes .../common/src/main/resources/shot_bolt.png | Bin 0 -> 888 bytes .../common/src/main/resources/shot_orb.png | Bin 0 -> 1645 bytes .../src/main/resources/tiles_cavern.png | Bin 0 -> 106452 bytes .../common/src/main/resources/tiles_forge.png | Bin 0 -> 101600 bytes .../src/main/resources/tiles_foundry.png | Bin 0 -> 95917 bytes .../src/main/resources/tiles_meadow.png | Bin 0 -> 99319 bytes .../common/src/main/resources/tiles_sky.png | Bin 0 -> 89800 bytes .../examples/ledge/AccountTest.java | 66 + .../codenameone/examples/ledge/AdminTest.java | 55 + .../com/codenameone/examples/ledge/E2e.java | 374 +++++ .../codenameone/examples/ledge/GuestTest.java | 51 + .../examples/ledge/MemoryPreferences.java | 107 ++ .../codenameone/examples/ledge/ShopTest.java | 47 + scripts/ledge/ios/pom.xml | 71 + .../ledge/ios/src/main/objectivec/.gitkeep | 0 scripts/ledge/levels/1-1.json | 52 + scripts/ledge/levels/1-2.json | 54 + scripts/ledge/levels/1-3.json | 59 + scripts/ledge/levels/1-4.json | 52 + scripts/ledge/levels/2-1.json | 115 ++ scripts/ledge/levels/2-2.json | 60 + scripts/ledge/levels/2-3.json | 62 + scripts/ledge/levels/3-1.json | 59 + scripts/ledge/levels/3-2.json | 63 + scripts/ledge/levels/3-3.json | 57 + scripts/ledge/levels/4-1.json | 73 + scripts/ledge/levels/4-2.json | 43 + scripts/ledge/levels/5-1.json | 41 + scripts/ledge/levels/src/1-1.sketch | 19 + scripts/ledge/levels/src/1-2.sketch | 19 + scripts/ledge/levels/src/1-3.sketch | 25 + scripts/ledge/levels/src/1-4.sketch | 19 + scripts/ledge/levels/src/2-1.sketch | 18 + scripts/ledge/levels/src/2-2.sketch | 20 + scripts/ledge/levels/src/2-3.sketch | 18 + scripts/ledge/levels/src/3-1.sketch | 18 + scripts/ledge/levels/src/3-2.sketch | 24 + scripts/ledge/levels/src/3-3.sketch | 18 + scripts/ledge/levels/src/4-1.sketch | 18 + scripts/ledge/levels/src/4-2.sketch | 18 + scripts/ledge/levels/src/5-1.sketch | 18 + scripts/ledge/pom.xml | 314 ++++ scripts/ledge/run-e2e.sh | 77 + scripts/ledge/shared/pom.xml | 49 + .../examples/ledge/api/AccountApi.java | 46 + .../examples/ledge/api/AchievementDto.java | 26 + .../examples/ledge/api/AdRewardDto.java | 26 + .../examples/ledge/api/AdminActionDto.java | 26 + .../examples/ledge/api/AdminApi.java | 58 + .../examples/ledge/api/AdminStatsDto.java | 26 + .../examples/ledge/api/AuditDto.java | 26 + .../examples/ledge/api/BroadcastDto.java | 27 + .../examples/ledge/api/BuyDto.java | 26 + .../examples/ledge/api/DailyDto.java | 26 + .../examples/ledge/api/DailySeedDto.java | 26 + .../examples/ledge/api/EquipDto.java | 26 + .../examples/ledge/api/FlagDto.java | 26 + .../examples/ledge/api/FriendAddDto.java | 26 + .../examples/ledge/api/FriendDto.java | 26 + .../examples/ledge/api/FriendsApi.java | 40 + .../examples/ledge/api/LeaderDto.java | 26 + .../examples/ledge/api/PlayerDto.java | 28 + .../examples/ledge/api/ProfileDto.java | 26 + .../examples/ledge/api/ProgressApi.java | 32 + .../examples/ledge/api/PushDeviceDto.java | 26 + .../examples/ledge/api/ReceiptDto.java | 27 + .../examples/ledge/api/RegisterDto.java | 26 + .../examples/ledge/api/ResolveDto.java | 26 + .../examples/ledge/api/RunApi.java | 45 + .../examples/ledge/api/RunDto.java | 26 + .../examples/ledge/api/RunResultDto.java | 27 + .../examples/ledge/api/RunTicketDto.java | 27 + .../examples/ledge/api/ScoreBounds.java | 63 + .../examples/ledge/api/ShopApi.java | 52 + .../examples/ledge/api/ShopItemDto.java | 27 + .../examples/ledge/api/StartRunDto.java | 26 + .../examples/ledge/api/WalletDto.java | 27 + .../examples/ledge/api/package-info.java | 22 + .../examples/ledge/levels/Solver.java | 290 ++++ scripts/ledge/tools/make-art.py | 1156 ++++++++++++++ scripts/ledge/tools/sketch.py | 149 ++ 260 files changed, 16352 insertions(+), 38 deletions(-) create mode 100644 scripts/ledge/ART.md create mode 100644 scripts/ledge/LICENSE create mode 100644 scripts/ledge/README.adoc create mode 100644 scripts/ledge/backend/application-dev.properties create mode 100644 scripts/ledge/backend/application-test.properties create mode 100644 scripts/ledge/backend/application.properties create mode 100644 scripts/ledge/backend/pom.xml create mode 100755 scripts/ledge/backend/server.sh create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Clock.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Ids.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Roles.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SecurityConfig.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Services.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SignInCodePage.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/AccountEndpoint.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Accounts.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/DemoAccounts.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Lists.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/AdminEndpoint.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Flags.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Moderation.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdNonce.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdminAction.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Broadcast.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/DailySeed.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Flag.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Friend.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Profile.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/PushDevice.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/RunTicket.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/ScoreRun.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/StorePurchase.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/friends/Friends.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/progress/Achievements.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/Broadcasts.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/PushDevices.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdNonceRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdminActionRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/BroadcastRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/DailySeedRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FlagRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FriendRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ProfileRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/PushDeviceRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/RunTicketRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ScoreRunRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/StorePurchaseRepository.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Boards.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/DailySeeds.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Modes.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/RunEndpoint.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Runs.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Catalog.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/MisconfiguredReceipts.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ReceiptValidator.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Shop.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ShopEndpoint.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/SimulatedReceipts.java create mode 100644 scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/StoreReceipts.java create mode 100644 scripts/ledge/backend/src/main/resources/db/migration/V1__game.sql create mode 100644 scripts/ledge/backend/src/main/resources/db/migration/mysql/V2__collation.sql create mode 100644 scripts/ledge/backend/src/main/resources/db/migration/postgresql/V2__collation.sql create mode 100644 scripts/ledge/backend/src/main/resources/db/migration/sqlite/V2__collation.sql create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AccountTest.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AdminTest.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/Api.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/BoardTest.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ProgressTest.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/RunTest.java create mode 100644 scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ShopTest.java create mode 100755 scripts/ledge/check-template.sh create mode 100644 scripts/ledge/common/codenameone_settings.properties create mode 100644 scripts/ledge/common/icon.png create mode 100644 scripts/ledge/common/pom.xml create mode 100644 scripts/ledge/common/src/desktop/resources/NativeTheme.res create mode 100644 scripts/ledge/common/src/main/css/fonts/LilitaOne-Regular.ttf create mode 100644 scripts/ledge/common/src/main/css/fonts/OFL.txt create mode 100644 scripts/ledge/common/src/main/css/theme.css create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/AppConfig.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/Ledge.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/admin/AdminConsole.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Ads.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Notifications.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Store.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Api.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Session.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/AchievementsForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/FriendsForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/HomeForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/LeaderboardForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Nav.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/PlayForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Runs.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SettingsForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/ShopForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SignInForm.java create mode 100644 scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Ui.java create mode 100644 scripts/ledge/common/src/main/resources/LilitaOne-Regular.ttf create mode 100644 scripts/ledge/common/src/main/resources/bg_cavern_0.png create mode 100644 scripts/ledge/common/src/main/resources/bg_cavern_1.png create mode 100644 scripts/ledge/common/src/main/resources/bg_cavern_2.png create mode 100644 scripts/ledge/common/src/main/resources/bg_forge_0.png create mode 100644 scripts/ledge/common/src/main/resources/bg_forge_1.png create mode 100644 scripts/ledge/common/src/main/resources/bg_forge_2.png create mode 100644 scripts/ledge/common/src/main/resources/bg_foundry_0.png create mode 100644 scripts/ledge/common/src/main/resources/bg_foundry_1.png create mode 100644 scripts/ledge/common/src/main/resources/bg_foundry_2.png create mode 100644 scripts/ledge/common/src/main/resources/bg_meadow_0.png create mode 100644 scripts/ledge/common/src/main/resources/bg_meadow_1.png create mode 100644 scripts/ledge/common/src/main/resources/bg_meadow_2.png create mode 100644 scripts/ledge/common/src/main/resources/bg_sky_0.png create mode 100644 scripts/ledge/common/src/main/resources/bg_sky_1.png create mode 100644 scripts/ledge/common/src/main/resources/bg_sky_2.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_bat.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_beetle.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_brute.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_frog.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_golem.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_slime.png create mode 100644 scripts/ledge/common/src/main/resources/enemy_turret.png create mode 100644 scripts/ledge/common/src/main/resources/fx_spark.png create mode 100644 scripts/ledge/common/src/main/resources/hero.png create mode 100644 scripts/ledge/common/src/main/resources/item_checkpoint0.png create mode 100644 scripts/ledge/common/src/main/resources/item_checkpoint1.png create mode 100644 scripts/ledge/common/src/main/resources/item_coin.png create mode 100644 scripts/ledge/common/src/main/resources/item_crumble0.png create mode 100644 scripts/ledge/common/src/main/resources/item_crumble1.png create mode 100644 scripts/ledge/common/src/main/resources/item_crumble2.png create mode 100644 scripts/ledge/common/src/main/resources/item_door.png create mode 100644 scripts/ledge/common/src/main/resources/item_gate.png create mode 100644 scripts/ledge/common/src/main/resources/item_gem.png create mode 100644 scripts/ledge/common/src/main/resources/item_goal.png create mode 100644 scripts/ledge/common/src/main/resources/item_heart.png create mode 100644 scripts/ledge/common/src/main/resources/item_key.png create mode 100644 scripts/ledge/common/src/main/resources/item_lever0.png create mode 100644 scripts/ledge/common/src/main/resources/item_lever1.png create mode 100644 scripts/ledge/common/src/main/resources/item_life.png create mode 100644 scripts/ledge/common/src/main/resources/item_plate0.png create mode 100644 scripts/ledge/common/src/main/resources/item_plate1.png create mode 100644 scripts/ledge/common/src/main/resources/item_power_glide.png create mode 100644 scripts/ledge/common/src/main/resources/item_power_jetpack.png create mode 100644 scripts/ledge/common/src/main/resources/item_power_weapon.png create mode 100644 scripts/ledge/common/src/main/resources/item_spring0.png create mode 100644 scripts/ledge/common/src/main/resources/item_spring1.png create mode 100644 scripts/ledge/common/src/main/resources/ledge_icon.png create mode 100644 scripts/ledge/common/src/main/resources/platform_cavern.png create mode 100644 scripts/ledge/common/src/main/resources/platform_forge.png create mode 100644 scripts/ledge/common/src/main/resources/platform_foundry.png create mode 100644 scripts/ledge/common/src/main/resources/platform_meadow.png create mode 100644 scripts/ledge/common/src/main/resources/platform_sky.png create mode 100644 scripts/ledge/common/src/main/resources/sfx_bounce.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_checkpoint.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_coin.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_complete.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_crumble.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_dash.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_death.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_fire.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_gameover.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_gem.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_hurt.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_impact.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_jump.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_land.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_open.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_pickup.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_stomp.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_switch.wav create mode 100644 scripts/ledge/common/src/main/resources/sfx_ui.wav create mode 100644 scripts/ledge/common/src/main/resources/shot_bolt.png create mode 100644 scripts/ledge/common/src/main/resources/shot_orb.png create mode 100644 scripts/ledge/common/src/main/resources/tiles_cavern.png create mode 100644 scripts/ledge/common/src/main/resources/tiles_forge.png create mode 100644 scripts/ledge/common/src/main/resources/tiles_foundry.png create mode 100644 scripts/ledge/common/src/main/resources/tiles_meadow.png create mode 100644 scripts/ledge/common/src/main/resources/tiles_sky.png create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/AccountTest.java create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/AdminTest.java create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/E2e.java create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/GuestTest.java create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/MemoryPreferences.java create mode 100644 scripts/ledge/common/src/test/java/com/codenameone/examples/ledge/ShopTest.java create mode 100644 scripts/ledge/ios/pom.xml create mode 100644 scripts/ledge/ios/src/main/objectivec/.gitkeep create mode 100644 scripts/ledge/levels/1-1.json create mode 100644 scripts/ledge/levels/1-2.json create mode 100644 scripts/ledge/levels/1-3.json create mode 100644 scripts/ledge/levels/1-4.json create mode 100644 scripts/ledge/levels/2-1.json create mode 100644 scripts/ledge/levels/2-2.json create mode 100644 scripts/ledge/levels/2-3.json create mode 100644 scripts/ledge/levels/3-1.json create mode 100644 scripts/ledge/levels/3-2.json create mode 100644 scripts/ledge/levels/3-3.json create mode 100644 scripts/ledge/levels/4-1.json create mode 100644 scripts/ledge/levels/4-2.json create mode 100644 scripts/ledge/levels/5-1.json create mode 100644 scripts/ledge/levels/src/1-1.sketch create mode 100644 scripts/ledge/levels/src/1-2.sketch create mode 100644 scripts/ledge/levels/src/1-3.sketch create mode 100644 scripts/ledge/levels/src/1-4.sketch create mode 100644 scripts/ledge/levels/src/2-1.sketch create mode 100644 scripts/ledge/levels/src/2-2.sketch create mode 100644 scripts/ledge/levels/src/2-3.sketch create mode 100644 scripts/ledge/levels/src/3-1.sketch create mode 100644 scripts/ledge/levels/src/3-2.sketch create mode 100644 scripts/ledge/levels/src/3-3.sketch create mode 100644 scripts/ledge/levels/src/4-1.sketch create mode 100644 scripts/ledge/levels/src/4-2.sketch create mode 100644 scripts/ledge/levels/src/5-1.sketch create mode 100644 scripts/ledge/pom.xml create mode 100755 scripts/ledge/run-e2e.sh create mode 100644 scripts/ledge/shared/pom.xml create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AccountApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AchievementDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AdRewardDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AdminActionDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AdminApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AdminStatsDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/AuditDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/BroadcastDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/BuyDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/DailyDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/DailySeedDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/EquipDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/FlagDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/FriendAddDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/FriendDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/FriendsApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/LeaderDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/PlayerDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ProfileDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ProgressApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/PushDeviceDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ReceiptDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/RegisterDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ResolveDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/RunApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/RunDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/RunResultDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/RunTicketDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ScoreBounds.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ShopApi.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/ShopItemDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/StartRunDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/WalletDto.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/api/package-info.java create mode 100644 scripts/ledge/shared/src/main/java/com/codenameone/examples/ledge/levels/Solver.java create mode 100755 scripts/ledge/tools/make-art.py create mode 100755 scripts/ledge/tools/sketch.py diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Actor.java b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java index 4dfa5cb876e..aa24f3e802c 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Actor.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Actor.java @@ -61,6 +61,7 @@ public class Actor { private int airTicks; private boolean jumpConsumed; private boolean alive = true; + private int defeatChannel; private final int standHeight; private int team; private Health health; @@ -315,6 +316,30 @@ public Actor setStompable(boolean stompable) { return this; } + /// Sets a switch channel the actor's defeat turns on, so beating a boss can + /// open the way out. 0, the default, turns nothing on. + /// + /// #### Parameters + /// + /// - `channel`: the channel + /// + /// #### Returns + /// + /// this actor + public Actor setDefeatChannel(int channel) { + this.defeatChannel = channel; + return this; + } + + /// The switch channel the actor's defeat turns on. + /// + /// #### Returns + /// + /// the channel, 0 for none + public int getDefeatChannel() { + return defeatChannel; + } + /// The brain that drives a non-player actor, or null. /// /// #### Returns diff --git a/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java index 63e3179b766..7b4beb9d2b5 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/LevelData.java @@ -62,7 +62,8 @@ /// ability), `spring` (`power`), `checkpoint`, `door` (`key`, `h`), `gate` /// (`channel`, `w`, `h`, `inverted`), `lever` and `plate` (`channel`), `crumble` /// (`w`, `delay`, `respawn`) and `enemy` (`kind`, `brain`, `hp`, `damage`, -/// `speed`, `range`, `stompable`). Other types go to an `EntityFactory`. +/// `speed`, `range`, `stompable`, and `opens`: a channel its defeat turns on). +/// Other types go to an `EntityFactory`. @com.codename1.impl.SharedWithBackend public final class LevelData { private final Map json; @@ -432,6 +433,7 @@ private static Actor enemy(String id, Map m, int x, int y, int t c.setHealth(health); } c.setContactDamage(LevelJson.integer(m, "damage", 1)); + c.setDefeatChannel(LevelJson.integer(m, "opens", 0) & 31); Object st = m.get("stompable"); c.setStompable(st instanceof Boolean ? ((Boolean) st).booleanValue() : !"turret".equals(brainName)); AIBrain brain = new AIBrain(); diff --git a/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java index 33dca7a1e85..e198757228f 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/PlatformWorld.java @@ -349,6 +349,9 @@ protected void onDeath(Actor c) { } } else { c.kill(); + if (c.getDefeatChannel() > 0) { + setChannel(c.getDefeatChannel(), true); + } } } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/Replay.java b/CodenameOne/src/com/codename1/gaming/platformer/Replay.java index 144d27e6b82..5fd31298a30 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/Replay.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/Replay.java @@ -43,12 +43,45 @@ public static final class Result { private final int ticks; private final int deaths; private final long hash; + private final int score; + private final int coins; + private final int secrets; - Result(boolean complete, int ticks, int deaths, long hash) { - this.complete = complete; - this.ticks = ticks; - this.deaths = deaths; - this.hash = hash; + Result(PlatformWorld w) { + this.complete = w.isComplete(); + this.ticks = w.getTick(); + this.deaths = w.getDeaths(); + this.hash = w.hash(); + this.score = w.getScore(); + this.coins = w.getCoins(); + this.secrets = w.getSecrets(); + } + + /// The points the run scored in the world (pickups, stomps). + /// + /// #### Returns + /// + /// the world score + public int getScore() { + return score; + } + + /// The coins the run collected. + /// + /// #### Returns + /// + /// the coin count + public int getCoins() { + return coins; + } + + /// The secrets the run found. + /// + /// #### Returns + /// + /// the secret count + public int getSecrets() { + return secrets; } /// Whether the run reached the goal. @@ -102,9 +135,9 @@ public long getHash() { public static Result run(LevelData level, long seed, InputLog log) { PlatformWorld w = level.createWorld(seed); int[] in = log.toArray(); - for (int i = 0; i < in.length && !w.isComplete(); i++) { + for (int i = 0; i < in.length && !w.isComplete() && !w.isGameOver(); i++) { w.step(in[i]); } - return new Result(w.isComplete(), w.getTick(), w.getDeaths(), w.hash()); + return new Result(w); } } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java b/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java index e97c6f16baf..df0f8d06abd 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/Feedback.java @@ -203,6 +203,15 @@ public void setIntensity(double intensity) { this.intensity = Math.max(0, intensity); } + /// How strong shakes, flashes and particle bursts are. + /// + /// #### Returns + /// + /// 0 for none, 1 for full + public double getIntensity() { + return intensity; + } + /// Plays an event. /// /// #### Parameters diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java index 2cb36c0a32d..09eda504f6a 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformArt.java @@ -99,4 +99,18 @@ public interface PlatformArt { /// /// an image the platform's size in pixels Image platform(MovingPlatform platform); + + /// The image for the level's goal this tick, drawn centered on the goal + /// rectangle (`PlatformWorld#getGoal()`). + /// + /// #### Parameters + /// + /// - `width`: the goal's width in pixels + /// - `height`: the goal's height in pixels + /// - `tick`: the world tick, for animating + /// + /// #### Returns + /// + /// the image, or null to draw nothing + Image goal(int width, int height, int tick); } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java index 203d0532a4c..f3ce871479e 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/PlatformView.java @@ -81,7 +81,9 @@ public class PlatformView extends GameView { private static final int Z_PLATFORMS = 5; private static final int Z_ENTITIES = 10; private static final int Z_ACTORS = 20; + private static final int Z_PARTICLES = 30; private static final int Z_FLASH = 1000; + private static final int MAX_PARTICLES = 160; private PlatformWorld world; private PlatformArt art; @@ -90,7 +92,39 @@ public class PlatformView extends GameView { private InputMapper mapper = new InputMapper(); private InputSource source; private Feedback.Sink sink; + private final Feedback.Sink ownSink = new Feedback.Sink() { + @Override + public void sound(String name, double x, double y) { + if (sink != null) { + sink.sound(name, x, y); + } + } + + @Override + public void burst(double x, double y, int count, int color) { + spawnParticles(x, y, count, color); + if (sink != null) { + sink.burst(x, y, count, color); + } + } + }; + private final List particles = new ArrayList(); + private final java.util.Random particleRandom = new java.util.Random(7); + private Image particleImage; + + /// A spark of a feedback burst: view state only, never part of the world. + private static final class Particle { + Sprite sprite; + double x; + double y; + double vx; + double vy; + double life; + double max; + double size; + } private double visibleRows = 12; + private double artScale = 1; private double scale = 1; private final Map shown = new HashMap(); private final List gone = new ArrayList(); @@ -180,16 +214,16 @@ public final void setWorld(PlatformWorld world, PlatformArt art) { this.world = world; this.art = art; TileGrid g = world.getGrid(); - chunkCols = (g.getWidth() + CHUNK - 1) / CHUNK; - int chunkRows = (g.getHeight() + CHUNK - 1) / CHUNK; + chunkCols = (g.getCols() + CHUNK - 1) / CHUNK; + int chunkRows = (g.getRows() + CHUNK - 1) / CHUNK; chunks = new Sprite[chunkCols * chunkRows]; dirty = new boolean[chunks.length]; for (int i = 0; i < dirty.length; i++) { dirty[i] = true; } - cells = new byte[g.getWidth() * g.getHeight()]; + cells = new byte[g.getCols() * g.getRows()]; snapshotCells(false); - camera.setBounds(0, 0, g.getWidth() * g.getTileSize(), g.getHeight() * g.getTileSize()); + camera.setBounds(0, 0, g.getCols() * (g.getTileSize() >> 16), g.getRows() * (g.getTileSize() >> 16)); blocksDirty = true; syncSprites(true); snapCamera(); @@ -284,12 +318,12 @@ private void rebuildBlocks() { TileGrid g = world.getGrid(); float[][] m = new float[4][]; int[] n = new int[4]; - int cap = g.getWidth() * g.getHeight() * 4; + int cap = g.getCols() * g.getRows() * 4; for (int i = 0; i < 4; i++) { m[i] = new float[16 * Math.min(cap, 64)]; } - for (int r = 0; r < g.getHeight(); r++) { - for (int c = 0; c < g.getWidth(); c++) { + for (int r = 0; r < g.getRows(); r++) { + for (int c = 0; c < g.getCols(); c++) { int k = g.get(c, r); if (k == Tile.SOLID) { m[0] = box(m[0], n[0]++, c, r, 0, 0, 1, 1, blockDepth); @@ -352,19 +386,43 @@ private static float[] box(float[] m, int index, int c, int r, float ox, float o /// - `y`: its top in world pixels public void addBackground(Image image, float factor, double y) { TileGrid g = world.getGrid(); - double worldW = g.getWidth() * g.getTileSize(); + double worldW = g.getCols() * (g.getTileSize() >> 16); int copies = (int) Math.ceil(worldW * Math.max(0.1, factor) / image.getWidth()) + 2; for (int i = 0; i < copies; i++) { Sprite s = new Sprite(image); s.setAnchor(0, 0); s.setParallax(factor, factor); s.setZOrder(Z_BACK + backgrounds.size()); - s.setUserData(new double[] {i * image.getWidth(), y}); + s.setUserData(new double[] {i * image.getWidth() / artScale, y}); backgrounds.add(s); getScene().add(s); } } + /// How many art pixels the `PlatformArt` draws per world pixel. A level with + /// 16 pixel tiles and art drawn at 64 pixels a tile uses 4: tiles, sprites + /// and backdrops are then drawn at their full resolution instead of being + /// scaled up from the level's own pixel size. Call before `#start()`. + /// + /// #### Parameters + /// + /// - `scale`: art pixels per world pixel, 1 by default + public void setArtScale(double scale) { + this.artScale = Math.max(0.25, scale); + for (int i = 0; i < dirty.length; i++) { + dirty[i] = true; + } + } + + /// Art pixels per world pixel. + /// + /// #### Returns + /// + /// the art scale + public double getArtScale() { + return artScale; + } + /// How many rows of tiles fill the view's height; sets the scale. /// /// #### Parameters @@ -478,7 +536,7 @@ protected void update(double deltaSeconds) { for (int i = 0; i < events.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow WorldEvent e = events.get(i); boolean aboutPlayer = player != null && player.getId().equals(e.getSubject()); - feedback.react(e, aboutPlayer, camera, sink); + feedback.react(e, aboutPlayer, camera, ownSink); if (e.getType() == WorldEvent.DEATH && aboutPlayer && player.isAlive()) { // Respawned: jump the camera rather than pan across the level. snapCamera(); @@ -507,8 +565,8 @@ protected void onEvent(WorldEvent e) { private void snapshotCells(boolean markChanges) { TileGrid g = world.getGrid(); - int w = g.getWidth(); - for (int r = 0; r < g.getHeight(); r++) { + int w = g.getCols(); + for (int r = 0; r < g.getRows(); r++) { for (int c = 0; c < w; c++) { byte k = (byte) g.get(c, r); int i = r * w + c; @@ -526,7 +584,7 @@ private void snapshotCells(boolean markChanges) { private void markDirty(int c, int r) { TileGrid g = world.getGrid(); - if (c < 0 || r < 0 || c >= g.getWidth() || r >= g.getHeight()) { + if (c < 0 || r < 0 || c >= g.getCols() || r >= g.getRows()) { return; } dirty[(r / CHUNK) * chunkCols + c / CHUNK] = true; @@ -534,7 +592,8 @@ private void markDirty(int c, int r) { private void bakeChunks() { TileGrid g = world.getGrid(); - int ts = g.getTileSize(); + int ts = (g.getTileSize() >> 16); + int px = (int) Math.round(ts * artScale); for (int i = 0; i < chunks.length; i++) { if (!dirty[i]) { continue; @@ -545,17 +604,17 @@ private void bakeChunks() { int r0 = chunkRow * CHUNK; Image img = null; Graphics gr = null; - for (int r = r0; r < Math.min(r0 + CHUNK, g.getHeight()); r++) { - for (int c = c0; c < Math.min(c0 + CHUNK, g.getWidth()); c++) { + for (int r = r0; r < Math.min(r0 + CHUNK, g.getRows()); r++) { + for (int c = c0; c < Math.min(c0 + CHUNK, g.getCols()); c++) { Image t = art.tile(g, c, r); if (t == null) { continue; } if (img == null) { - img = Image.createImage(CHUNK * ts, CHUNK * ts, 0); + img = Image.createImage(CHUNK * px, CHUNK * px, 0); gr = img.getGraphics(); } - gr.drawImage(t, (c - c0) * ts, (r - r0) * ts); + gr.drawImage(t, (c - c0) * px, (r - r0) * px, px, px); } } Sprite s = chunks[i]; @@ -579,6 +638,8 @@ private void bakeChunks() { } } + private final Object goalKey = new Object(); + private void syncSprites(boolean reset) { for (Shown s : shown.values()) { s.seen = false; @@ -601,6 +662,16 @@ private void syncSprites(boolean reset) { } place(s, e.x + e.w / 2, e.y + e.h / 2, reset); } + int[] goal = world.getGoal(); + if (goal[2] > 0 && goal[3] > 0) { + Image img = art.goal(goal[2] >> 16, goal[3] >> 16, world.getTick()); + Shown s = show(goalKey, Z_ENTITIES - 1, false); + s.sprite.setVisible(img != null); + if (img != null) { + s.sprite.setImage(img); + } + place(s, goal[0] + goal[2] / 2, goal[1] + goal[3] / 2, reset); + } List actors = world.getActors(); for (int i = 0; i < actors.size(); i++) { Actor a = actors.get(i); @@ -673,7 +744,7 @@ public void frame(double deltaSeconds) { int vw = Math.max(1, getWidth()); int vh = Math.max(1, getHeight()); TileGrid g = world.getGrid(); - scale = vh / (visibleRows * g.getTileSize()); + scale = vh / (visibleRows * (g.getTileSize() >> 16)); camera.setViewSize(vw / scale, vh / scale); double alpha = getInterpolationAlpha(); Actor p = world.getPlayer(); @@ -686,6 +757,7 @@ public void frame(double deltaSeconds) { camera.update(cx, cy, p.getFacing(), deltaSeconds); } feedback.update(deltaSeconds); + updateParticles(deltaSeconds); bakeChunks(); if (blocksDirty) { rebuildBlocks(); @@ -700,7 +772,7 @@ public void frame(double deltaSeconds) { if (f != 0) { flash.setColor(f); if (depth) { - double ts = g.getTileSize(); + double ts = (g.getTileSize() >> 16); double cx = (camera.getX() + camera.getViewWidth() / 2) / ts; double cy = -(camera.getY() + camera.getViewHeight() / 2) / ts; double dist = cameraDistance(); @@ -716,6 +788,78 @@ public void frame(double deltaSeconds) { } } + /// The image a particle is drawn with: a soft white dot, tinted per burst. + /// Override for sparks, leaves or embers. + /// + /// #### Returns + /// + /// the particle image + protected Image createParticleImage() { + int d = 16; + Image img = Image.createImage(d, d, 0); + Graphics g = img.getGraphics(); + g.setAntiAliased(true); + for (int r = d / 2; r > 0; r--) { + int a = 255 * (d / 2 - r + 1) / (d / 2); + g.setColor(0xffffff); + g.setAlpha(Math.min(255, a)); + g.fillArc(d / 2 - r, d / 2 - r, r * 2, r * 2, 0, 360); + } + return img; + } + + private void spawnParticles(double x, double y, int count, int color) { + if (particleImage == null) { + particleImage = createParticleImage(); + } + int n = (int) Math.round(count * feedback.getIntensity()); + for (int i = 0; i < n && particles.size() < MAX_PARTICLES; i++) { + Particle p = new Particle(); + double a = particleRandom.nextDouble() * Math.PI * 2; + double v = 30 + particleRandom.nextDouble() * 110; + p.x = x; + p.y = y; + p.vx = Math.cos(a) * v; + p.vy = Math.sin(a) * v - 60; + p.max = 0.35 + particleRandom.nextDouble() * 0.4; + p.life = p.max; + p.size = 2 + particleRandom.nextDouble() * 3; + p.sprite = new Sprite(particleImage); + p.sprite.setAnchor(0.5, 0.5); + p.sprite.setZOrder(Z_PARTICLES); + p.sprite.setColor(color | 0xff000000); + particles.add(p); + getScene().add(p.sprite); + } + } + + private void updateParticles(double dt) { + double ts = world.getGrid().getTileSize() >> 16; + for (int i = particles.size() - 1; i >= 0; i--) { + Particle p = particles.get(i); + p.life -= dt; + if (p.life <= 0) { + getScene().remove(p.sprite); + particles.remove(i); + continue; + } + p.vy += 260 * dt; + p.vx *= 1 - 2.5 * dt; + p.x += p.vx * dt; + p.y += p.vy * dt; + double k = p.life / p.max; + p.sprite.setAlpha((int) (255 * Math.min(1, k * 1.6))); + double size = p.size * (0.4 + 0.6 * k); + if (depth) { + p.sprite.setPosition(p.x / ts, -p.y / ts, 0.7); + p.sprite.setSize((float) (size / ts), (float) (size / ts)); + } else { + p.sprite.setPosition(p.x * scale, p.y * scale, 0); + p.sprite.setSize((float) (size * scale), (float) (size * scale)); + } + } + } + private double cameraDistance() { return (visibleRows / 2) / Math.tan(Math.toRadians(fov / 2)); } @@ -724,15 +868,14 @@ private void positionFlat(double alpha) { double camX = camera.getX(); double camY = camera.getY(); getScene().setCamera((int) Math.round(camX * scale), (int) Math.round(camY * scale)); - float sc = (float) scale; for (int i = 0; i < chunks.length; i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Sprite s = chunks[i]; if (s != null) { double[] at = (double[]) s.getUserData(); s.setPosition(Math.floor(at[0] * scale), Math.floor(at[1] * scale), 0); // Overlap by a pixel so a fractional scale never opens a seam. - s.setSize((float) Math.ceil(s.getImage().getWidth() * scale) + 1, - (float) Math.ceil(s.getImage().getHeight() * scale) + 1); + s.setSize((float) Math.ceil(s.getImage().getWidth() * scale / artScale) + 1, + (float) Math.ceil(s.getImage().getHeight() * scale / artScale) + 1); } } for (Map.Entry en : shown.entrySet()) { @@ -742,24 +885,25 @@ private void positionFlat(double alpha) { s.sprite.setPosition(x * scale, y * scale, 0); s.sprite.setSize(0, 0); boolean flip = en.getKey() instanceof Actor && Boolean.TRUE.equals(s.sprite.getUserData()); - s.sprite.setScale(flip ? -sc : sc, sc); + float k = (float) (scale / artScale); + s.sprite.setScale(flip ? -k : k, k); } for (int i = 0; i < backgrounds.size(); i++) { // NOPMD ForLoopCanBeForeach - indexed: no iterator per tick, list may grow Sprite s = backgrounds.get(i); double[] at = (double[]) s.getUserData(); s.setPosition(at[0] * scale, at[1] * scale, 0); - s.setScale(sc); + s.setScale((float) (scale / artScale)); } } private void positionDepth(double alpha) { - double ts = world.getGrid().getTileSize(); + double ts = (world.getGrid().getTileSize() >> 16); double cx = (camera.getX() + camera.getViewWidth() / 2) / ts; double cy = -(camera.getY() + camera.getViewHeight() / 2) / ts; double dist = cameraDistance(); getCamera().setPosition((float) cx, (float) (cy + dist * depthTilt), (float) dist); getCamera().setTarget((float) cx, (float) cy, 0f); - float unit = (float) (1 / ts); + float unit = (float) (1 / (ts * artScale)); for (Map.Entry en : shown.entrySet()) { Shown s = en.getValue(); double x = s.prevX + (s.x - s.prevX) * alpha; diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java b/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java index 96a01ed6f75..071e03f3429 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/ProceduralArt.java @@ -406,4 +406,24 @@ public Image platform(MovingPlatform p) { } return img; } + + @Override + public Image goal(int width, int height, int tick) { + int w = Math.max(2, width); + int h = Math.max(2, height); + String key = "g" + w + "x" + h + "_" + ((tick / 8) % 4); + Image img = cache.get(key); + if (img == null) { + img = Image.createImage(w, h, 0); + Graphics g = img.getGraphics(); + g.setAntiAliased(true); + g.setColor(0x4527a0); + g.fillRoundRect(0, 0, w, h, w, w); + g.setColor(accent & 0xffffff); + int inset = 2 + (tick / 8) % 4; + g.drawRoundRect(inset, inset, w - inset * 2 - 1, h - inset * 2 - 1, w / 2, w / 2); + cache.put(key, img); + } + return img; + } } diff --git a/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java b/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java index 9970041594e..da33635a804 100644 --- a/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java +++ b/CodenameOne/src/com/codename1/gaming/platformer/view/TileLayerCollision.java @@ -74,9 +74,9 @@ public static TileGrid toGrid(TileLayer layer, int[] frameKinds) { /// /// the layer public static TileLayer toLayer(TileGrid grid, SpriteSheet sheet, int[] kindFrames) { - TileLayer layer = new TileLayer(sheet, grid.getWidth(), grid.getHeight(), grid.getTileSize()); - for (int r = 0; r < grid.getHeight(); r++) { - for (int c = 0; c < grid.getWidth(); c++) { + TileLayer layer = new TileLayer(sheet, grid.getCols(), grid.getRows(), grid.getTileSize() >> 16); + for (int r = 0; r < grid.getRows(); r++) { + for (int c = 0; c < grid.getCols(); c++) { int k = grid.get(c, r); layer.setTile(c, r, k >= 0 && k < kindFrames.length ? kindFrames[k] : -1); } diff --git a/NOTICE b/NOTICE index b2de9b78026..5829b7a75bd 100644 --- a/NOTICE +++ b/NOTICE @@ -165,6 +165,12 @@ Papercut sample fonts (GochiHand-Regular.ttf, PatrickHand-Regular.ttf) by Patrick Wagesreiter, licensed under the SIL Open Font License 1.1; the licence text is in scripts/papercut/common/src/main/css/fonts/OFL.txt. +Ledge sample font (LilitaOne-Regular.ttf) + Lilita One, Copyright (c) 2011 Juan Montoreano, with Reserved Font Name + Lilita, licensed under the SIL Open Font License 1.1; the licence text is in + scripts/ledge/common/src/main/css/fonts/OFL.txt. Every image and sound in + the Ledge sample is drawn or synthesised by scripts/ledge/tools/make-art.py. + ================================================================================ .NET Standard reference assembly ================================================================================ diff --git a/scripts/ledge/ART.md b/scripts/ledge/ART.md new file mode 100644 index 00000000000..f2928ddb5d0 --- /dev/null +++ b/scripts/ledge/ART.md @@ -0,0 +1,39 @@ +# Ledge art, sound and type + +Every picture and every sound in Ledge is made by one script, +`tools/make-art.py`, from shapes and synthesis. Nothing is downloaded, traced or +sampled, so the look is this project's own and it can be re-tuned by editing +a palette, a pose or an envelope and running the script again. + +| What | Files | Made by | +|---|---|---| +| Five tile sets, auto-tiled by which sides are open | `tiles_.png` | `make_tiles` | +| Moving platforms | `platform_.png` | `make_tiles` | +| The hero, 18 poses | `hero.png` | `make_actors` | +| Seven enemies, from slime to the forge golem | `enemy_*.png` | `make_actors` | +| Coins, gems, hearts, keys, springs, doors, gates, levers, plates, crumbling blocks, power-ups, the goal portal, shots | `item_*.png`, `shot_*.png` | `make_items` | +| Three parallax layers per world | `bg__.png` | `make_backdrops` | +| App icon and particle spark | `ledge_icon.png`, `fx_spark.png` | `make_ui` | +| Nineteen sound effects | `sfx_*.wav` | `make_sfx` | + +The one thing that came from somewhere else is the type: **Lilita One** by Juan +Montoreano, under the SIL Open Font License 1.1, from Google Fonts. Its licence +is beside the font in `common/src/main/css/fonts/OFL.txt`. + +## Re-making or re-skinning + +```bash +python3 tools/make-art.py # everything, about a second +python3 tools/make-art.py actors # one group: tiles, actors, items, backdrops, ui, sfx +``` + +It needs Pillow and nothing else. The conventions the game reads -- the atlas +layout, the frame order of `hero.png`, which way a sheet faces -- are listed at +the top of the script and in `play/LedgeArt.java`, which is the only class that +knows file names. A new theme is a new entry in `THEMES` plus a backdrop branch; +a new enemy is a `draw_` function and a line in `make_actors`. The +`platformer-art` skill walks a language model through the same edits. + +To drop in hand-drawn art instead, keep the file names and sizes: tiles are 64 +art pixels (4 per world pixel), actor frames stand on their bottom edge and face +right. diff --git a/scripts/ledge/LICENSE b/scripts/ledge/LICENSE new file mode 100644 index 00000000000..af5d69aaeb3 --- /dev/null +++ b/scripts/ledge/LICENSE @@ -0,0 +1,22 @@ +MIT No Attribution + +Copyright (c) 2026, Codename One and/or its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +This applies to the Skirmish sample and to everything Codename One Initializr +writes into a generated project: the application templates under +maven/cn1app-archetype/src/main/resources/archetype-resources, the agent skill +under scripts/initializr/common/src/main/resources/skill, and the Initializr +template archives built from them. diff --git a/scripts/ledge/README.adoc b/scripts/ledge/README.adoc new file mode 100644 index 00000000000..9653c24728f --- /dev/null +++ b/scripts/ledge/README.adoc @@ -0,0 +1,114 @@ += Ledge + +A twin-stick arena shooter in cut paper and ink, and its server, in one Maven +project and one language. A paper quill flies over a school notebook page and +shoots ink at paper creatures: darts that rush you, pinwheels that spin across +the page, cranes that split into cranelets, scissors that open and dash, and +inkwells that pull everything toward them before they burst into darts. Ink +drops raise the multiplier up to x20, the eraser clears the page, and the sheet +ripples under every blast and keeps the stains. + +Three modes: Classic, Fold (no gun; fly through paper gates) and Daily (one seed +for everyone, from the server). Around the game is what a live arcade game +needs: accounts, leaderboards for all time, the week, today and your friends, a +shop of quill papers, achievements and a console for running it. + +There is no `rules` module. The server never replays a run: it hands out a +single-use ticket when a run starts and holds the score that comes back to the +plausibility bounds in `ScoreBounds`, which the app and the server share. The +arena runs in the app alone. + +It's a sample of what Codename One does for games, and the project the +Initializr generates when you start from the arena shooter template. + +== Start here + +One chapter of the developer guide covers this project: + +* https://www.codenameone.com/developer-guide/#ledge-implementors-guide[The Ledge chapter] + (link:../../docs/developer-guide/Ledge-Implementors-Guide.asciidoc[source]) + tours what the game does, with the demo accounts, then explains how it's + built and what to change to make it yours: creatures, modes, the look and + the server. + +== The modules + +[cols="1,3"] +|=== +| Module | What it holds + +| `shared` | The data transfer objects, the `@RestClient` interfaces and + `ScoreBounds`. +| `common` | The app: the arena simulation, its view over `com.codename1.gaming`, + the twin sticks, the paper sheet, the menus, the boards, the shop and the + admin console. +| `backend` | The server: accounts, run tickets and scores, boards, the daily + seed, the shop, achievements and administration. +| `ios` | The iOS build, for generating the Xcode project. +|=== + +== Running it + +Start the server on the development profile. It needs nothing installed: the +database is in memory, purchases are simulated, and the demo accounts +`player@`, `rival@`, `trouble@` and `admin@ledge.example` exist, each with +the password `ledge-demo`. + +[source,bash] +---- +CN1_PROFILE=dev backend/server.sh run +---- + +Then run the app in the simulator: + +[source,bash] +---- +mvn verify -Psimulator -DskipTests -Dcodename1.platform=javase +---- + +On a touch screen the left thumb flies and the right one aims and fires; on a +desktop it's WASD and the mouse, and a gamepad works too. + +For the native iOS app, generate the Xcode project on a Mac, open it and run it +from Xcode: + +[source,bash] +---- +mvn package -DskipTests -Dcodename1.platform=ios -Dcodename1.buildTarget=ios-source -Dopen=false +---- + +== Tests + +[source,bash] +---- +mvn -pl shared,backend -Dcodename1.platform=backend test # <1> +./run-e2e.sh # <2> +./check-template.sh # <3> +---- +<1> The server's tests: accounts, run tickets and score bounds, boards, the + shop, progression and administration. +<2> Starts the server on the `test` profile and runs the app's tests against it + in the simulator, the arena's own tests among them. Screenshots land in + `target/e2e-shots`. +<3> Generates a project from the Initializr template, under another name and + package, and builds it. + +`.github/workflows/samples.yml` runs them, and builds the app for Android and +iOS. + +== The Initializr template + +`scripts/sync-initializr-template.py ledge --write` copies this project into +the Initializr's resources; without `--write` it fails when they differ, which is +what CI runs. Change the project here, never the copies. + +== Licence + +Ledge is released under MIT No Attribution (see `LICENSE`), not under the +GPLv2 with Classpath Exception that covers Codename One itself. Take any of it +into your own application, under any licence, with no notice to keep. + +The cut-outs are drawn by `tools/make-art.py`; the paper textures (ambientCG) and +sounds (OpenGameArt) are CC0, and the type is Gochi Hand and Patrick Hand under +the SIL Open Font License. `ART.md` lists every source and how to re-skin the +game. diff --git a/scripts/ledge/backend/application-dev.properties b/scripts/ledge/backend/application-dev.properties new file mode 100644 index 00000000000..3f5573d0b9e --- /dev/null +++ b/scripts/ledge/backend/application-dev.properties @@ -0,0 +1,3 @@ +cn1.datasource.url=:memory: +ledge.iap.provider=simulated +ledge.push.provider=console diff --git a/scripts/ledge/backend/application-test.properties b/scripts/ledge/backend/application-test.properties new file mode 100644 index 00000000000..37da4918977 --- /dev/null +++ b/scripts/ledge/backend/application-test.properties @@ -0,0 +1,4 @@ +cn1.datasource.url=:memory: +ledge.signin.per-minute=1000 +ledge.iap.provider=simulated +ledge.push.provider=recording diff --git a/scripts/ledge/backend/application.properties b/scripts/ledge/backend/application.properties new file mode 100644 index 00000000000..b9e4c12b9c9 --- /dev/null +++ b/scripts/ledge/backend/application.properties @@ -0,0 +1,3 @@ +cn1.datasource.url=${DATABASE_URL} +cn1.server.port=8080 +cn1.security.schema.enabled=true diff --git a/scripts/ledge/backend/pom.xml b/scripts/ledge/backend/pom.xml new file mode 100644 index 00000000000..a830885d734 --- /dev/null +++ b/scripts/ledge/backend/pom.xml @@ -0,0 +1,166 @@ + + + 4.0.0 + + com.codenameone.examples.ledge + ledge + 1.0-SNAPSHOT + + com.codenameone.examples.ledge + ledge-backend + 1.0-SNAPSHOT + jar + + ledge-backend + + + + + com.codenameone + codenameone-backend + ${cn1.version} + + + + com.codenameone + cn1-app-kit-backend + ${cn1.version} + + + + ${project.groupId} + ledge-shared + ${project.version} + + + + org.xerial + sqlite-jdbc + 3.46.1.0 + runtime + + + + com.codenameone + codenameone-backend-test + ${cn1.version} + test + + + org.junit.jupiter + junit-jupiter + 5.9.3 + test + + + + + + + com.codenameone + codenameone-maven-plugin + ${cn1.plugin.version} + + + + cn1-generate-annotation-stubs + generate-sources + + + generate-annotation-stubs + + + + cn1-process-annotations + process-classes + + + process-annotations + + + + cn1-process-test-annotations + process-test-classes + + + process-test-annotations + + + + cn1-compiled-tests + test + + + backend-test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + false + + + + + diff --git a/scripts/ledge/backend/server.sh b/scripts/ledge/backend/server.sh new file mode 100755 index 00000000000..e271136173c --- /dev/null +++ b/scripts/ledge/backend/server.sh @@ -0,0 +1,112 @@ +#!/usr/bin/env bash +# +# Builds and runs the Ledge server. +# +# server.sh build [--jvm|--native] [--web] +# server.sh run [--jvm|--native] [--web] [--prebuilt] [--port N] +# server.sh web +# +# --jvm (the default) runs the server on this JDK, which is how you work on it. +# --native compiles it to a native binary, which is how it ships. +# +# The profile comes from CN1_PROFILE. `test` and `dev` need nothing else: an +# in-memory database, four demo accounts, simulated in-app purchases and +# push notifications that are printed, not sent. Anything else is a +# deployment and reads its settings from the environment -- see +# application.properties. +# +# `web` builds the app for the browser and stages it in target/webapp, which +# takes about a minute; `--web` does that as part of a build or a run. A server +# that finds the app there serves it at /, so http://localhost:8080/ is Ledge +# with nothing installed. It stays staged until the next `mvn clean`: build it +# once, and again when the app changed. +# +# The server prints "listening on http port N" when it accepts connections. +set -euo pipefail + +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +APP="$(cd "$HERE/.." && pwd)" +# The project's own Maven wrapper where it has one. +if [ -z "${MVN:-}" ]; then + if [ -x "$APP/mvnw" ]; then MVN="$APP/mvnw"; else MVN="mvn"; fi +fi + +log() { echo "[ledge-server] $*" >&2; } + +build_jvm() { + log "building the server for the JVM" + "$MVN" -B -q -f "$APP/pom.xml" -Dcodename1.platform=backend -pl shared,backend \ + -Dmaven.test.skip=true package dependency:copy-dependencies \ + -DincludeScope=runtime -DoutputDirectory="$APP/backend/target/server-lib" >&2 +} + +build_native() { + log "translating the server to a native binary" + "$MVN" -B -q -f "$APP/pom.xml" -Dcodename1.platform=backend -pl shared,backend \ + -Dmaven.test.skip=true package cn1:backend-package \ + -Dcn1.backend.output="$APP/backend/target/ledge-server" >&2 +} + +build_web() { + log "building the app for the browser" + "$MVN" -B -q -f "$APP/pom.xml" -Dcodename1.platform=backend -pl backend \ + cn1:backend-webapp >&2 +} + +# The server looks for the app in `webapp` beside its settings; here it is build +# output, so it is under target and the server is told. An address set by the +# caller is left alone. +serve_web() { + if [ -z "${CN1_WEBAPP_ROOT:-}" ] && [ -f "$APP/backend/target/webapp/index.html" ]; then + export CN1_WEBAPP_ROOT="target/webapp" + log "serving the web app in backend/target/webapp" + fi +} + +command="${1:-run}" +shift || true +mode="jvm" +port="${PORT:-8080}" +prebuilt=0 +web=0 +while [ $# -gt 0 ]; do + case "$1" in + --jvm) mode="jvm" ;; + --native) mode="native" ;; + --prebuilt) prebuilt=1 ;; + --web) web=1 ;; + --port) port="$2"; shift ;; + *) log "unknown argument $1"; exit 2 ;; + esac + shift +done + +case "$command" in + build) + if [ "$mode" = "native" ]; then build_native; else build_jvm; fi + [ "$web" = 0 ] || build_web + ;; + web) + build_web + ;; + run) + # application.properties is read from the working directory. + cd "$APP/backend" + if [ "$mode" = "native" ]; then + [ "$prebuilt" = 1 ] || build_native + [ "$web" = 0 ] || [ "$prebuilt" = 1 ] || build_web + serve_web + PORT="$port" exec "$APP/backend/target/ledge-server" + fi + [ "$prebuilt" = 1 ] || build_jvm + [ "$web" = 0 ] || [ "$prebuilt" = 1 ] || build_web + serve_web + main="$(tr -d '\r\n' < "$APP/backend/target/classes/META-INF/cn1-backend-main")" + log "running $main on port $port" + PORT="$port" exec java -cp "$APP/backend/target/classes:$APP/backend/target/server-lib/*" "$main" + ;; + *) + log "unknown command $command (build, run, web)" + exit 2 + ;; +esac diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Clock.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Clock.java new file mode 100644 index 00000000000..4c237575454 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Clock.java @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +/// Wall-clock time, in one place so day boundaries are computed the same way +/// everywhere (UTC days). +public final class Clock { + public static final long DAY = 24L * 60 * 60 * 1000; + + private Clock() { + } + + private static long offset; + + public static long now() { + return System.currentTimeMillis() + offset; + } + + /// Moves `now()` by `millis`, for the tests: a run that claims an hour + /// is only accepted an hour after its ticket was issued. + static void shiftForTests(long millis) { + offset = millis; + } + + /// Midnight UTC at the start of the day `millis` falls in. + public static long dayOf(long millis) { + return millis - millis % DAY; + } + + /// Midnight UTC on the Monday of the week `millis` falls in. The epoch was + /// a Thursday, hence the three days. + public static long weekOf(long millis) { + long day = dayOf(millis) / DAY; + long sinceMonday = ((day + 3) % 7 + 7) % 7; + return (day - sinceMonday) * DAY; + } + + /// The UTC date `millis` falls on, as `yyyy-mm-dd`. Worked out by hand + /// (the civil-from-days algorithm) so it needs nothing of `java.time` past + /// `Instant`, which is all the server's class library promises. + public static String date(long millis) { + long z = Math.floorDiv(millis, DAY) + 719468; + long era = Math.floorDiv(z, 146097); + long doe = z - era * 146097; + long yoe = (doe - doe / 1460 + doe / 36524 - doe / 146096) / 365; + long y = yoe + era * 400; + long doy = doe - (365 * yoe + yoe / 4 - yoe / 100); + long mp = (5 * doy + 2) / 153; + long d = doy - (153 * mp + 2) / 5 + 1; + long m = mp < 10 ? mp + 3 : mp - 9; + if (m <= 2) { + y++; + } + StringBuilder out = new StringBuilder(); + out.append(y).append('-'); + if (m < 10) { + out.append('0'); + } + out.append(m).append('-'); + if (d < 10) { + out.append('0'); + } + return out.append(d).toString(); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Ids.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Ids.java new file mode 100644 index 00000000000..5fd55e4e5a7 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Ids.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.Crypto; + +import java.io.IOException; + +/// Identifiers and secrets made of random bytes. +public final class Ids { + private static final char[] HEX = "0123456789abcdef".toCharArray(); + + private Ids() { + } + + /// A new identifier: 32 hex digits from 16 random bytes. Random and not a + /// counter, so the id of one delivery says nothing about the id of another, and + /// so no table needs a generated key, which every database spells its own way. + public static String next() throws IOException { + return hex(Crypto.randomBytes(16)); + } + + public static String hex(byte[] bytes) { + char[] out = new char[bytes.length * 2]; + for (int iter = 0; iter < bytes.length; iter++) { + out[iter * 2] = HEX[(bytes[iter] >> 4) & 0xf]; + out[iter * 2 + 1] = HEX[bytes[iter] & 0xf]; + } + return new String(out); + } + + /// The SHA-256 of `text`, in hex. What is stored in place of a secret that + /// only ever needs to be compared. + public static String sha256(String text) throws IOException { + return hex(Crypto.sha256(text.getBytes("UTF-8"))); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Roles.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Roles.java new file mode 100644 index 00000000000..b7e5c8aa846 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Roles.java @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +/// The two roles. Every account is a PLAYER; an ADMIN also gets god mode. +public final class Roles { + public static final String PLAYER = "PLAYER"; + public static final String ADMIN = "ADMIN"; + + private Roles() { + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SecurityConfig.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SecurityConfig.java new file mode 100644 index 00000000000..c8c80f24bb2 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SecurityConfig.java @@ -0,0 +1,393 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.Config; +import com.codename1.backend.DataSource; +import com.codename1.backend.HttpServer; +import com.codename1.backend.annotations.Bean; +import com.codename1.backend.annotations.Configuration; +import com.codename1.backend.annotations.Order; +import com.codename1.backend.annotations.Value; +import com.codename1.backend.security.AntPathRequestMatcher; +import com.codename1.backend.security.DisabledException; +import com.codename1.backend.security.GrantedAuthority; +import com.codename1.backend.security.HttpSecurity; +import com.codename1.backend.security.HttpStatusReturningLogoutSuccessHandler; +import com.codename1.backend.security.LogoutFilter; +import com.codename1.backend.security.SecurityExchange; +import com.codename1.backend.security.SecurityFilter; +import com.codename1.backend.security.SecurityFilterChain; +import com.codename1.backend.security.SessionCreationPolicy; +import com.codename1.backend.security.core.userdetails.JdbcUserDetailsManager; +import com.codename1.backend.security.core.userdetails.UserDetails; +import com.codename1.backend.security.crypto.JwkSource; +import com.codename1.backend.security.crypto.PasswordEncoder; +import com.codename1.backend.security.crypto.PasswordEncoderFactories; +import com.codename1.backend.security.oauth2.core.AuthorizationGrantType; +import com.codename1.backend.security.oauth2.core.ClientAuthenticationMethod; +import com.codename1.backend.security.oauth2.jwt.DefaultJwtDecoder; +import com.codename1.backend.security.oauth2.jwt.JwtAudienceValidator; +import com.codename1.backend.security.oauth2.jwt.JwtClaimValidator; +import com.codename1.backend.security.oauth2.jwt.JwtIssuerValidator; +import com.codename1.backend.security.oauth2.jwt.JwtValidators; +import com.codename1.backend.security.oauth2.server.authorization.AuthorizationServerKeys; +import com.codename1.backend.security.oauth2.server.authorization.AuthorizationServerSettings; +import com.codename1.backend.security.oauth2.server.authorization.JdbcOAuth2AuthorizationService; +import com.codename1.backend.security.oauth2.server.authorization.JdbcRegisteredClientRepository; +import com.codename1.backend.security.oauth2.server.authorization.OAuth2AuthorizationService; +import com.codename1.backend.security.oauth2.server.authorization.RegisteredClient; +import com.codename1.backend.security.oauth2.server.authorization.RegisteredClientRepository; +import com.codename1.backend.security.oauth2.server.resource.JwtAuthenticationConverter; +import com.codename1.backend.security.ratelimit.InMemoryRateLimiter; +import com.codename1.backend.security.ratelimit.RateLimitKeys; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; + +/// Who may call what. +/// +/// This server is two things at once, and has a filter chain for each: +/// +/// - **An authorization server.** The app signs a user in here -- e-mail and +/// password, then the authorization-code flow with PKCE -- and gets a +/// short-lived access token and a refresh token. Nothing but this server ever +/// sees the password. +/// - **An API.** Everything under `/api` takes that access token as a bearer +/// token, keeps no session, and decides from the account's roles what the +/// caller may do. +/// +/// The roles are PLAYER and ADMIN ([Roles]). `/api/admin` is god mode and +/// for admins only; the rest is for anyone signed in and acts on the caller's +/// own account, scores and wallet. +@Configuration +public class SecurityConfig { + /// The id the app signs in as. A public client: it holds no secret, since + /// anything shipped inside an app can be read out of it, and proves itself + /// with PKCE instead. + public static final String CLIENT_ID = "ledge-app"; + /// Where the authorization code is sent back to. The app makes the requests + /// of the flow itself and reads the code out of the redirect, so this is + /// never opened; it is the loopback address because that is the one address + /// nobody else can register a listener on. An app that signs in through the + /// system browser adds its own address scheme here with `redirectUri`. + public static final String LOOPBACK_REDIRECT = "http://127.0.0.1/callback"; + /// Where the code is sent back to when the app runs in a browser: a path on + /// this server, which answers with the code it was given. See + /// [#withWebRedirect]. + public static final String WEB_REDIRECT_PATH = "/signin/code"; + /// Whom the access tokens are for. The API accepts no token issued for + /// anything else. + public static final String AUDIENCE = "urn:ledge:api"; + public static final String ISSUER_KEY = "cn1.security.authorizationserver.issuer"; + + @Bean + public PasswordEncoder passwordEncoder() { + return PasswordEncoderFactories.createDelegatingPasswordEncoder(); + } + + /// The accounts, in the tables `cn1.security.schema.enabled` creates. + @Bean + public JdbcUserDetailsManager users(DataSource db) { + return new JdbcUserDetailsManager(db); + } + + @Bean + public RegisteredClientRepository clients(DataSource db, + @Value("${" + ISSUER_KEY + ":}") final String issuer) throws IOException { + final JdbcRegisteredClientRepository clients = new JdbcRegisteredClientRepository(db); + if (clients.findByClientId(CLIENT_ID) == null) { + clients.save(RegisteredClient.withId("ledge").clientId(CLIENT_ID) + .clientName("Ledge") + .clientAuthenticationMethod(ClientAuthenticationMethod.NONE) + .authorizationGrantType(AuthorizationGrantType.AUTHORIZATION_CODE) + .authorizationGrantType(AuthorizationGrantType.REFRESH_TOKEN) + .redirectUri(LOOPBACK_REDIRECT) + .scope("openid").scope("profile") + .build()); + } + // The app in a browser is the same client with one more address: this + // server's own. It is worked out and not stored, because on a + // development profile the server has no one address to store -- and a + // row written by an earlier version would not have it either. + return new RegisteredClientRepository() { + @Override + public void save(RegisteredClient client) { + clients.save(client); + } + + @Override + public RegisteredClient findByClientId(String clientId) { + return withWebRedirect(clients.findByClientId(clientId), issuer); + } + + @Override + public RegisteredClient findById(String id) { + return withWebRedirect(clients.findById(id), issuer); + } + }; + } + + /// The app's registration with [#WEB_REDIRECT_PATH] on this server added + /// to the addresses a code may be sent back to. + /// + /// A browser will not show a page the answer to a request that was + /// redirected to another origin, so the app running in one cannot read its + /// code off a redirect to the loopback address the way the installed app + /// does. It asks for the code to be sent to this server instead, which + /// hands it straight back ([SignInCodePage]). + /// + /// "This server" is the configured issuer where there is one, and is then + /// the only web address accepted. With none -- a development profile -- it + /// is the address the request arrived at, the same rule + /// [#issuedAtThisAddress] holds a token to: a code is only ever sent back + /// to the server the browser was already talking to. + static RegisteredClient withWebRedirect(RegisteredClient client, String issuer) { + if (client == null || !CLIENT_ID.equals(client.getClientId())) { + return client; + } + String here = here(issuer); + if (here == null) { + return client; + } + RegisteredClient.Builder copy = RegisteredClient.withId(client.getId()) + .clientId(client.getClientId()) + .clientName(client.getClientName()) + .clientSettings(client.getClientSettings()) + .tokenSettings(client.getTokenSettings()) + .redirectUri(here + WEB_REDIRECT_PATH); + for (ClientAuthenticationMethod method : client.getClientAuthenticationMethods()) { + copy.clientAuthenticationMethod(method); + } + for (AuthorizationGrantType grant : client.getAuthorizationGrantTypes()) { + copy.authorizationGrantType(grant); + } + for (String uri : client.getRedirectUris()) { + copy.redirectUri(uri); + } + for (String scope : client.getScopes()) { + copy.scope(scope); + } + for (String resource : client.getResources()) { + copy.resource(resource); + } + return copy.build(); + } + + /// Refuses a request that changes something and was sent by a page of + /// another site. + /// + /// A browser names the site a request came from in `Origin` on every + /// request that is not a plain read, and a page cannot change or drop it. + /// The installed app is not a browser and sends none, so a request without + /// one is let through: there is no cookie jar of somebody else's for it to + /// be riding on. + static SecurityFilter sameOrigin(final String issuer) { + return (request, chain) -> { + String method = request.getMethod(); + if ("GET".equals(method) || "HEAD".equals(method) || "OPTIONS".equals(method)) { + return chain.doFilter(request); + } + String origin = request.getHeader("Origin"); + if (origin == null || origin.length() == 0) { + return chain.doFilter(request); + } + String here = here(issuer); + if (here != null && sameOrigin(origin, here)) { + return chain.doFilter(request); + } + return new HttpServer.Response(403, "application/json", + "{\"error\":\"cross_origin\"}".getBytes("UTF-8")) + .header("Cache-Control", "no-store"); + }; + } + + /// This server's address: the configured issuer, and with none -- a + /// development profile -- the address the request in hand arrived at. Null + /// outside a request that says. + static String here(String issuer) { + if (issuer != null && issuer.length() > 0) { + return issuer; + } + SecurityExchange exchange = SecurityExchange.current(); + String host = exchange == null ? null : exchange.getRequest().getHeader("Host"); + if (host == null || host.length() == 0) { + return null; + } + return (exchange.isSecure() ? "https://" : "http://") + host; + } + + /// Whether `origin` is the origin of `address`: the same scheme, host and + /// port, whatever path the address goes on to name. Scheme and host are + /// compared without regard to case, and without folding it -- that would + /// depend on the language the server runs in. + static boolean sameOrigin(String origin, String address) { + int path = address.indexOf('/', address.indexOf("://") + 3); + String root = path < 0 ? address : address.substring(0, path); + return origin.equalsIgnoreCase(root); + } + + /// Kept in the database, so a refresh token outlives a restart and is good + /// on every instance of the server. + @Bean + public OAuth2AuthorizationService authorizations(DataSource db) { + return new JdbcOAuth2AuthorizationService(db); + } + + /// The keys the tokens are signed with: the files named by + /// `cn1.security.authorizationserver.jwk.keys`. On a development profile + /// with none configured, a key made at start-up -- which is why signing in + /// again is needed after restarting a development server. + @Bean + public JwkSource signingKeys(Config config) throws IOException { + return AuthorizationServerKeys.load(config); + } + + /// Signing in. A session exists here and only here, for the few requests + /// between the password being accepted and the code being handed over; + /// the app ends it with `POST /logout` once it has its tokens, and one it + /// never ends runs out after `cn1.session.timeout` seconds without a + /// request, half an hour unless set. + @Bean + @Order(1) + public SecurityFilterChain signIn(HttpSecurity http, + @Value("${" + ISSUER_KEY + ":}") final String issuer, + @Value("${ledge.signin.per-minute:10}") int signInsPerMinute) throws IOException { + http.securityMatcher("/oauth2/**", "/.well-known/**", "/userinfo", "/login", "/login/**", + "/logout") + .authorizeHttpRequests(auth -> auth.anyRequest().authenticated()) + // No CSRF token: the app posts the sign-in form itself, from its own + // screen, and would have to fetch a token first to send one. What a + // token is for still has to be done, because the app also runs in a + // browser, where the session is a cookie the browser keeps and would + // send along with a form another site submitted -- signing its + // visitor in as somebody else. Two things stand in for it. The + // session cookie is `SameSite=Lax`, the server's default, so it does + // not travel with another site's request; and [#sameOrigin] below + // refuses any request that changes something and says it came from + // another site, which is the one a forged sign-in is. A server that + // signs people in through a page it serves keeps CSRF on. + .csrf(csrf -> csrf.disable()) + .addFilterBefore(sameOrigin(issuer), LogoutFilter.class) + // Signing out is a POST and nothing else -- with CSRF off the + // default takes a GET too, which an image tag on any page can send + // -- and is answered with a status, for the reason signing in is. + .logout(logout -> logout + .logoutRequestMatcher(AntPathRequestMatcher.antMatcher("POST", "/logout")) + .logoutSuccessHandler(new HttpStatusReturningLogoutSuccessHandler(204))) + // And it is answered with a status, not a redirect to a page: + // the app in a browser cannot see a redirect or the cookie, only + // how the request ended, so that has to be the answer. The session + // cookie is set either way; the installed app reads it, a browser + // keeps it. + .formLogin(form -> form + .successHandler((request, authentication) -> new HttpServer.Response(200, + "application/json", "{\"signedIn\":true}".getBytes("UTF-8")) + .header("Cache-Control", "no-store")) + .failureHandler((request, refused) -> new HttpServer.Response(401, + "application/json", "{\"signedIn\":false}".getBytes("UTF-8")) + .header("Cache-Control", "no-store"))) + // Guessing passwords is the attack on this chain. Ten tries a minute + // from one address, unless `ledge.signin.per-minute` says otherwise: + // the end-to-end tests are many people signing in from one address, + // and their profile raises it. + .rateLimit("/login", RateLimitKeys.clientAddress(), + new InMemoryRateLimiter(signInsPerMinute, 60)) + .authorizationServer(server -> server + .settings(AuthorizationServerSettings.builder() + .defaultAudience(AUDIENCE).build())); + return http.build(); + } + + /// The API. Stateless: every request stands on its own bearer token. + @Bean + @Order(2) + public SecurityFilterChain api(HttpSecurity http, JwkSource signingKeys, + @Value("${" + ISSUER_KEY + ":}") final String issuer, + JdbcUserDetailsManager users) throws IOException { + DefaultJwtDecoder decoder = DefaultJwtDecoder.withJwkSource(signingKeys).build(); + decoder.setJwtValidator(JwtValidators.createDefaultWithValidators( + new JwtAudienceValidator(AUDIENCE), + issuer.length() > 0 ? new JwtIssuerValidator(issuer) + : new JwtClaimValidator("iss", SecurityConfig::issuedAtThisAddress))); + + // The token says who the caller is and nothing about what they may do. + // The roles are read from the account on every request instead of being + // copied into the token, for one reason: an admin who withdraws a role + // or suspends an account means now, not when the token runs out. It + // costs a lookup by primary key per request. + JwtAuthenticationConverter roles = new JwtAuthenticationConverter(); + roles.setJwtGrantedAuthoritiesConverter(jwt -> { + String name = jwt.getSubject(); + if (name == null || !users.userExists(name)) { + throw new DisabledException("No such account"); + } + UserDetails account = users.loadUserByUsername(name); + if (!account.isEnabled() || !account.isAccountNonLocked()) { + throw new DisabledException("This account is suspended"); + } + Collection held = new ArrayList(); + held.addAll(account.getAuthorities()); + return held; + }); + + http.securityMatcher("/api/**") + .sessionManagement(session -> + session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) + // Opening accounts is the one thing here that costs something + // each time and that a stranger can ask for. + .rateLimit("/api/account/register", RateLimitKeys.clientAddress(), + new InMemoryRateLimiter(20, 3600)) + // Receipts are checked against the store, in the game's name. + .rateLimit("/api/shop/receipt", + RateLimitKeys.firstOf(RateLimitKeys.principal(), RateLimitKeys.clientAddress()), + new InMemoryRateLimiter(60, 3600)) + // Rewarded ads are capped per day in Shop; this keeps a script + // from hammering the route to find out. + .rateLimit("/api/shop/ad-reward", + RateLimitKeys.firstOf(RateLimitKeys.principal(), RateLimitKeys.clientAddress()), + new InMemoryRateLimiter(30, 3600)) + // tag::ledge-api-access[] + .authorizeHttpRequests(auth -> auth + .requestMatchers(AntPathRequestMatcher.antMatcher("POST", + "/api/account/register")).permitAll() + .requestMatchers("/api/admin/**").hasRole(Roles.ADMIN) + .anyRequest().authenticated()) + // end::ledge-api-access[] + .oauth2ResourceServer(oauth2 -> oauth2.jwt(jwt -> jwt.decoder(decoder) + .jwtAuthenticationConverter(roles))); + return http.build(); + } + + /// Whether a token's issuer is the address this request came to. + /// + /// Used only when no issuer is configured, which the server allows only on + /// a development profile: it then issues tokens in the name of whatever + /// address each request arrived at, so that is the name to hold a token to. + static boolean issuedAtThisAddress(Object issuer) { + SecurityExchange exchange = SecurityExchange.current(); + if (exchange == null || !(issuer instanceof String)) { + return false; + } + String host = exchange.getRequest().getHeader("Host"); + return host != null && ((exchange.isSecure() ? "https://" : "http://") + host) + .equals(issuer); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Services.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Services.java new file mode 100644 index 00000000000..fa4cb7e2172 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/Services.java @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.Config; +import com.codename1.backend.annotations.Bean; +import com.codename1.backend.annotations.Configuration; +import com.codename1.backend.annotations.Value; +import com.codename1.backend.push.CloudPush; +import com.codename1.appkit.server.push.CloudPushSender; +import com.codename1.appkit.server.push.ConsolePushSender; +import com.codename1.appkit.server.push.MisconfiguredPushSender; +import com.codename1.appkit.server.push.PushSender; +import com.codename1.appkit.server.push.RecordingPushSender; +import com.codenameone.examples.ledge.shop.MisconfiguredReceipts; +import com.codenameone.examples.ledge.shop.ReceiptValidator; +import com.codenameone.examples.ledge.shop.SimulatedReceipts; +import com.codenameone.examples.ledge.shop.StoreReceipts; + +/// The services this server reaches outside itself for, each behind an +/// interface and each chosen here from the settings. A development profile +/// (dev, test, local) gets the stand-in that needs no account; any other +/// profile gets the real one, and when its settings are missing the server +/// still starts and fails every call with a message naming them. It never +/// quietly falls back to a stand-in. +/// +/// Every setting is also read from the environment, in upper case with `_` +/// for each `.` (`LEDGE_IAP_APPLE_SECRET`), which is where secrets belong. +@Configuration +public class Services { + // tag::ledge-receipt-choice[] + /// `ledge.iap.provider` is one of: + /// + /// - `store`: receipts are checked with Apple (`ledge.iap.apple.secret`) + /// and Google Play (`ledge.iap.google.package` and + /// `ledge.iap.google.token`). A store with no settings refuses its + /// receipts; the other keeps working. + /// - `simulated`: every receipt is accepted, on a development profile only. + /// + /// Unset, it is `simulated` on a development profile and `store` otherwise. + @Bean + public ReceiptValidator receipts(Config config, + @Value("${ledge.iap.provider:}") String chosen, + @Value("${ledge.iap.apple.secret:}") String appleSecret, + @Value("${ledge.iap.apple.bundle:}") String appleBundle, + @Value("${ledge.iap.google.package:}") String googlePackage, + @Value("${ledge.iap.google.token:}") String googleToken) { + String kind = chosen.trim().length() > 0 ? chosen.trim() + : config.isDevelopmentProfile() ? "simulated" : "store"; + if ("simulated".equalsIgnoreCase(kind)) { + if (!config.isDevelopmentProfile()) { + return new MisconfiguredReceipts("ledge.iap.provider=simulated grants every " + + "purchase for free and is refused on the '" + config.getProfile() + + "' profile; set it to store"); + } + return new SimulatedReceipts(); + } + if (!"store".equalsIgnoreCase(kind)) { + return new MisconfiguredReceipts("ledge.iap.provider is '" + kind + + "', which is neither store nor simulated"); + } + if (appleSecret.trim().length() == 0 && (googlePackage.trim().length() == 0 + || googleToken.trim().length() == 0)) { + return new MisconfiguredReceipts("in-app purchases are not configured; set " + + "ledge.iap.apple.secret, or ledge.iap.google.package and " + + "ledge.iap.google.token"); + } + if (appleSecret.trim().length() > 0 && appleBundle.trim().length() == 0) { + // Without it, a genuine receipt from any other app could buy coins. + return new MisconfiguredReceipts("ledge.iap.apple.secret is set without " + + "ledge.iap.apple.bundle, the bundle id receipts must belong to"); + } + return new StoreReceipts(appleSecret.trim(), appleBundle.trim(), googlePackage.trim(), googleToken.trim()); + } + // end::ledge-receipt-choice[] + + // tag::ledge-push-choice[] + /// `ledge.push.provider` is one of: + /// + /// - `cloud`: the Codename One push service. It needs `ledge.push.app`, + /// the app's push id, and `ledge.push.key`, a server key with the push + /// scope; both are in the Push section of the Codename One console. + /// - `console`: prints each notification, on a development profile only. + /// - `recording`: keeps each notification for the tests to read, on a + /// development profile only. + /// + /// Unset, it is `recording` on the `test` profile, `console` on the other + /// development profiles and `cloud` otherwise. A server whose push settings + /// are missing still starts and still serves deliveries: it logs a configuration + /// error at start-up and again for every notification it could not send. + @Bean + public PushSender pushSender(Config config, + @Value("${ledge.push.provider:}") String chosen, + @Value("${ledge.push.app:}") String app, + @Value("${ledge.push.key:}") String key, + @Value("${ledge.push.url:}") String url) { + String kind = chosen.trim().length() > 0 ? chosen.trim() + : "test".equals(config.getProfile()) ? "recording" + : config.isDevelopmentProfile() ? "console" : "cloud"; + if ("console".equalsIgnoreCase(kind) || "recording".equalsIgnoreCase(kind)) { + if (!config.isDevelopmentProfile()) { + return new MisconfiguredPushSender("ledge.push.provider=" + kind + + " sends nothing and is refused on the '" + config.getProfile() + + "' profile; set it to cloud"); + } + return "console".equalsIgnoreCase(kind) ? new ConsolePushSender() + : new RecordingPushSender(); + } + if (!"cloud".equalsIgnoreCase(kind)) { + return new MisconfiguredPushSender("ledge.push.provider is '" + kind + + "', which is none of cloud, console or recording"); + } + String missing = missing("ledge.push.", new String[] {"app", app, "key", key}); + if (missing.length() > 0) { + return new MisconfiguredPushSender(unset("push", "cloud", missing)); + } + try { + CloudPush push = new CloudPush(app.trim(), key.trim()); + return new CloudPushSender(url.trim().length() > 0 ? push.withEndpoint(url.trim()) + : push); + } catch (IllegalArgumentException err) { + return new MisconfiguredPushSender("push provider 'cloud' is misconfigured: " + + err.getMessage()); + } + } + // end::ledge-push-choice[] + + /// The names, after `prefix`, of the settings in `namesAndValues` whose + /// value is empty, separated by commas. + private static String missing(String prefix, String[] namesAndValues) { + StringBuilder out = new StringBuilder(); + for (int iter = 0; iter + 1 < namesAndValues.length; iter += 2) { + if (namesAndValues[iter + 1] == null || namesAndValues[iter + 1].trim().length() == 0) { + if (out.length() > 0) { + out.append(", "); + } + out.append(prefix).append(namesAndValues[iter]); + } + } + return out.toString(); + } + + private static String unset(String service, String provider, String missing) { + return service + " provider '" + provider + "' is not configured; set " + missing; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SignInCodePage.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SignInCodePage.java new file mode 100644 index 00000000000..b7abbae8e0b --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/SignInCodePage.java @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.HttpServer; +import com.codename1.backend.Json; +import com.codename1.backend.annotations.GetMapping; +import com.codename1.backend.annotations.RequestParam; +import com.codename1.backend.annotations.RestController; + +import java.util.LinkedHashMap; +import java.util.Map; + +/// Where a sign-in from a browser ends: the authorization code, handed back. +/// +/// The installed app asks for its code to be sent to a loopback address and +/// reads it off the redirect without following it. A page in a browser cannot +/// do that -- the browser follows the redirect itself and shows the page only +/// what it found at the end -- so the app running in one asks for the code to +/// be sent here, and what is at the end is the code. +/// +/// Nothing is decided here and nothing is trusted: the code arrived in the +/// address, so repeating it tells the caller nothing it did not have, and it +/// is worth nothing without the PKCE verifier only the app that started the +/// sign-in holds. That is why this needs no sign-in of its own. +@RestController +public class SignInCodePage { + @GetMapping(SecurityConfig.WEB_REDIRECT_PATH) + public HttpServer.Response code( + @RequestParam(value = "code", required = false) String code, + @RequestParam(value = "state", required = false) String state, + @RequestParam(value = "error", required = false) String error) throws Exception { + Map answer = new LinkedHashMap(); + if (code != null) { + answer.put("code", code); + } + if (state != null) { + answer.put("state", state); + } + if (error != null) { + answer.put("error", error); + } + return new HttpServer.Response(code == null ? 400 : 200, "application/json", + Json.write(answer).getBytes("UTF-8")) + // A code is good once, for a few minutes; nothing should keep it. + .header("Cache-Control", "no-store") + // And nothing should read it as anything but data: the values + // come from the address, which anyone can write a link to. + .header("X-Content-Type-Options", "nosniff"); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/AccountEndpoint.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/AccountEndpoint.java new file mode 100644 index 00000000000..f9189d5b9c5 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/AccountEndpoint.java @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.account; + +import com.codename1.appkit.server.Caller; +import com.codename1.backend.annotations.Component; +import com.codenameone.examples.ledge.api.AccountApiServer; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.api.ProfileDto; +import com.codenameone.examples.ledge.api.PushDeviceDto; +import com.codenameone.examples.ledge.api.RegisterDto; +import com.codenameone.examples.ledge.push.PushDevices; + +/// `AccountApi` on the server: every call acts on the caller's own account. +@Component +public class AccountEndpoint implements AccountApiServer { + private final Accounts accounts; + private final PushDevices devices; + + public AccountEndpoint(Accounts accounts, PushDevices devices) { + this.accounts = accounts; + this.devices = devices; + } + + @Override + public PlayerDto register(RegisterDto request) throws Exception { + return accounts.register(request); + } + + @Override + public PlayerDto me() throws Exception { + return accounts.me(Caller.name()); + } + + @Override + public PlayerDto saveProfile(ProfileDto profile) throws Exception { + return accounts.saveProfile(Caller.name(), profile); + } + + @Override + public PushDeviceDto registerPush(PushDeviceDto device) throws Exception { + return devices.register(Caller.name(), device); + } + + @Override + public PushDeviceDto unregisterPush(PushDeviceDto device) throws Exception { + return devices.unregister(Caller.name(), device); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Accounts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Accounts.java new file mode 100644 index 00000000000..7b5d6b3c62e --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Accounts.java @@ -0,0 +1,231 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.account; + +import com.codename1.appkit.server.Text; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codename1.backend.security.GrantedAuthority; +import com.codename1.backend.security.core.userdetails.JdbcUserDetailsManager; +import com.codename1.backend.security.core.userdetails.User; +import com.codename1.backend.security.core.userdetails.UserDetails; +import com.codename1.backend.security.crypto.PasswordEncoder; +import com.codenameone.examples.ledge.Roles; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.api.ProfileDto; +import com.codenameone.examples.ledge.api.RegisterDto; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.shop.Catalog; +import java.io.IOException; +import java.time.Instant; +import java.util.Iterator; + +/// Accounts: the sign-in record (users and authorities, owned by the security +/// layer) plus the [Profile] row that holds everything the game knows. +@Component +public class Accounts { + /// What a new player's wallet starts with: enough for a spare eraser pack + /// on day one, not enough for a paper. + public static final int START_COINS = 50; + + private final ProfileRepository profiles; + private final JdbcUserDetailsManager users; + private final PasswordEncoder encoder; + + public Accounts(ProfileRepository profiles, JdbcUserDetailsManager users, PasswordEncoder encoder) { + this.profiles = profiles; + this.users = users; + this.encoder = encoder; + } + + public PlayerDto register(RegisterDto request) throws IOException { + if (request == null) { + throw new ResponseStatusException(400, "Nothing to register"); + } + String username = email(request.email()); + password(request.password()); + String name = displayName(request.displayName()); + if (users.userExists(username)) { + throw new ResponseStatusException(409, "That e-mail already has an account"); + } + try { + create(username, request.password(), name, false); + } catch (IOException | RuntimeException failed) { + // Two registrations racing for one address: the loser sees 409, + // not whatever the database said about the duplicate key. + if (users.userExists(username)) { + throw new ResponseStatusException(409, "That e-mail already has an account"); + } + throw failed; + } + return describe(username); + } + + @Transactional(rollbackFor = IOException.class) + public void create(String username, String password, String name, boolean admin) throws IOException { + users.createUser(User.withUsername(username).password(encoder.encode(password)) + .roles(admin ? new String[] {Roles.PLAYER, Roles.ADMIN} : new String[] {Roles.PLAYER}) + .build()); + Profile p = new Profile(); + p.setUsername(username); + p.setDisplayName(name); + p.setInkCoins(START_COINS); + p.setQuill(Catalog.FREE_QUILL); + p.setOwned(Catalog.FREE_QUILL); + p.setCreatedAt(Instant.now()); + p.setLastSeen(Instant.now()); + profiles.insert(p); + } + + public boolean exists(String username) { + return users.userExists(username); + } + + /// The signed-in player, which also counts as being seen today: the + /// console's "active today" and a lapsed broadcast both read `lastSeen`. + @Transactional(rollbackFor = IOException.class) + public PlayerDto me(String username) throws IOException { + Profile p = profile(username); + p.setLastSeen(Instant.now()); + profiles.save(p); + return toDto(p); + } + + @Transactional(readOnly = true) + public PlayerDto describe(String username) throws IOException { + Profile p = profiles.findById(username); + if (p == null || !users.userExists(username)) { + throw new ResponseStatusException(404, "No such account"); + } + return toDto(p); + } + + public PlayerDto toDto(Profile p) { + UserDetails signIn = users.loadUserByUsername(p.getUsername()); + return new PlayerDto(p.getUsername(), p.getDisplayName(), p.getInkCoins(), p.getBestClassic(), + p.getBestFold(), p.getBestDaily(), p.getRuns(), isAdmin(signIn), + !signIn.isEnabled() || isBenched(p), p.isFlagged(), p.getQuill(), + Lists.split(p.getOwned())); + } + + /// Changes the name and, when given, the equipped paper (which must be owned). + @Transactional(rollbackFor = IOException.class) + public PlayerDto saveProfile(String username, ProfileDto profile) throws IOException { + if (profile == null) { + throw new ResponseStatusException(400, "Nothing to save"); + } + Profile p = profile(username); + if (profile.displayName() != null) { + p.setDisplayName(displayName(profile.displayName())); + } + if (profile.quill() != null && profile.quill().length() > 0) { + if (!Lists.contains(p.getOwned(), profile.quill())) { + throw new ResponseStatusException(403, "You do not own that paper"); + } + p.setQuill(profile.quill()); + } + profiles.save(p); + return toDto(p); + } + + /// Whether a player is kept off the boards: banned, or suspended until a + /// time still to come. + public static boolean isBenched(Profile p) { + return p.isBanned() || p.getSuspendedUntil().toEpochMilli() > System.currentTimeMillis(); + } + + /// Enables or disables sign-in. A disabled account's tokens stop working on + /// its next request ([com.codenameone.examples.ledge.SecurityConfig] reads + /// the account every time). + public void setEnabled(String username, boolean enabled) { + UserDetails signIn = users.loadUserByUsername(username); + if (signIn.isEnabled() != enabled) { + users.updateUser(User.withUserDetails(signIn).disabled(!enabled).build()); + } + } + + public boolean isAdmin(String username) { + return users.userExists(username) && isAdmin(users.loadUserByUsername(username)); + } + + private static boolean isAdmin(UserDetails signIn) { + Iterator it = signIn.getAuthorities().iterator(); + while (it.hasNext()) { + if (("ROLE_" + Roles.ADMIN).equals(it.next().getAuthority())) { + return true; + } + } + return false; + } + + @Transactional(readOnly = true) + public Profile profile(String username) { + Profile p = profiles.findById(username); + if (p == null) { + throw new ResponseStatusException(404, "No such account"); + } + return p; + } + + /// An e-mail address, folded to lower case by hand: `toLowerCase` depends + /// on the language the server runs in. + public static String email(String value) { + String text = value == null ? "" : value.trim(); + int at = text.indexOf('@'); + if (at < 1 || at != text.lastIndexOf('@') || at > text.length() - 4 + || text.indexOf('.', at) < 0 || text.length() > 190) { + throw new ResponseStatusException(400, "That is not an e-mail address"); + } + StringBuilder out = new StringBuilder(text.length()); + for (int i = 0; i < text.length(); i++) { + char c = text.charAt(i); + if (c <= ' ' || c > '~') { + throw new ResponseStatusException(400, "That is not an e-mail address"); + } + out.append(c >= 'A' && c <= 'Z' ? (char) (c + ('a' - 'A')) : c); + } + return out.toString(); + } + + static void password(String value) { + if (value == null || value.length() < 8) { + throw new ResponseStatusException(400, "Choose a password of at least 8 characters"); + } + if (value.length() > 200) { + throw new ResponseStatusException(400, "That password is too long"); + } + } + + /// A player name: 3 to 20 characters, shown on every board, so control + /// characters and leading or trailing spaces are refused. + static String displayName(String value) { + String name = Text.required(value, 20, "your player name").trim(); + if (name.length() < 3) { + throw new ResponseStatusException(400, "A player name needs at least 3 characters"); + } + for (int i = 0; i < name.length(); i++) { + if (name.charAt(i) < ' ') { + throw new ResponseStatusException(400, "That name has characters we cannot show"); + } + } + return name; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/DemoAccounts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/DemoAccounts.java new file mode 100644 index 00000000000..3197c77b455 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/DemoAccounts.java @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.account; + +import com.codename1.backend.Config; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.PostConstruct; +import com.codename1.backend.annotations.Value; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.api.RunDto; +import com.codenameone.examples.ledge.friends.Friends; +import com.codenameone.examples.ledge.run.Modes; +import com.codenameone.examples.ledge.run.Runs; +import java.io.IOException; + +/// The accounts a development server starts with: a player and a rival to +/// compare scores, a player with a flagged run for the console to find, an +/// admin, and a field of rivals with runs spread over all three modes, this +/// week and today, so every board and the daily sheet have something on them. +/// Anywhere else only the admin is made, and only when `ledge.admin.email` +/// and `ledge.admin.password` say who. +@Component +public class DemoAccounts { + public static final String PLAYER = "player@ledge.example"; + public static final String RIVAL = "rival@ledge.example"; + public static final String TROUBLE = "trouble@ledge.example"; + public static final String ADMIN = "admin@ledge.example"; + public static final String PASSWORD = "ledge-demo"; + + private static final String[] FIELD = { + "Snips", "Dog Ear", "Crease", "Paper Tiger", "Staple", "Quire", "Foolscap", "Vellum", + "Deckle", "Ream Queen", "Tissue", "Cardstock", "Onion Skin", "Letterhead", "Watermark" + }; + + private final Accounts accounts; + private final Runs runs; + private final Friends friends; + private final Config config; + private final String adminEmail; + private final String adminPassword; + + public DemoAccounts(Accounts accounts, Runs runs, Friends friends, Config config, + @Value("${ledge.admin.email:}") String adminEmail, + @Value("${ledge.admin.password:}") String adminPassword) { + this.accounts = accounts; + this.runs = runs; + this.friends = friends; + this.config = config; + this.adminEmail = adminEmail; + this.adminPassword = adminPassword; + } + + @PostConstruct + public void seed() throws IOException { + if (!config.isDevelopmentProfile()) { + if (adminEmail.length() > 0 && adminPassword.length() >= 8 + && !accounts.exists(Accounts.email(adminEmail))) { + accounts.create(Accounts.email(adminEmail), adminPassword, "Administrator", true); + } + return; + } + if (accounts.exists(PLAYER)) { + // Seeded on an earlier start against a database that kept it. + return; + } + long now = Clock.now(); + accounts.create(PLAYER, PASSWORD, "Riley", false); + accounts.create(RIVAL, PASSWORD, "Morgan", false); + accounts.create(ADMIN, PASSWORD, "Editor in Chief", true); + accounts.create(TROUBLE, PASSWORD, "Too Sharp", false); + run(PLAYER, Modes.CLASSIC, 182000, 240, now - 3 * Clock.DAY); + run(PLAYER, Modes.FOLD, 96000, 150, now - Clock.DAY); + run(RIVAL, Modes.CLASSIC, 214000, 260, now - 2 * 60 * 60 * 1000L); + run(RIVAL, Modes.DAILY, 121000, 190, now - 60 * 60 * 1000L); + // Ten thousand points a second: possible, so kept, but past the + // suspicious line, so it waits in the console's flag queue. + runs.accept(TROUBLE, Modes.CLASSIC, new RunDto(null, Modes.CLASSIC, 600000, 200, 0, 60, 20), + now - 30 * 60 * 1000L); + long state = 20261120L; + for (int i = 0; i < FIELD.length; i++) { + String who = "rival" + (i + 1) + "@ledge.example"; + accounts.create(who, PASSWORD, FIELD[i], false); + String[] modes = {Modes.CLASSIC, Modes.FOLD, Modes.DAILY}; + for (String mode : modes) { + // An old run, one this week and, for most, one today. + long[] ages = {20 * Clock.DAY, 2 * Clock.DAY, 60 * 60 * 1000L}; + for (int a = 0; a < ages.length; a++) { + state = state * 6364136223846793005L + 1442695040888963407L; + if (a == 2 && ((state >>> 33) % 4) == 0) { + continue; + } + int seconds = 90 + (int) ((state >>> 20) % 420); + long score = seconds * (400L + (state >>> 40) % 1800); + run(who, mode, score, seconds, now - ages[a] - (state >>> 45) % 3600000L); + } + } + } + friends.add(PLAYER, RIVAL); + friends.add(PLAYER, "rival1@ledge.example"); + friends.add(PLAYER, "rival2@ledge.example"); + } + + /// A believable run: enough cuts for the score, well inside `ScoreBounds`. + private void run(String who, String mode, long score, int seconds, long when) throws IOException { + int kills = (int) (score / 2000) + 10; + int gates = Modes.FOLD.equals(mode) ? Math.max(1, seconds / 12) : 0; + int multiplier = (int) Math.min(20, 2 + score / 25000); + runs.accept(who, mode, new RunDto(null, mode, score, kills, gates, seconds, multiplier), when); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Lists.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Lists.java new file mode 100644 index 00000000000..b4205028e3b --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/account/Lists.java @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.account; + +import java.util.ArrayList; +import java.util.List; + +/// Comma-separated id lists, the way a profile stores its owned items. +public final class Lists { + private Lists() { + } + + public static String join(String[] items) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < items.length; i++) { + if (i > 0) { + sb.append(','); + } + sb.append(items[i]); + } + return sb.toString(); + } + + public static String join(List items) { + return join(items.toArray(new String[items.size()])); + } + + public static List split(String csv) { + List out = new ArrayList(); + if (csv == null || csv.length() == 0) { + return out; + } + int start = 0; + for (int i = 0; i <= csv.length(); i++) { + if (i == csv.length() || csv.charAt(i) == ',') { + if (i > start) { + out.add(csv.substring(start, i)); + } + start = i + 1; + } + } + return out; + } + + /// Like [#split], but keeps empty fields, so positions line up: a row's + /// player list has an empty entry for each bot. + public static List fields(String csv) { + List out = new ArrayList(); + if (csv == null || csv.length() == 0) { + return out; + } + int start = 0; + for (int i = 0; i <= csv.length(); i++) { + if (i == csv.length() || csv.charAt(i) == ',') { + out.add(csv.substring(start, i)); + start = i + 1; + } + } + return out; + } + + public static boolean contains(String csv, String id) { + return split(csv).contains(id); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/AdminEndpoint.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/AdminEndpoint.java new file mode 100644 index 00000000000..6d79c282e5e --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/AdminEndpoint.java @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.admin; + +import com.codename1.appkit.server.Caller; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codename1.orm.repository.PageRequest; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.AdminActionDto; +import com.codenameone.examples.ledge.api.AdminApiServer; +import com.codenameone.examples.ledge.api.AdminStatsDto; +import com.codenameone.examples.ledge.api.AuditDto; +import com.codenameone.examples.ledge.api.BroadcastDto; +import com.codenameone.examples.ledge.api.DailyDto; +import com.codenameone.examples.ledge.api.DailySeedDto; +import com.codenameone.examples.ledge.api.FlagDto; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.api.ResolveDto; +import com.codenameone.examples.ledge.domain.Flag; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.push.Broadcasts; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import com.codenameone.examples.ledge.repository.StorePurchaseRepository; +import com.codenameone.examples.ledge.run.Boards; +import com.codenameone.examples.ledge.run.DailySeeds; +import com.codenameone.examples.ledge.run.Runs; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +/// `AdminApi` on the server. The ADMIN role is enforced for all of +/// `/api/admin` in [com.codenameone.examples.ledge.SecurityConfig], so no +/// method here can forget it; everything that changes something is audited. +@Component +public class AdminEndpoint implements AdminApiServer { + private final Accounts accounts; + private final ProfileRepository profiles; + private final ScoreRunRepository runs; + private final StorePurchaseRepository purchases; + private final Flags flags; + private final Moderation moderation; + private final Runs runService; + private final DailySeeds seeds; + private final Boards boards; + private final Broadcasts broadcasts; + + public AdminEndpoint(Accounts accounts, ProfileRepository profiles, ScoreRunRepository runs, + StorePurchaseRepository purchases, Flags flags, Moderation moderation, Runs runService, + DailySeeds seeds, Boards boards, Broadcasts broadcasts) { + this.accounts = accounts; + this.profiles = profiles; + this.runs = runs; + this.purchases = purchases; + this.flags = flags; + this.moderation = moderation; + this.runService = runService; + this.seeds = seeds; + this.boards = boards; + this.broadcasts = broadcasts; + } + + @Override + @Transactional(readOnly = true) + public AdminStatsDto stats() throws Exception { + long now = Clock.now(); + Instant today = Instant.ofEpochMilli(Clock.dayOf(now)); + List top = profiles.byBestClassic(new PageRequest(0, 1)); + return new AdminStatsDto((int) profiles.count(), profiles.seenSince(today).intValue(), + runs.since(today).intValue(), (int) flags.open(), + top.isEmpty() ? 0 : top.get(0).getBestClassic(), seeds.seedOf(now), (int) purchases.count()); + } + + @Override + @Transactional(readOnly = true) + public List players(String query) throws Exception { + String q = query == null ? "" : query.trim(); + List out = new ArrayList(); + for (Profile p : profiles.search("%" + q + "%", new PageRequest(0, 50))) { + out.add(accounts.toDto(p)); + } + return out; + } + + @Override + public PlayerDto act(String username, AdminActionDto action) throws Exception { + return moderation.act(Caller.name(), username, action); + } + + @Override + public List flags(boolean open) throws Exception { + return flags.list(open); + } + + @Override + @Transactional(rollbackFor = IOException.class) + public FlagDto resolve(String id, ResolveDto verdict) throws Exception { + String v = verdict == null ? null : verdict.verdict(); + Flag f = flags.resolve(Caller.name(), id, v); + if (Flags.REMOVE.equalsIgnoreCase(v)) { + runService.recomputeBests(f.getUsername()); + } + moderation.record(Caller.name(), f.getUsername(), "FLAG " + v, f.getReason()); + return flags.toDto(f); + } + + @Override + @Transactional(rollbackFor = IOException.class) + public DailyDto setDaily(DailySeedDto seed) throws Exception { + long value = seed == null ? 0 : seed.seed(); + seeds.pick(Caller.name(), value); + moderation.record(Caller.name(), "", "SET_DAILY", Long.toString(value)); + return boards.daily(Caller.name()); + } + + @Override + @Transactional(rollbackFor = IOException.class) + public BroadcastDto broadcast(BroadcastDto broadcast) throws Exception { + // Audited before the push, which is the one step a rollback cannot undo. + moderation.record(Caller.name(), "", "BROADCAST", broadcast == null ? "" : broadcast.title()); + return broadcasts.send(broadcast); + } + + @Override + public List audit() throws Exception { + return moderation.audit(); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Flags.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Flags.java new file mode 100644 index 00000000000..36325337057 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Flags.java @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.admin; + +import com.codename1.appkit.server.Text; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codename1.orm.repository.PageRequest; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.api.FlagDto; +import com.codenameone.examples.ledge.domain.Flag; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.ScoreRun; +import com.codenameone.examples.ledge.repository.FlagRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +/// Runs held for a person's look. A flagged run stays on the boards until an +/// admin decides: a remarkable run is usually a good player, and taking it +/// down on arithmetic alone would punish exactly them. +@Component +public class Flags { + public static final String KEEP = "KEEP"; + public static final String REMOVE = "REMOVE"; + + private final FlagRepository flags; + private final ProfileRepository profiles; + private final ScoreRunRepository runs; + + public Flags(FlagRepository flags, ProfileRepository profiles, ScoreRunRepository runs) { + this.flags = flags; + this.profiles = profiles; + this.runs = runs; + } + + /// Files a flag for `run`, inside the caller's transaction. + public Flag file(Profile p, ScoreRun run, String reason) throws IOException { + Flag f = new Flag(); + f.setId(Ids.next()); + f.setUsername(p.getUsername()); + f.setRunId(run.getId()); + f.setMode(run.getMode()); + f.setScore(run.getScore()); + f.setKills(run.getKills()); + f.setSeconds(run.getSeconds()); + f.setReason(reason); + f.setCreatedAt(run.getCreatedAt()); + f.setPending(true); + flags.insert(f); + return f; + } + + @Transactional(readOnly = true) + public List list(boolean open) { + List out = new ArrayList(); + for (Flag f : flags.inState(open, new PageRequest(0, 200))) { + out.add(toDto(f)); + } + return out; + } + + /// Closes a flag. REMOVE strikes the run; the caller recomputes the + /// player's bests, which needs [com.codenameone.examples.ledge.run.Runs]. + @Transactional(rollbackFor = IOException.class) + public Flag resolve(String admin, String id, String verdict) throws IOException { + String v = Text.oneOf(verdict, new String[] {KEEP, REMOVE}, "", "the verdict"); + Flag f = flags.findById(id); + if (f == null) { + throw new ResponseStatusException(404, "No such flag"); + } + if (!f.isPending()) { + throw new ResponseStatusException(409, "That flag is already closed"); + } + f.setPending(false); + f.setResolvedBy(admin); + flags.save(f); + if (REMOVE.equalsIgnoreCase(v)) { + ScoreRun r = runs.findById(f.getRunId()); + if (r != null && !r.isStruck()) { + r.setStruck(true); + runs.save(r); + } + } + // The player stays marked while anything about them is still open. + Profile p = profiles.findById(f.getUsername()); + if (p != null && flags.countByUsernameAndPendingTrue(p.getUsername()) == 0) { + p.setFlagged(false); + profiles.save(p); + } + return f; + } + + public long open() { + return flags.countByPendingTrue(); + } + + public FlagDto toDto(Flag f) { + Profile p = profiles.findById(f.getUsername()); + return new FlagDto(f.getId(), f.getUsername(), p == null ? f.getUsername() : p.getDisplayName(), + f.getMode(), f.getScore(), f.getKills(), f.getSeconds(), f.getReason(), + f.getCreatedAt().toEpochMilli(), f.isPending()); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Moderation.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Moderation.java new file mode 100644 index 00000000000..6609a1c94b5 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/admin/Moderation.java @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.admin; + +import com.codename1.appkit.server.Text; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Scheduled; +import com.codename1.backend.annotations.Transactional; +import com.codename1.orm.repository.PageRequest; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.AdminActionDto; +import com.codenameone.examples.ledge.api.AuditDto; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.domain.AdminAction; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.ScoreRun; +import com.codenameone.examples.ledge.repository.AdminActionRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +/// What an admin does to a player, every step written to the audit log in +/// the same transaction as the change, so the log cannot miss one. +@Component +public class Moderation { + private final Accounts accounts; + private final ProfileRepository profiles; + private final ScoreRunRepository runs; + private final AdminActionRepository audit; + + public Moderation(Accounts accounts, ProfileRepository profiles, ScoreRunRepository runs, + AdminActionRepository audit) { + this.accounts = accounts; + this.profiles = profiles; + this.runs = runs; + this.audit = audit; + } + + @Transactional(rollbackFor = IOException.class) + public PlayerDto act(String admin, String username, AdminActionDto action) throws IOException { + if (action == null) { + throw new ResponseStatusException(400, "No action"); + } + String kind = Text.oneOf(action.action(), + new String[] {"WARN", "SUSPEND", "BAN", "UNBAN", "RESET_SCORES"}, "", "the action"); + String reason = Text.optional(action.reason(), 255, "the reason"); + Profile p = accounts.profile(username); + if (admin.equals(username) && !"WARN".equals(kind)) { + // An admin who bans themselves loses the console that would undo it. + throw new ResponseStatusException(400, "Not on your own account"); + } + if ("SUSPEND".equals(kind)) { + int days = action.days() <= 0 ? 1 : Math.min(action.days(), 365); + p.setSuspendedUntil(Instant.ofEpochMilli(Clock.now() + days * Clock.DAY)); + accounts.setEnabled(username, false); + kind = "SUSPEND " + days + "d"; + } else if ("BAN".equals(kind)) { + p.setBanned(true); + accounts.setEnabled(username, false); + } else if ("UNBAN".equals(kind)) { + p.setBanned(false); + p.setSuspendedUntil(Instant.EPOCH); + accounts.setEnabled(username, true); + } else if ("RESET_SCORES".equals(kind)) { + for (ScoreRun r : runs.of(username)) { + r.setStruck(true); + runs.save(r); + } + p.setBestClassic(0); + p.setBestFold(0); + p.setBestDaily(0); + } + profiles.save(p); + record(admin, username, kind, reason == null ? "" : reason); + return accounts.toDto(p); + } + + /// Writes one audit row, inside the caller's transaction. + public void record(String admin, String username, String action, String reason) throws IOException { + AdminAction a = new AdminAction(); + a.setId(Ids.next()); + a.setAdmin(admin); + a.setUsername(username); + a.setAction(action); + a.setReason(reason.length() > 255 ? reason.substring(0, 255) : reason); + a.setCreatedAt(Instant.now()); + audit.insert(a); + } + + @Transactional(readOnly = true) + public List audit() { + List out = new ArrayList(); + for (AdminAction a : audit.newest(new PageRequest(0, 200))) { + out.add(new AuditDto(a.getId(), a.getAdmin(), a.getUsername(), a.getAction(), a.getReason(), + a.getCreatedAt().toEpochMilli())); + } + return out; + } + + /// Lifts suspensions that have run their course. + @Scheduled(fixedDelay = 60000, initialDelay = 60000, lock = "ledge-suspensions") + @Transactional + public void liftExpired() { + for (Profile p : profiles.expired(Instant.EPOCH, Instant.ofEpochMilli(Clock.now()))) { + p.setSuspendedUntil(Instant.EPOCH); + profiles.save(p); + accounts.setEnabled(p.getUsername(), true); + } + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdNonce.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdNonce.java new file mode 100644 index 00000000000..17c28ad7ea3 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdNonce.java @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A rewarded-ad nonce already paid out. The key is its hash, so one nonce pays once. +@Entity +public class AdNonce { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(64)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public AdNonce() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdminAction.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdminAction.java new file mode 100644 index 00000000000..b074519c3fe --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/AdminAction.java @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// One entry of the admin audit log. Rows are only ever inserted. +@Entity +public class AdminAction { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(32)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String admin = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(24)") + private String action = ""; + + @Column(nullable = false, type = "VARCHAR(255)") + private String reason = ""; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public AdminAction() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getAdmin() { + return admin; + } + + public void setAdmin(String admin) { + this.admin = admin; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getAction() { + return action; + } + + public void setAction(String action) { + this.action = action; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Broadcast.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Broadcast.java new file mode 100644 index 00000000000..8135bb47963 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Broadcast.java @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A push sent from the console. +@Entity +public class Broadcast { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(32)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(80)") + private String title = ""; + + @Column(nullable = false, type = "VARCHAR(255)") + private String body = ""; + + @Column(nullable = false) + private int days; + + @Column(nullable = false) + private int targets; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public Broadcast() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + public int getDays() { + return days; + } + + public void setDays(int days) { + this.days = days; + } + + public int getTargets() { + return targets; + } + + public void setTargets(int targets) { + this.targets = targets; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/DailySeed.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/DailySeed.java new file mode 100644 index 00000000000..8885f4f4d8c --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/DailySeed.java @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// An admin's pick of seed for one UTC day, keyed by the date (`2026-11-20`). +@Entity +public class DailySeed { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(10)") + private String day = ""; + + @Column(nullable = false) + private long seed; + + @Column(nullable = false, type = "VARCHAR(190)") + private String setBy = ""; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public DailySeed() { + } + + public String getDay() { + return day; + } + + public void setDay(String day) { + this.day = day; + } + + public long getSeed() { + return seed; + } + + public void setSeed(long seed) { + this.seed = seed; + } + + public String getSetBy() { + return setBy; + } + + public void setSetBy(String setBy) { + this.setBy = setBy; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Flag.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Flag.java new file mode 100644 index 00000000000..c4dce484b71 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Flag.java @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A run held for a person's look. +@Entity +public class Flag { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(32)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(32)") + private String runId = ""; + + @Column(nullable = false, type = "VARCHAR(16)") + private String mode = ""; + + @Column(nullable = false) + private long score; + + @Column(nullable = false) + private int kills; + + @Column(nullable = false) + private int seconds; + + @Column(nullable = false, type = "VARCHAR(255)") + private String reason = ""; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + @Column(nullable = false) + private boolean pending; + + @Column(nullable = false, type = "VARCHAR(190)") + private String resolvedBy = ""; + + public Flag() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getRunId() { + return runId; + } + + public void setRunId(String runId) { + this.runId = runId; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public long getScore() { + return score; + } + + public void setScore(long score) { + this.score = score; + } + + public int getKills() { + return kills; + } + + public void setKills(int kills) { + this.kills = kills; + } + + public int getSeconds() { + return seconds; + } + + public void setSeconds(int seconds) { + this.seconds = seconds; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + public boolean isPending() { + return pending; + } + + public void setPending(boolean pending) { + this.pending = pending; + } + + public String getResolvedBy() { + return resolvedBy; + } + + public void setResolvedBy(String resolvedBy) { + this.resolvedBy = resolvedBy; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Friend.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Friend.java new file mode 100644 index 00000000000..e95e7a247c5 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Friend.java @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// One direction of a friendship: `username` sees `friend` on their FRIENDS board. +@Entity +public class Friend { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(64)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String friend = ""; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public Friend() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getFriend() { + return friend; + } + + public void setFriend(String friend) { + this.friend = friend; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Profile.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Profile.java new file mode 100644 index 00000000000..6d13afb90fb --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/Profile.java @@ -0,0 +1,197 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A player's game data beyond the sign-in record: wallet, bests per mode, papers and moderation state. +@Entity +public class Profile { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(40)") + private String displayName = ""; + + @Column(nullable = false) + private int inkCoins; + + @Column(nullable = false) + private int erasers; + + @Column(nullable = false) + private long bestClassic; + + @Column(nullable = false) + private long bestFold; + + @Column(nullable = false) + private long bestDaily; + + @Column(nullable = false) + private int runs; + + @Column(nullable = false, type = "VARCHAR(40)") + private String quill = ""; + + @Column(nullable = false, type = "VARCHAR(1000)") + private String owned = ""; + + @Column(nullable = false) + private boolean flagged; + + @Column(nullable = false) + private Instant suspendedUntil = Instant.EPOCH; + + @Column(nullable = false) + private boolean banned; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + @Column(nullable = false) + private Instant lastSeen = Instant.EPOCH; + + public Profile() { + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public int getInkCoins() { + return inkCoins; + } + + public void setInkCoins(int inkCoins) { + this.inkCoins = inkCoins; + } + + public int getErasers() { + return erasers; + } + + public void setErasers(int erasers) { + this.erasers = erasers; + } + + public long getBestClassic() { + return bestClassic; + } + + public void setBestClassic(long bestClassic) { + this.bestClassic = bestClassic; + } + + public long getBestFold() { + return bestFold; + } + + public void setBestFold(long bestFold) { + this.bestFold = bestFold; + } + + public long getBestDaily() { + return bestDaily; + } + + public void setBestDaily(long bestDaily) { + this.bestDaily = bestDaily; + } + + public int getRuns() { + return runs; + } + + public void setRuns(int runs) { + this.runs = runs; + } + + public String getQuill() { + return quill; + } + + public void setQuill(String quill) { + this.quill = quill; + } + + public String getOwned() { + return owned; + } + + public void setOwned(String owned) { + this.owned = owned; + } + + public boolean isFlagged() { + return flagged; + } + + public void setFlagged(boolean flagged) { + this.flagged = flagged; + } + + public Instant getSuspendedUntil() { + return suspendedUntil; + } + + public void setSuspendedUntil(Instant suspendedUntil) { + this.suspendedUntil = suspendedUntil; + } + + public boolean isBanned() { + return banned; + } + + public void setBanned(boolean banned) { + this.banned = banned; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + public Instant getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Instant lastSeen) { + this.lastSeen = lastSeen; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/PushDevice.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/PushDevice.java new file mode 100644 index 00000000000..72698178563 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/PushDevice.java @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A device an account is sent push notifications on. +/// +/// Keyed by the hash of its provider and token, so a token is on one account at +/// a time: the phone belongs to whoever signed in on it last. +@Entity +public class PushDevice { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(64)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + /// `fcm`, `apns`, `huawei`, `wns` or `web`. + @Column(nullable = false, type = "VARCHAR(16)") + private String provider = ""; + + @Column(nullable = false, type = "VARCHAR(1024)") + private String token = ""; + + @Column(nullable = false, type = "VARCHAR(32)") + private String platform = ""; + + @Column(nullable = false) + private Instant updatedAt = Instant.EPOCH; + + public PushDevice() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getProvider() { + return provider; + } + + public void setProvider(String provider) { + this.provider = provider; + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public Instant getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Instant updatedAt) { + this.updatedAt = updatedAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/RunTicket.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/RunTicket.java new file mode 100644 index 00000000000..825ff49e0fc --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/RunTicket.java @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// Permission to submit one run. The token is the key; using it marks the row. +@Entity +public class RunTicket { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(64)") + private String token = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(16)") + private String mode = ""; + + @Column(nullable = false) + private long seed; + + @Column(nullable = false) + private Instant expiresAt = Instant.EPOCH; + + @Column(nullable = false) + private boolean used; + + public RunTicket() { + } + + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public long getSeed() { + return seed; + } + + public void setSeed(long seed) { + this.seed = seed; + } + + public Instant getExpiresAt() { + return expiresAt; + } + + public void setExpiresAt(Instant expiresAt) { + this.expiresAt = expiresAt; + } + + public boolean isUsed() { + return used; + } + + public void setUsed(boolean used) { + this.used = used; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/ScoreRun.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/ScoreRun.java new file mode 100644 index 00000000000..15f7ad4b6af --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/ScoreRun.java @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// One accepted run. Struck runs stay for the record but leave every board. +@Entity +public class ScoreRun { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(32)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(16)") + private String mode = ""; + + @Column(nullable = false) + private long score; + + @Column(nullable = false) + private int kills; + + @Column(nullable = false) + private int gates; + + @Column(nullable = false) + private int seconds; + + @Column(nullable = false) + private int peakMultiplier; + + @Column(nullable = false) + private long day; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + @Column(nullable = false) + private boolean struck; + + public ScoreRun() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public long getScore() { + return score; + } + + public void setScore(long score) { + this.score = score; + } + + public int getKills() { + return kills; + } + + public void setKills(int kills) { + this.kills = kills; + } + + public int getGates() { + return gates; + } + + public void setGates(int gates) { + this.gates = gates; + } + + public int getSeconds() { + return seconds; + } + + public void setSeconds(int seconds) { + this.seconds = seconds; + } + + public int getPeakMultiplier() { + return peakMultiplier; + } + + public void setPeakMultiplier(int peakMultiplier) { + this.peakMultiplier = peakMultiplier; + } + + public long getDay() { + return day; + } + + public void setDay(long day) { + this.day = day; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + public boolean isStruck() { + return struck; + } + + public void setStruck(boolean struck) { + this.struck = struck; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/StorePurchase.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/StorePurchase.java new file mode 100644 index 00000000000..1ad6c673a10 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/domain/StorePurchase.java @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.domain; + +import com.codename1.annotations.Column; +import com.codename1.annotations.Entity; +import com.codename1.annotations.Id; +import java.time.Instant; + +/// A verified store transaction. The key is the store's transaction id, so a receipt can only ever be redeemed once. +@Entity +public class StorePurchase { + @Id(autoIncrement = false) + @Column(nullable = false, type = "VARCHAR(64)") + private String id = ""; + + @Column(nullable = false, type = "VARCHAR(190)") + private String username = ""; + + @Column(nullable = false, type = "VARCHAR(16)") + private String store = ""; + + @Column(nullable = false, type = "VARCHAR(64)") + private String sku = ""; + + @Column(nullable = false) + private int coins; + + @Column(nullable = false) + private Instant createdAt = Instant.EPOCH; + + public StorePurchase() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getStore() { + return store; + } + + public void setStore(String store) { + this.store = store; + } + + public String getSku() { + return sku; + } + + public void setSku(String sku) { + this.sku = sku; + } + + public int getCoins() { + return coins; + } + + public void setCoins(int coins) { + this.coins = coins; + } + + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/friends/Friends.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/friends/Friends.java new file mode 100644 index 00000000000..899b7f19a25 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/friends/Friends.java @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.friends; + +import com.codename1.appkit.server.Caller; +import com.codename1.appkit.server.Text; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.api.FriendAddDto; +import com.codenameone.examples.ledge.api.FriendDto; +import com.codenameone.examples.ledge.api.FriendsApiServer; +import com.codenameone.examples.ledge.domain.Friend; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.repository.FriendRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codename1.orm.repository.PageRequest; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +/// Friends, and `FriendsApi` on the server. A friendship goes one way: adding +/// somebody puts them on your FRIENDS board, not you on theirs, so nobody has +/// to accept anything and nobody can push themselves onto a stranger's board. +@Component +public class Friends implements FriendsApiServer { + private final FriendRepository friends; + private final ProfileRepository profiles; + + public Friends(FriendRepository friends, ProfileRepository profiles) { + this.friends = friends; + this.profiles = profiles; + } + + @Override + public List friends() throws Exception { + return list(Caller.name()); + } + + @Override + public List add(FriendAddDto friend) throws Exception { + return add(Caller.name(), friend == null ? null : friend.name()); + } + + @Override + public List remove(FriendAddDto friend) throws Exception { + return remove(Caller.name(), friend == null ? null : friend.name()); + } + + @Transactional(readOnly = true) + public List list(String username) { + List out = new ArrayList(); + for (Friend f : friends.findByUsername(username)) { + Profile p = profiles.findById(f.getFriend()); + if (p != null) { + out.add(new FriendDto(p.getUsername(), p.getDisplayName(), p.getBestClassic(), p.getQuill())); + } + } + return out; + } + + @Transactional(rollbackFor = IOException.class) + public List add(String username, String name) throws IOException { + Profile other = find(name); + if (other.getUsername().equals(username)) { + throw new ResponseStatusException(400, "You are always on your own board"); + } + String key = key(username, other.getUsername()); + if (friends.findById(key) == null) { + Friend f = new Friend(); + f.setId(key); + f.setUsername(username); + f.setFriend(other.getUsername()); + f.setCreatedAt(Instant.now()); + friends.insert(f); + } + return list(username); + } + + @Transactional(rollbackFor = IOException.class) + public List remove(String username, String name) throws IOException { + Friend f = friends.findById(key(username, find(name).getUsername())); + if (f != null) { + friends.delete(f); + } + return list(username); + } + + /// A player by username, else by display name. Display names are not + /// unique, so one shared by several players is refused rather than guessed. + private Profile find(String name) { + String text = Text.required(name, 190, "a player name").trim(); + Profile p = profiles.findById(text); + if (p != null) { + return p; + } + List named = profiles.named(text, new PageRequest(0, 2)); + if (named.isEmpty()) { + throw new ResponseStatusException(404, "Nobody plays by that name"); + } + if (named.size() > 1) { + throw new ResponseStatusException(409, "Several players use that name; use their e-mail"); + } + return named.get(0); + } + + /// The row's key: one row per ordered pair, so adding twice is harmless. + private static String key(String username, String friend) throws IOException { + return Ids.sha256(username + "\n" + friend); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/progress/Achievements.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/progress/Achievements.java new file mode 100644 index 00000000000..1dbafc66fa2 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/progress/Achievements.java @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.progress; + +import com.codename1.appkit.server.Caller; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.account.Lists; +import com.codenameone.examples.ledge.api.AchievementDto; +import com.codenameone.examples.ledge.api.ProgressApiServer; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.ScoreRun; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import com.codenameone.examples.ledge.run.Modes; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/// Achievements, and `ProgressApi` on the server. Nothing is stored: each is +/// worked out from the player's standing runs whenever asked, so an admin +/// striking a run takes back what it unlocked, and a new achievement counts +/// every run played before it existed. +@Component +public class Achievements implements ProgressApiServer { + private final ScoreRunRepository runs; + private final ProfileRepository profiles; + + public Achievements(ScoreRunRepository runs, ProfileRepository profiles) { + this.runs = runs; + this.profiles = profiles; + } + + @Override + public List achievements() throws Exception { + return of(Caller.name()); + } + + @Transactional(readOnly = true) + public List of(String username) { + long played = 0; + long bestClassic = 0; + long bestGates = 0; + long longest = 0; + long bestMultiplier = 0; + Set dailyDays = new HashSet(); + for (ScoreRun r : runs.of(username)) { + played++; + if (Modes.CLASSIC.equals(r.getMode())) { + bestClassic = Math.max(bestClassic, r.getScore()); + } + if (Modes.FOLD.equals(r.getMode())) { + bestGates = Math.max(bestGates, r.getGates()); + } + if (Modes.DAILY.equals(r.getMode())) { + dailyDays.add(r.getDay()); + } + longest = Math.max(longest, r.getSeconds()); + bestMultiplier = Math.max(bestMultiplier, r.getPeakMultiplier()); + } + Profile p = profiles.findById(username); + long papers = p == null ? 0 : Lists.split(p.getOwned()).size(); + List out = new ArrayList(); + out.add(goal("first-cut", "First Cut", "Finish a run", played, 1)); + out.add(goal("classic-100k", "Sharp", "Score 100,000 in a classic run", bestClassic, 100000)); + out.add(goal("classic-500k", "Razor", "Score 500,000 in a classic run", bestClassic, 500000)); + out.add(goal("fold-25", "Origamist", "Pass 25 gates in one fold run", bestGates, 25)); + out.add(goal("survive-3m", "Tough Paper", "Survive 3 minutes", longest, 180)); + out.add(goal("daily-10", "Regular", "Play 10 dailies", dailyDays.size(), 10)); + out.add(goal("multiplier-20", "In the Margin", "Reach the x20 multiplier", bestMultiplier, 20)); + out.add(goal("papers-3", "Stationer", "Own 3 papers", papers, 3)); + return out; + } + + private static AchievementDto goal(String id, String name, String description, long progress, long goal) { + return new AchievementDto(id, name, description, progress >= goal, Math.min(progress, goal), goal); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/Broadcasts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/Broadcasts.java new file mode 100644 index 00000000000..0e126fa251d --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/Broadcasts.java @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.push; + +import com.codename1.appkit.server.Text; +import com.codename1.appkit.server.push.PushSender; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.push.PushNotification; +import com.codename1.backend.push.PushTarget; +import com.codename1.orm.repository.PageRequest; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.api.BroadcastDto; +import com.codenameone.examples.ledge.domain.Broadcast; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.repository.BroadcastRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +/// A push from the console to every player, or to the ones not seen for some +/// days. Sent through the configured [PushSender]: the console prints it on a +/// development server, the recorder keeps it for the tests. +@Component +public class Broadcasts { + private static final int PAGE = 500; + + private final ProfileRepository profiles; + private final PushDevices devices; + private final PushSender sender; + private final BroadcastRepository broadcasts; + + public Broadcasts(ProfileRepository profiles, PushDevices devices, PushSender sender, + BroadcastRepository broadcasts) { + this.profiles = profiles; + this.devices = devices; + this.sender = sender; + this.broadcasts = broadcasts; + } + + /// Sends it and records it. `targets` in the answer counts players with at + /// least one device, not devices: that is the number an admin means. + public BroadcastDto send(BroadcastDto request) throws IOException { + if (request == null) { + throw new ResponseStatusException(400, "Nothing to send"); + } + String title = Text.required(request.title(), 80, "the title"); + String body = Text.required(request.body(), 255, "the message"); + int days = Math.max(0, request.days()); + Instant seenBefore = days == 0 ? Instant.ofEpochMilli(Long.MAX_VALUE) + : Instant.ofEpochMilli(Clock.now() - days * Clock.DAY); + String id = Ids.next(); + List targets = new ArrayList(); + int reached = 0; + for (int page = 0;; page++) { + List batch = profiles.audience(seenBefore, new PageRequest(page, PAGE)); + for (Profile p : batch) { + List mine = devices.targetsOf(p.getUsername()); + if (!mine.isEmpty()) { + reached++; + targets.addAll(mine); + } + } + if (batch.size() < PAGE) { + break; + } + } + Broadcast row = new Broadcast(); + row.setId(id); + row.setTitle(title); + row.setBody(body); + row.setDays(days); + row.setTargets(reached); + row.setCreatedAt(Instant.now()); + broadcasts.insert(row); + // The push goes last: it cannot be rolled back, so everything that + // can fail is written first. The caller audits before calling this. + if (!targets.isEmpty()) { + sender.send(targets, PushNotification.builder().id(id).title(title).body(body) + .collapseKey("broadcast").ttlSeconds(24 * 60 * 60).data("broadcast", id) + // The app opens today's sheet from it (Notifications). + .data("screen", "daily").build(), null); + } + return new BroadcastDto(id, title, body, days, reached, row.getCreatedAt().toEpochMilli()); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/PushDevices.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/PushDevices.java new file mode 100644 index 00000000000..34e4cabca31 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/push/PushDevices.java @@ -0,0 +1,175 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.push; + +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codename1.backend.push.PushTarget; +import com.codenameone.examples.ledge.Ids; +import com.codename1.appkit.server.Text; +import com.codenameone.examples.ledge.api.PushDeviceDto; +import com.codenameone.examples.ledge.domain.PushDevice; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.PushDeviceRepository; + +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; + +// tag::ledge-push-devices[] +/// The devices each account is sent notifications on. +/// +/// The app registers its token when somebody signs in and removes it when they +/// sign out. A token registered by a second account moves to it: the phone +/// belongs to whoever signed in on it last, and the one before is not to be +/// told about the new owner's deliveries. +@Component +public class PushDevices { + /// How many devices one account keeps. A new one past this replaces the + /// one heard from longest ago: a token the platform has replaced is never + /// removed by its app, and would otherwise be sent to for good. + static final int MAX_PER_ACCOUNT = 8; + + private final PushDeviceRepository devices; + private final ProfileRepository profiles; + + public PushDevices(PushDeviceRepository devices, ProfileRepository profiles) { + this.devices = devices; + this.profiles = profiles; + } + + @Transactional + public PushDeviceDto register(String username, PushDeviceDto device) throws IOException { + PushTarget target = target(device); + String id = key(target); + long now = System.currentTimeMillis(); + // Before anything is read, the account's profile row is held: a no-op + // update that answers 0 when the profile is gone and otherwise keeps + // the row locked until this commits. It settles two races. + // + // Against closing the account: Accounts.erase holds the same row + // first and deletes it before it commits, so a registration either + // runs first (and erase's cleanup then deletes the device with the + // rest) or waits, finds no profile and is refused. Without it, a + // registration authorized just before the closure could insert its + // device after erase removed the account's, leaving a device of an + // account that no longer exists and that nobody can unregister. + // + // Against itself: two devices registering at once for an account one + // short of the cap would both count the same rows in makeRoom(), both + // skip the eviction and both insert, one past the cap. Behind the hold + // the second counts after the first committed, and evicts. + if (profiles.hold(username) == 0) { + throw new ResponseStatusException(404, "No such account"); + } + // The device row itself is not locked. Two accounts registering one + // token at the same moment -- a registration of the account that + // signed out still in flight as the next one signs in -- can leave it + // with the earlier account. The app settles it: a registration that + // answers after its account signed out is sent again for the account + // signed in now, and that one, sent after the stale one committed, + // lands last (Notifications.signedIn). + PushDevice row = devices.findById(id); + if (row == null || !username.equals(row.getUsername())) { + // A device new to this account, whether its token is new or moves + // here from another account, takes a place under the cap. + makeRoom(username); + } + if (row == null) { + row = new PushDevice(); + row.setId(id); + row.setProvider(target.getProvider()); + row.setToken(target.getToken()); + fill(row, username, device, now); + devices.insert(row); + } else { + fill(row, username, device, now); + } + return new PushDeviceDto(target.getProvider(), target.getToken(), row.getPlatform()); + } + + /// Removes `username`'s devices heard from longest ago until one more fits + /// under [#MAX_PER_ACCOUNT]. + private void makeRoom(String username) { + List held = new ArrayList(devices.findByUsername(username)); + while (held.size() >= MAX_PER_ACCOUNT) { + PushDevice oldest = held.get(0); + for (PushDevice each : held) { + if (each.getUpdatedAt().isBefore(oldest.getUpdatedAt())) { + oldest = each; + } + } + devices.deleteById(oldest.getId()); + held.remove(oldest); + } + } + + /// Forgets a device, if it is this account's. Somebody else's is left alone. + @Transactional + public PushDeviceDto unregister(String username, PushDeviceDto device) throws IOException { + PushTarget target = target(device); + devices.deleteByIdAndUsername(key(target), username); + return new PushDeviceDto(target.getProvider(), target.getToken(), ""); + } + + /// Where to reach `username`: every device they registered. + @Transactional(readOnly = true) + public List targets(String username) { + return targetsOf(username); + } + + /// [#targets] for a caller already inside a transaction. + public List targetsOf(String username) { + List out = new ArrayList(); + if (username == null || username.length() == 0) { + return out; + } + for (PushDevice each : devices.findByUsername(username)) { + out.add(PushTarget.of(each.getProvider(), each.getToken())); + } + return out; + } + // end::ledge-push-devices[] + + private static void fill(PushDevice row, String username, PushDeviceDto device, long now) { + row.setUsername(username); + row.setPlatform(Text.optional(device.platform(), 32, "the platform")); + row.setUpdatedAt(Instant.ofEpochMilli(now)); + } + + /// The device as a target of the push service, which also spells its + /// provider the one way: `gcm` and `fcm` are one device. + private static PushTarget target(PushDeviceDto device) { + if (device == null) { + throw new ResponseStatusException(400, "Tell us the device"); + } + String token = Text.required(device.token(), 1024, "the device's token"); + try { + return PushTarget.of(Text.required(device.provider(), 16, "the push provider"), token); + } catch (IllegalArgumentException err) { + throw new ResponseStatusException(400, err.getMessage()); + } + } + + private static String key(PushTarget target) throws IOException { + return Ids.sha256(target.getProvider() + ":" + target.getToken()); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdNonceRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdNonceRepository.java new file mode 100644 index 00000000000..f13c4ed1aa0 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdNonceRepository.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.AdNonce; + +/// Rewarded-ad nonces already paid. +@Repository(entity = AdNonce.class, key = String.class) +public interface AdNonceRepository extends CrudRepository { + /// How many ads `username` was paid for since `since`: the daily cap. + long countByUsernameAndCreatedAtAfter(String username, Instant since); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdminActionRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdminActionRepository.java new file mode 100644 index 00000000000..1f07d959bd2 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/AdminActionRepository.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import com.codenameone.examples.ledge.domain.AdminAction; +import java.util.List; + +@Repository(entity = AdminAction.class, key = String.class) +public interface AdminActionRepository extends CrudRepository { + @Query("select a from AdminAction a order by a.createdAt desc, a.id asc") + List newest(PageRequest page); + + @Query("select a from AdminAction a where a.username = :u order by a.createdAt desc, a.id asc") + List of(@Param("u") String username, PageRequest page); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/BroadcastRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/BroadcastRepository.java new file mode 100644 index 00000000000..e2d53f19520 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/BroadcastRepository.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.Broadcast; + +/// Pushes sent from the console. +@Repository(entity = Broadcast.class, key = String.class) +public interface BroadcastRepository extends CrudRepository { + @Query("select b from Broadcast b order by b.createdAt desc, b.id asc") + List newest(PageRequest page); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/DailySeedRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/DailySeedRepository.java new file mode 100644 index 00000000000..1a8654c08d5 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/DailySeedRepository.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.DailySeed; + +/// Days an admin picked the seed for. +@Repository(entity = DailySeed.class, key = String.class) +public interface DailySeedRepository extends CrudRepository { +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FlagRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FlagRepository.java new file mode 100644 index 00000000000..d677a3c06dd --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FlagRepository.java @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.Flag; + +/// Runs held for review. +@Repository(entity = Flag.class, key = String.class) +public interface FlagRepository extends CrudRepository { + @Query("select f from Flag f where f.pending = :pending order by f.createdAt desc, f.id asc") + List inState(@Param("pending") boolean pending, PageRequest page); + + long countByPendingTrue(); + + long countByUsernameAndPendingTrue(String username); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FriendRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FriendRepository.java new file mode 100644 index 00000000000..777ec2751b4 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/FriendRepository.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.Friend; + +/// Who sees whom on the FRIENDS board. +@Repository(entity = Friend.class, key = String.class) +public interface FriendRepository extends CrudRepository { + List findByUsername(String username); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ProfileRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ProfileRepository.java new file mode 100644 index 00000000000..0ce4de86476 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ProfileRepository.java @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.Profile; + +/// The players' game data. +@Repository(entity = Profile.class, key = String.class) +public interface ProfileRepository extends CrudRepository { + /// Locks the row for the rest of the transaction; answers 0 when there is none. + @Modifying + @Query("update Profile p set p.createdAt = p.createdAt where p.username = :username") + int hold(@Param("username") String username); + + @Query("select p from Profile p where p.username like :q or p.displayName like :q " + + "order by p.lastSeen desc, p.username asc") + List search(@Param("q") String like, PageRequest page); + + @Query("select p from Profile p where p.displayName = :name order by p.username asc") + List named(@Param("name") String displayName, PageRequest page); + + @Query("select p from Profile p order by p.bestClassic desc, p.username asc") + List byBestClassic(PageRequest page); + + @Query("select count(p) from Profile p where p.lastSeen >= :since") + Long seenSince(@Param("since") Instant since); + + /// The players a broadcast reaches, a page at a time; banned players are + /// never sent anything. + @Query("select p from Profile p where p.banned = false and p.lastSeen < :seen order by p.username asc") + List audience(@Param("seen") Instant seenBefore, PageRequest page); + + /// Suspensions whose time is up, for the sweep that lifts them. + @Query("select p from Profile p where p.banned = false and p.suspendedUntil > :epoch " + + "and p.suspendedUntil <= :now") + List expired(@Param("epoch") Instant epoch, @Param("now") Instant now); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/PushDeviceRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/PushDeviceRepository.java new file mode 100644 index 00000000000..8561f475ddb --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/PushDeviceRepository.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Repository; +import com.codenameone.examples.ledge.domain.PushDevice; + +import java.util.List; + +/// The devices each account is sent notifications on. +@Repository(entity = PushDevice.class, key = String.class) +public interface PushDeviceRepository extends CrudRepository { + List findByUsername(String username); + + int deleteByUsername(String username); + + int deleteByIdAndUsername(String id, String username); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/RunTicketRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/RunTicketRepository.java new file mode 100644 index 00000000000..01ce7bca118 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/RunTicketRepository.java @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.RunTicket; + +/// Outstanding run tickets. +@Repository(entity = RunTicket.class, key = String.class) +public interface RunTicketRepository extends CrudRepository { + /// Marks a ticket used, once: answers 1 for the request that wins and 0 for + /// a second submit racing it. + @Modifying + @Query("update RunTicket t set t.used = true where t.token = :token and t.used = false") + int use(@Param("token") String token); + + int deleteByExpiresAtLessThan(Instant before); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ScoreRunRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ScoreRunRepository.java new file mode 100644 index 00000000000..a3055d0b82d --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/ScoreRunRepository.java @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Modifying; +import com.codename1.orm.repository.PageRequest; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import java.time.Instant; +import java.util.List; +import com.codenameone.examples.ledge.domain.ScoreRun; + +/// Accepted runs. +@Repository(entity = ScoreRun.class, key = String.class) +public interface ScoreRunRepository extends CrudRepository { + /// Every standing run of a mode since `since`, best first. A board keeps the + /// first row it meets per player. + @Query("select r from ScoreRun r where r.mode = :mode and r.struck = false and r.createdAt >= :since " + + "order by r.score desc, r.createdAt asc, r.id asc") + List board(@Param("mode") String mode, @Param("since") Instant since); + + @Query("select r from ScoreRun r where r.username = :u and r.struck = false order by r.createdAt asc, r.id asc") + List of(@Param("u") String username); + + @Query("select count(r) from ScoreRun r where r.createdAt >= :since") + Long since(@Param("since") Instant since); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/StorePurchaseRepository.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/StorePurchaseRepository.java new file mode 100644 index 00000000000..51267c3cf14 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/repository/StorePurchaseRepository.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.repository; + +import com.codename1.orm.repository.CrudRepository; +import com.codename1.orm.repository.Param; +import com.codename1.orm.repository.Query; +import com.codename1.orm.repository.Repository; +import com.codenameone.examples.ledge.domain.StorePurchase; +import java.time.Instant; +import java.util.List; + +@Repository(entity = StorePurchase.class, key = String.class) +public interface StorePurchaseRepository extends CrudRepository { + @Query("select s from StorePurchase s where s.username = :u order by s.createdAt desc, s.id asc") + List of(@Param("u") String username); + + @Query("select s from StorePurchase s where s.createdAt >= :since") + List since(@Param("since") Instant since); +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Boards.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Boards.java new file mode 100644 index 00000000000..3fe9fb07d96 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Boards.java @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.run; + +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.DailyDto; +import com.codenameone.examples.ledge.api.LeaderDto; +import com.codenameone.examples.ledge.domain.Friend; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.ScoreRun; +import com.codenameone.examples.ledge.repository.FriendRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +/// The leaderboards: each player's best standing run of a mode over a period. +/// +/// A board is worked out from the runs on every request rather than kept as a +/// table of bests, because WEEK and TODAY are windows a stored best cannot +/// answer, and a struck run or a benched player has to vanish from all of +/// them at once. The query walks the period's runs best first and keeps each +/// player's first, which is cheap at a sample's scale; a game with millions of +/// runs would keep a per-period best table instead. +@Component +public class Boards { + /// How many rows a board shows. + public static final int TOP = 50; + + private final ScoreRunRepository runs; + private final ProfileRepository profiles; + private final FriendRepository friends; + private final DailySeeds seeds; + + public Boards(ScoreRunRepository runs, ProfileRepository profiles, FriendRepository friends, + DailySeeds seeds) { + this.runs = runs; + this.profiles = profiles; + this.friends = friends; + this.seeds = seeds; + } + + @Transactional(readOnly = true) + public List leaderboard(String asker, String mode, String period) { + List all = board(asker, Modes.mode(mode), Modes.period(period)); + return all.size() > TOP ? new ArrayList(all.subList(0, TOP)) : all; + } + + /// Where `username` stands on the all-time board of `mode`; 0 when not on it. + @Transactional(readOnly = true) + public int rank(String username, String mode) { + for (LeaderDto row : board(username, mode, Modes.ALL)) { + if (row.me()) { + return row.rank(); + } + } + return 0; + } + + @Transactional(readOnly = true) + public DailyDto daily(String asker) throws IOException { + long now = Clock.now(); + List today = board(asker, Modes.DAILY, Modes.TODAY); + long mine = 0; + for (LeaderDto row : today) { + if (row.me()) { + mine = row.score(); + } + } + LeaderDto top = today.isEmpty() ? null : today.get(0); + return new DailyDto(Clock.date(now), seeds.seedOf(now), mine, top == null ? 0 : top.score(), + top == null ? null : top.displayName(), today.size()); + } + + /// The whole board, ranked, without the cut to [#TOP]. + List board(String asker, String mode, String period) { + long now = Clock.now(); + long since = Modes.WEEK.equals(period) ? Clock.weekOf(now) + : Modes.TODAY.equals(period) ? Clock.dayOf(now) : 0; + Set circle = null; + if (Modes.FRIENDS.equals(period)) { + circle = new HashSet(); + circle.add(asker); + for (Friend f : friends.findByUsername(asker)) { + circle.add(f.getFriend()); + } + } + Map seen = new HashMap(); + List out = new ArrayList(); + for (ScoreRun r : runs.board(mode, Instant.ofEpochMilli(since))) { + String who = r.getUsername(); + if (seen.containsKey(who) || (circle != null && !circle.contains(who))) { + continue; + } + Profile p = profiles.findById(who); + seen.put(who, p); + if (p == null || Accounts.isBenched(p)) { + continue; + } + out.add(new LeaderDto(out.size() + 1, who, p.getDisplayName(), r.getScore(), p.getQuill(), + who.equals(asker))); + } + return out; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/DailySeeds.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/DailySeeds.java new file mode 100644 index 00000000000..0fd409aab10 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/DailySeeds.java @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.run; + +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.domain.DailySeed; +import com.codenameone.examples.ledge.repository.DailySeedRepository; +import java.io.IOException; +import java.time.Instant; + +/// The seed of the daily sheet: the same for every player on a UTC day, so +/// the day's board compares like with like. +/// +/// It is a hash of the date unless an admin has picked one for that day. +/// Worked out rather than stored, so a day nobody played still has a seed and +/// two servers agree on it without talking. +@Component +public class DailySeeds { + private final DailySeedRepository overrides; + + public DailySeeds(DailySeedRepository overrides) { + this.overrides = overrides; + } + + @Transactional(readOnly = true) + public long seedOf(long millis) throws IOException { + String date = Clock.date(millis); + DailySeed picked = overrides.findById(date); + return picked != null ? picked.getSeed() : hashed(date); + } + + /// The seed a date gets when nobody picked one: the first 60 bits of the + /// SHA-256 of `ledge-daily:` and the date. Positive, so it reads the + /// same in every log. + public static long hashed(String date) throws IOException { + return Long.parseLong(Ids.sha256("ledge-daily:" + date).substring(0, 15), 16); + } + + /// Overrides today's seed. + @Transactional(rollbackFor = IOException.class) + public void pick(String admin, long seed) throws IOException { + String date = Clock.date(Clock.now()); + DailySeed row = overrides.findById(date); + boolean fresh = row == null; + if (fresh) { + row = new DailySeed(); + row.setDay(date); + } + row.setSeed(seed); + row.setSetBy(admin); + row.setCreatedAt(Instant.now()); + if (fresh) { + overrides.insert(row); + } else { + overrides.save(row); + } + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Modes.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Modes.java new file mode 100644 index 00000000000..4dc4128ed7b --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Modes.java @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.run; + +import com.codename1.backend.ResponseStatusException; + +/// The three ways to play, and the periods a board covers. +public final class Modes { + public static final String CLASSIC = "CLASSIC"; + public static final String FOLD = "FOLD"; + public static final String DAILY = "DAILY"; + + public static final String ALL = "ALL"; + public static final String WEEK = "WEEK"; + public static final String TODAY = "TODAY"; + public static final String FRIENDS = "FRIENDS"; + + private Modes() { + } + + /// `value` as one of the modes, compared without folding case by locale. + public static String mode(String value) { + String[] all = {CLASSIC, FOLD, DAILY}; + for (String m : all) { + if (m.equalsIgnoreCase(value)) { + return m; + } + } + throw new ResponseStatusException(400, "Mode is CLASSIC, FOLD or DAILY"); + } + + public static String period(String value) { + if (value == null || value.length() == 0) { + return ALL; + } + String[] all = {ALL, WEEK, TODAY, FRIENDS}; + for (String p : all) { + if (p.equalsIgnoreCase(value)) { + return p; + } + } + throw new ResponseStatusException(400, "Period is ALL, WEEK, TODAY or FRIENDS"); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/RunEndpoint.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/RunEndpoint.java new file mode 100644 index 00000000000..b8840010909 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/RunEndpoint.java @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.run; + +import com.codename1.appkit.server.Caller; +import com.codename1.backend.annotations.Component; +import com.codenameone.examples.ledge.api.DailyDto; +import com.codenameone.examples.ledge.api.LeaderDto; +import com.codenameone.examples.ledge.api.RunApiServer; +import com.codenameone.examples.ledge.api.RunDto; +import com.codenameone.examples.ledge.api.RunResultDto; +import com.codenameone.examples.ledge.api.RunTicketDto; +import com.codenameone.examples.ledge.api.StartRunDto; +import java.util.List; + +/// `RunApi` on the server. +@Component +public class RunEndpoint implements RunApiServer { + private final Runs runs; + private final Boards boards; + + public RunEndpoint(Runs runs, Boards boards) { + this.runs = runs; + this.boards = boards; + } + + @Override + public RunTicketDto start(StartRunDto request) throws Exception { + return runs.start(Caller.name(), request == null ? null : request.mode()); + } + + @Override + public RunResultDto submit(RunDto run) throws Exception { + return runs.submit(Caller.name(), run); + } + + @Override + public List leaderboard(String mode, String period) throws Exception { + return boards.leaderboard(Caller.name(), mode, period); + } + + @Override + public DailyDto daily() throws Exception { + return boards.daily(Caller.name()); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Runs.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Runs.java new file mode 100644 index 00000000000..0016a703252 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/run/Runs.java @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.run; + +import com.codename1.backend.Crypto; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Scheduled; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.Clock; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.admin.Flags; +import com.codenameone.examples.ledge.api.RunDto; +import com.codenameone.examples.ledge.api.RunResultDto; +import com.codenameone.examples.ledge.api.RunTicketDto; +import com.codenameone.examples.ledge.api.ScoreBounds; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.RunTicket; +import com.codenameone.examples.ledge.domain.ScoreRun; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.RunTicketRepository; +import com.codenameone.examples.ledge.repository.ScoreRunRepository; +import java.io.IOException; +import java.time.Instant; + +/// Tickets and results. +/// +/// The server never plays a run again (see `ScoreBounds`). What it can hold a +/// result to is that it answers a ticket this server issued, once, for the +/// mode it was issued for, and that its numbers are arithmetic the game could +/// have produced. A ticket also pins the daily's seed, so a daily result is +/// always for the sheet everybody else was dealt. +@Component +public class Runs { + /// How long a ticket stays good: longer than any run (an hour at most) + /// plus a pause and a slow network. + public static final long TICKET_MILLIS = 2L * 60 * 60 * 1000; + /// Ink coins per run: a coin per thousand points, at most this many. + public static final int MAX_COINS = 100; + /// Extra coins for playing the daily. + public static final int DAILY_BONUS = 5; + + private final RunTicketRepository tickets; + private final ScoreRunRepository runs; + private final ProfileRepository profiles; + private final DailySeeds seeds; + private final Boards boards; + private final Flags flags; + + public Runs(RunTicketRepository tickets, ScoreRunRepository runs, ProfileRepository profiles, + DailySeeds seeds, Boards boards, Flags flags) { + this.tickets = tickets; + this.runs = runs; + this.profiles = profiles; + this.seeds = seeds; + this.boards = boards; + this.flags = flags; + } + + @Transactional(rollbackFor = IOException.class) + public RunTicketDto start(String username, String mode) throws IOException { + String m = Modes.mode(mode); + long now = Clock.now(); + RunTicket t = new RunTicket(); + t.setToken(Ids.next()); + t.setUsername(username); + t.setMode(m); + t.setSeed(Modes.DAILY.equals(m) ? seeds.seedOf(now) : randomSeed()); + t.setExpiresAt(Instant.ofEpochMilli(now + TICKET_MILLIS)); + tickets.insert(t); + return new RunTicketDto(t.getToken(), m, t.getSeed(), t.getExpiresAt().toEpochMilli()); + } + + private static long randomSeed() throws IOException { + byte[] b = Crypto.randomBytes(8); + long seed = 0; + for (int i = 0; i < 8; i++) { + seed = (seed << 8) | (b[i] & 0xff); + } + return seed; + } + + /// Takes a finished run. A refusal for a reason the player can do nothing + /// about (a stale or reused ticket) is a 4xx; a run past `ScoreBounds` is + /// answered `accepted=false` with the reason, because the app shows it. + @Transactional(rollbackFor = IOException.class) + public RunResultDto submit(String username, RunDto run) throws IOException { + if (run == null || run.token() == null) { + throw new ResponseStatusException(400, "No run"); + } + RunTicket t = tickets.findById(run.token()); + if (t == null || !t.getUsername().equals(username)) { + throw new ResponseStatusException(404, "Unknown ticket"); + } + if (t.isUsed()) { + throw new ResponseStatusException(409, "That ticket was already used"); + } + if (t.getExpiresAt().toEpochMilli() < Clock.now()) { + throw new ResponseStatusException(410, "That ticket has expired"); + } + if (!t.getMode().equalsIgnoreCase(run.mode())) { + throw new ResponseStatusException(400, "That ticket is for " + t.getMode()); + } + // Spent before anything else, and by a conditional update, so a second + // submit racing this one finds it used even before this commits. + if (tickets.use(t.getToken()) == 0) { + throw new ResponseStatusException(409, "That ticket was already used"); + } + // The run cannot have lasted longer than the ticket has existed: the + // seconds the client claims are what every bound below scales with. + long issued = t.getExpiresAt().toEpochMilli() - TICKET_MILLIS; + long elapsed = (Clock.now() - issued) / 1000 + 5; + if (run.seconds() > elapsed) { + return new RunResultDto(false, false, false, best(profile(username), t.getMode()), 0, 0, + "That run claims " + run.seconds() + " seconds, but it started " + elapsed + " seconds ago"); + } + int cuts = Math.max(0, run.kills()) + Math.max(0, run.gates()); + if (!ScoreBounds.possible(run.score(), cuts, run.seconds()) + || run.peakMultiplier() > ScoreBounds.MAX_MULTIPLIER) { + return new RunResultDto(false, false, false, best(profile(username), t.getMode()), 0, 0, + "That score is not possible in " + run.seconds() + " seconds with " + cuts + " cuts"); + } + return accept(username, t.getMode(), run, Clock.now()); + } + + /// Stores an accepted run and pays for it. Also how the demo data is + /// written, with a `when` in the past. + @Transactional(rollbackFor = IOException.class) + public RunResultDto accept(String username, String mode, RunDto run, long when) throws IOException { + if (profiles.hold(username) == 0) { + throw new ResponseStatusException(404, "No such account"); + } + Profile p = profile(username); + ScoreRun r = new ScoreRun(); + r.setId(Ids.next()); + r.setUsername(username); + r.setMode(mode); + r.setScore(run.score()); + r.setKills(run.kills()); + r.setGates(run.gates()); + r.setSeconds(run.seconds()); + r.setPeakMultiplier(run.peakMultiplier()); + r.setDay(Clock.dayOf(when)); + r.setCreatedAt(Instant.ofEpochMilli(when)); + runs.insert(r); + long before = best(p, mode); + boolean newBest = run.score() > before; + if (newBest) { + setBest(p, mode, run.score()); + } + int coins = (int) Math.min(MAX_COINS, run.score() / 1000) + (Modes.DAILY.equals(mode) ? DAILY_BONUS : 0); + p.setInkCoins(p.getInkCoins() + coins); + p.setRuns(p.getRuns() + 1); + p.setLastSeen(Instant.ofEpochMilli(Math.max(when, p.getLastSeen().toEpochMilli()))); + boolean flagged = ScoreBounds.suspicious(run.score(), run.seconds()); + if (flagged) { + p.setFlagged(true); + } + profiles.save(p); + if (flagged) { + flags.file(p, r, "More than " + ScoreBounds.SUSPICIOUS_PER_SECOND + " points a second"); + } + return new RunResultDto(true, flagged, newBest, Math.max(before, run.score()), + boards.rank(username, mode), coins, newBest ? "New best!" : "Run saved"); + } + + /// Works a player's three bests out again from their standing runs, after + /// an admin struck some. + @Transactional(rollbackFor = IOException.class) + public void recomputeBests(String username) { + Profile p = profile(username); + p.setBestClassic(0); + p.setBestFold(0); + p.setBestDaily(0); + for (ScoreRun r : runs.of(username)) { + if (r.getScore() > best(p, r.getMode())) { + setBest(p, r.getMode(), r.getScore()); + } + } + profiles.save(p); + } + + /// Clears the tickets nobody came back for. + @Scheduled(fixedDelay = 600000, initialDelay = 600000) + @Transactional + public void sweep() throws IOException { + tickets.deleteByExpiresAtLessThan(Instant.ofEpochMilli(Clock.now() - Clock.DAY)); + } + + static long best(Profile p, String mode) { + return Modes.CLASSIC.equals(mode) ? p.getBestClassic() + : Modes.FOLD.equals(mode) ? p.getBestFold() : p.getBestDaily(); + } + + private static void setBest(Profile p, String mode, long score) { + if (Modes.CLASSIC.equals(mode)) { + p.setBestClassic(score); + } else if (Modes.FOLD.equals(mode)) { + p.setBestFold(score); + } else { + p.setBestDaily(score); + } + } + + private Profile profile(String username) { + Profile p = profiles.findById(username); + if (p == null) { + throw new ResponseStatusException(404, "No such account"); + } + return p; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Catalog.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Catalog.java new file mode 100644 index 00000000000..3da28c45722 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Catalog.java @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import com.codenameone.examples.ledge.api.ShopItemDto; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/// What the shop sells. Fixed in code rather than in a table: prices are part +/// of a release, and a catalogue the console could edit is a feature this +/// sample does not need. +public final class Catalog { + public static final String QUILL = "QUILL"; + public static final String ERASERS = "ERASERS"; + public static final String COINS = "COINS"; + + /// The paper every player owns from the start. + public static final String FREE_QUILL = "quill-white"; + /// The consumable: two spare erasers for the next run. + public static final String ERASERS_ITEM = "erasers-2"; + public static final int ERASERS_PER_PACK = 2; + + private static final List ITEMS; + + static { + List items = new ArrayList(); + items.add(new ShopItemDto(FREE_QUILL, "White Bond", QUILL, 0, null, "#f7f4ec")); + items.add(new ShopItemDto("quill-kraft", "Kraft", QUILL, 150, null, "#c49a6c")); + items.add(new ShopItemDto("quill-newsprint", "Newsprint", QUILL, 250, null, "#d9d6cf")); + items.add(new ShopItemDto("quill-origami-red", "Origami Red", QUILL, 400, null, "#d7263d")); + items.add(new ShopItemDto("quill-blueprint", "Blueprint", QUILL, 600, null, "#1f4e8c")); + items.add(new ShopItemDto("quill-gold-foil", "Gold Foil", QUILL, 1200, null, "#d4af37")); + items.add(new ShopItemDto(ERASERS_ITEM, "Two Spare Erasers", ERASERS, 40, null, null)); + items.add(new ShopItemDto("coins-small", "Pocket of Ink", COINS, 0, "ledge.coins.small", null)); + items.add(new ShopItemDto("coins-large", "Inkwell", COINS, 0, "ledge.coins.large", null)); + ITEMS = Collections.unmodifiableList(items); + } + + private Catalog() { + } + + public static List items() { + return ITEMS; + } + + public static ShopItemDto byId(String id) { + for (ShopItemDto item : ITEMS) { + if (item.id().equals(id)) { + return item; + } + } + return null; + } + + public static ShopItemDto bySku(String sku) { + for (ShopItemDto item : ITEMS) { + if (item.sku() != null && item.sku().equals(sku)) { + return item; + } + } + return null; + } + + /// The ink coins a store pack grants. + public static int coins(ShopItemDto item) { + if ("ledge.coins.small".equals(item.sku())) { + return 500; + } + if ("ledge.coins.large".equals(item.sku())) { + return 3000; + } + return 0; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/MisconfiguredReceipts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/MisconfiguredReceipts.java new file mode 100644 index 00000000000..92a4521756f --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/MisconfiguredReceipts.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import com.codename1.backend.ResponseStatusException; + +/// Stands in when the store settings are missing, so the server still starts and +/// says what is wrong instead of granting purchases it cannot check. +public class MisconfiguredReceipts implements ReceiptValidator { + private final String problem; + + public MisconfiguredReceipts(String problem) { + this.problem = problem; + System.err.println("[config] " + problem); + } + + @Override + public String verify(String store, String sku, String transactionId, String receipt) { + throw new ResponseStatusException(503, "Purchases are not available right now"); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ReceiptValidator.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ReceiptValidator.java new file mode 100644 index 00000000000..3b9cac7c31d --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ReceiptValidator.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import java.io.IOException; + +/// Asks a store whether a purchase is real. The server grants nothing on the +/// app's word: a modified client can claim any purchase it likes. +// tag::ledge-receipt-validator[] +public interface ReceiptValidator { + /// The store's transaction id when `receipt` proves a purchase of `sku`, or + /// null when it does not. + String verify(String store, String sku, String transactionId, String receipt) throws IOException; +} +// end::ledge-receipt-validator[] diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Shop.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Shop.java new file mode 100644 index 00000000000..46626e8f540 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/Shop.java @@ -0,0 +1,212 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import com.codename1.appkit.server.Text; +import com.codename1.backend.ResponseStatusException; +import com.codename1.backend.annotations.Component; +import com.codename1.backend.annotations.Transactional; +import com.codenameone.examples.ledge.Ids; +import com.codenameone.examples.ledge.account.Lists; +import com.codenameone.examples.ledge.api.AdRewardDto; +import com.codenameone.examples.ledge.api.ReceiptDto; +import com.codenameone.examples.ledge.api.ShopItemDto; +import com.codenameone.examples.ledge.api.WalletDto; +import com.codenameone.examples.ledge.domain.AdNonce; +import com.codenameone.examples.ledge.domain.Profile; +import com.codenameone.examples.ledge.domain.StorePurchase; +import com.codenameone.examples.ledge.repository.AdNonceRepository; +import com.codenameone.examples.ledge.repository.ProfileRepository; +import com.codenameone.examples.ledge.repository.StorePurchaseRepository; +import java.io.IOException; +import com.codenameone.examples.ledge.Clock; +import java.time.Instant; + +/// The wallet. Every change takes the profile row's lock first, so two taps +/// on "buy" cannot both spend the same coins. +@Component +public class Shop { + /// What one watched rewarded ad pays. + public static final int AD_REWARD = 15; + /// Rewarded ads paid per account per UTC day. The nonce is the client's, + /// so it proves nothing by itself: without a server-to-server callback + /// from a real ad network, this cap (and the route's rate limit) is what + /// bounds the coins a modified client can mint -- a few hundred a day, + /// less than a single coin pack. A fork wiring a real network should + /// grant from that network's verification callback instead. + public static final int AD_REWARDS_PER_DAY = 10; + + private final ProfileRepository profiles; + private final StorePurchaseRepository purchases; + private final AdNonceRepository nonces; + private final ReceiptValidator validator; + + public Shop(ProfileRepository profiles, StorePurchaseRepository purchases, AdNonceRepository nonces, + ReceiptValidator validator) { + this.profiles = profiles; + this.purchases = purchases; + this.nonces = nonces; + this.validator = validator; + } + + @Transactional(readOnly = true) + public WalletDto wallet(String username) { + return toDto(profile(username)); + } + + /// Buys a paper (once) or a pack of spare erasers (any number of times). + @Transactional(rollbackFor = IOException.class) + public WalletDto buy(String username, String itemId) throws IOException { + ShopItemDto item = Catalog.byId(itemId == null ? "" : itemId); + if (item == null || Catalog.COINS.equals(item.kind())) { + // Coin packs cost real money and only come through a receipt. + throw new ResponseStatusException(404, "No such item"); + } + hold(username); + Profile p = profile(username); + if (Catalog.QUILL.equals(item.kind()) && Lists.contains(p.getOwned(), item.id())) { + throw new ResponseStatusException(409, "You already own that paper"); + } + if (p.getInkCoins() < item.priceCoins()) { + throw new ResponseStatusException(402, "Not enough ink coins"); + } + p.setInkCoins(p.getInkCoins() - item.priceCoins()); + if (Catalog.QUILL.equals(item.kind())) { + p.setOwned(p.getOwned().length() == 0 ? item.id() : p.getOwned() + "," + item.id()); + } else { + p.setErasers(p.getErasers() + Catalog.ERASERS_PER_PACK); + } + profiles.save(p); + return toDto(p); + } + + @Transactional(rollbackFor = IOException.class) + public WalletDto equip(String username, String quill) throws IOException { + hold(username); + Profile p = profile(username); + if (quill == null || !Lists.contains(p.getOwned(), quill)) { + throw new ResponseStatusException(403, "You do not own that paper"); + } + p.setQuill(quill); + profiles.save(p); + return toDto(p); + } + + /// Spends every spare eraser, at the start of a run that takes them. + @Transactional(rollbackFor = IOException.class) + public WalletDto useErasers(String username) throws IOException { + hold(username); + Profile p = profile(username); + p.setErasers(0); + profiles.save(p); + return toDto(p); + } + + /// Grants a store purchase once its receipt checks out. The key is the + /// hash of the store's transaction id, so replaying a receipt -- the app + /// retrying after a lost answer -- grants nothing a second time. + public WalletDto receipt(String username, ReceiptDto receipt) throws IOException { + if (receipt == null) { + throw new ResponseStatusException(400, "No receipt"); + } + String store = Text.oneOf(receipt.store(), new String[] {"itunes", "play", "simulator"}, "", + "the store"); + ShopItemDto item = Catalog.bySku(receipt.sku()); + if (item == null) { + throw new ResponseStatusException(404, "Unknown product"); + } + String transaction = validator.verify(store, receipt.sku(), + Text.optional(receipt.transactionId(), 190, "the transaction"), receipt.receipt()); + if (transaction == null) { + throw new ResponseStatusException(402, "The store did not confirm this purchase"); + } + return redeem(username, store, item, transaction); + } + + @Transactional(rollbackFor = IOException.class) + WalletDto redeem(String username, String store, ShopItemDto item, String transaction) throws IOException { + hold(username); + Profile p = profile(username); + String key = Ids.sha256(transaction); + StorePurchase seen = purchases.findById(key); + if (seen != null) { + if (!seen.getUsername().equals(username)) { + throw new ResponseStatusException(409, "That purchase belongs to another account"); + } + return toDto(p); + } + StorePurchase row = new StorePurchase(); + row.setId(key); + row.setUsername(username); + row.setStore(store); + row.setSku(item.sku()); + int coins = Catalog.coins(item); + row.setCoins(coins); + row.setCreatedAt(Instant.now()); + purchases.insert(row); + p.setInkCoins(p.getInkCoins() + coins); + profiles.save(p); + return toDto(p); + } + + /// Pays for a watched rewarded ad: each nonce once, and at most + /// [#AD_REWARDS_PER_DAY] a day. + @Transactional(rollbackFor = IOException.class) + public WalletDto adReward(String username, AdRewardDto reward) throws IOException { + String nonce = Text.required(reward == null ? null : reward.nonce(), 190, "the ad nonce"); + hold(username); + Profile p = profile(username); + String key = Ids.sha256(nonce); + if (nonces.findById(key) != null) { + throw new ResponseStatusException(409, "That ad was already rewarded"); + } + long dayStart = Clock.now() / 86400000L * 86400000L; + if (nonces.countByUsernameAndCreatedAtAfter(username, Instant.ofEpochMilli(dayStart)) + >= AD_REWARDS_PER_DAY) { + throw new ResponseStatusException(429, "That's all the ads for today"); + } + AdNonce row = new AdNonce(); + row.setId(key); + row.setUsername(username); + row.setCreatedAt(Instant.now()); + nonces.insert(row); + p.setInkCoins(p.getInkCoins() + AD_REWARD); + profiles.save(p); + return toDto(p); + } + + /// The wallet as the app sees it. + public static WalletDto toDto(Profile p) { + return new WalletDto(p.getInkCoins(), p.getErasers(), Lists.split(p.getOwned()), p.getQuill()); + } + + private void hold(String username) { + if (profiles.hold(username) == 0) { + throw new ResponseStatusException(404, "No such account"); + } + } + + private Profile profile(String username) { + Profile p = profiles.findById(username); + if (p == null) { + throw new ResponseStatusException(404, "No such account"); + } + return p; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ShopEndpoint.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ShopEndpoint.java new file mode 100644 index 00000000000..6d9893661ba --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/ShopEndpoint.java @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import com.codename1.appkit.server.Caller; +import com.codename1.backend.annotations.Component; +import com.codenameone.examples.ledge.api.AdRewardDto; +import com.codenameone.examples.ledge.api.BuyDto; +import com.codenameone.examples.ledge.api.EquipDto; +import com.codenameone.examples.ledge.api.ReceiptDto; +import com.codenameone.examples.ledge.api.ShopApiServer; +import com.codenameone.examples.ledge.api.ShopItemDto; +import com.codenameone.examples.ledge.api.WalletDto; +import java.util.List; + +/// `ShopApi` on the server. +@Component +public class ShopEndpoint implements ShopApiServer { + private final Shop shop; + + public ShopEndpoint(Shop shop) { + this.shop = shop; + } + + @Override + public List items() throws Exception { + return Catalog.items(); + } + + @Override + public WalletDto wallet() throws Exception { + return shop.wallet(Caller.name()); + } + + @Override + public WalletDto buy(BuyDto item) throws Exception { + return shop.buy(Caller.name(), item == null ? null : item.itemId()); + } + + @Override + public WalletDto equip(EquipDto quill) throws Exception { + return shop.equip(Caller.name(), quill == null ? null : quill.quill()); + } + + @Override + public WalletDto receipt(ReceiptDto receipt) throws Exception { + return shop.receipt(Caller.name(), receipt); + } + + @Override + public WalletDto adReward(AdRewardDto reward) throws Exception { + return shop.adReward(Caller.name(), reward); + } + + @Override + public WalletDto useErasers() throws Exception { + return shop.useErasers(Caller.name()); + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/SimulatedReceipts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/SimulatedReceipts.java new file mode 100644 index 00000000000..bf053498e7c --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/SimulatedReceipts.java @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +/// Development and tests: accepts the receipts the simulator's store produces, +/// which carry no signature to check. Refused outside development profiles. +public class SimulatedReceipts implements ReceiptValidator { + @Override + public String verify(String store, String sku, String transactionId, String receipt) { + if (transactionId == null || transactionId.length() == 0 || sku == null) { + return null; + } + return "sim:" + transactionId; + } +} diff --git a/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/StoreReceipts.java b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/StoreReceipts.java new file mode 100644 index 00000000000..a6a39205637 --- /dev/null +++ b/scripts/ledge/backend/src/main/java/com/codenameone/examples/ledge/shop/StoreReceipts.java @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.shop; + +import com.codename1.backend.Json; +import com.codename1.backend.Web; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/// Verifies receipts with the stores themselves. +/// +/// - Apple: the receipt is posted to `verifyReceipt` with the app's shared +/// secret; a sandbox receipt (status 21007) is retried against the sandbox. +/// Apple now recommends the App Store Server API for new code; this endpoint +/// still answers, and keeps the sample free of a signing-key setup. Swap the +/// method for a call to `/inApps/v1/transactions/{id}` when you outgrow it. +/// - Google Play: the purchase token is checked with the Play Developer API, +/// authorized by an OAuth access token for a service account with the +/// "View financial data" permission (`ledge.iap.google.token`). Minting +/// that token from the service account key is left to your deployment. +// tag::ledge-store-receipts[] +public class StoreReceipts implements ReceiptValidator { + static final String APPLE_PRODUCTION = "https://buy.itunes.apple.com/verifyReceipt"; + static final String APPLE_SANDBOX = "https://sandbox.itunes.apple.com/verifyReceipt"; + + private final String appleSecret; + private final String appleBundle; + private final String googlePackage; + private final String googleToken; + + public StoreReceipts(String appleSecret, String appleBundle, String googlePackage, String googleToken) { + this.appleSecret = appleSecret; + this.appleBundle = appleBundle; + this.googlePackage = googlePackage; + this.googleToken = googleToken; + } + + @Override + public String verify(String store, String sku, String transactionId, String receipt) throws IOException { + if ("itunes".equals(store)) { + return apple(sku, transactionId, receipt); + } + if ("play".equals(store)) { + return google(sku, receipt); + } + return null; + } + + private String apple(String sku, String transactionId, String receipt) throws IOException { + if (appleSecret.length() == 0) { + return null; + } + String body = "{\"receipt-data\":" + Json.write(receipt) + ",\"password\":" + Json.write(appleSecret) + + ",\"exclude-old-transactions\":true}"; + Map answer = Json.parseObject(Web.postJson(APPLE_PRODUCTION, body, null).getBodyAsString()); + if (answer.get("status") instanceof Number && ((Number) answer.get("status")).intValue() == 21007) { + answer = Json.parseObject(Web.postJson(APPLE_SANDBOX, body, null).getBodyAsString()); + } + if (!(answer.get("status") instanceof Number) || ((Number) answer.get("status")).intValue() != 0) { + return null; + } + Object r = answer.get("receipt"); + // A receipt is only good for the app it was issued to. + if (!(r instanceof Map) || !appleBundle.equals(((Map) r).get("bundle_id"))) { + return null; + } + Object inApp = r instanceof Map ? ((Map) r).get("in_app") : null; + if (!(inApp instanceof List)) { + return null; + } + for (Object each : (List) inApp) { + if (each instanceof Map) { + Map t = (Map) each; + if (sku.equals(t.get("product_id")) && transactionId != null + && transactionId.equals(t.get("transaction_id"))) { + return "itunes:" + transactionId; + } + } + } + return null; + } + + private String google(String sku, String purchaseToken) throws IOException { + if (googleToken.length() == 0 || googlePackage.length() == 0 || purchaseToken == null) { + return null; + } + // The token and the SKU come from the client: anything but the + // characters Play uses would change which resource the request reads. + if (!pathSafe(sku) || !pathSafe(purchaseToken)) { + return null; + } + String url = "https://androidpublisher.googleapis.com/androidpublisher/v3/applications/" + + googlePackage + "/purchases/products/" + sku + "/tokens/" + purchaseToken; + Web.Result answer = Web.getJson(url, googleToken); + if (!answer.isSuccess()) { + return null; + } + Map purchase = Json.parseObject(answer.getBodyAsString()); + Object state = purchase.get("purchaseState"); + Object order = purchase.get("orderId"); + if (!(state instanceof Number) || ((Number) state).intValue() != 0 || !(order instanceof String)) { + return null; + } + return "play:" + order; + } + + private static boolean pathSafe(String s) { + if (s == null || s.length() == 0 || s.length() > 512) { + return false; + } + for (int i = 0; i < s.length(); i++) { + char c = s.charAt(i); + if (!(c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' + || c == '.' || c == '_' || c == '-')) { + return false; + } + } + return !s.contains(".."); + } +} +// end::ledge-store-receipts[] diff --git a/scripts/ledge/backend/src/main/resources/db/migration/V1__game.sql b/scripts/ledge/backend/src/main/resources/db/migration/V1__game.sql new file mode 100644 index 00000000000..8ad2c2be547 --- /dev/null +++ b/scripts/ledge/backend/src/main/resources/db/migration/V1__game.sql @@ -0,0 +1,124 @@ +-- The tables every database shares. Portable SQL only: no generated keys, no +-- native boolean (a yes/no is a SMALLINT 0/1), times are epoch milliseconds. +-- Pushes, purchases and the audit log are at the end. + +CREATE TABLE profile ( + username VARCHAR(190) NOT NULL PRIMARY KEY, + display_name VARCHAR(40) NOT NULL, + ink_coins INTEGER NOT NULL, + erasers INTEGER NOT NULL, + best_classic BIGINT NOT NULL, + best_fold BIGINT NOT NULL, + best_daily BIGINT NOT NULL, + runs INTEGER NOT NULL, + quill VARCHAR(40) NOT NULL, + owned VARCHAR(1000) NOT NULL, + flagged SMALLINT NOT NULL, + suspended_until BIGINT NOT NULL, + banned SMALLINT NOT NULL, + created_at BIGINT NOT NULL, + last_seen BIGINT NOT NULL +); +CREATE INDEX profile_best_classic ON profile (best_classic); + +CREATE TABLE score_run ( + id VARCHAR(32) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + mode VARCHAR(16) NOT NULL, + score BIGINT NOT NULL, + kills INTEGER NOT NULL, + gates INTEGER NOT NULL, + seconds INTEGER NOT NULL, + peak_multiplier INTEGER NOT NULL, + day BIGINT NOT NULL, + created_at BIGINT NOT NULL, + struck SMALLINT NOT NULL +); +CREATE INDEX score_run_board ON score_run (mode, created_at); +CREATE INDEX score_run_username ON score_run (username, created_at); + +CREATE TABLE run_ticket ( + token VARCHAR(64) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + mode VARCHAR(16) NOT NULL, + seed BIGINT NOT NULL, + expires_at BIGINT NOT NULL, + used SMALLINT NOT NULL +); +CREATE INDEX run_ticket_expires ON run_ticket (expires_at); + +CREATE TABLE flag ( + id VARCHAR(32) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + run_id VARCHAR(32) NOT NULL, + mode VARCHAR(16) NOT NULL, + score BIGINT NOT NULL, + kills INTEGER NOT NULL, + seconds INTEGER NOT NULL, + reason VARCHAR(255) NOT NULL, + created_at BIGINT NOT NULL, + pending SMALLINT NOT NULL, + resolved_by VARCHAR(190) NOT NULL +); +CREATE INDEX flag_pending ON flag (pending, created_at); +CREATE INDEX flag_username ON flag (username); + +CREATE TABLE friend ( + id VARCHAR(64) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + friend VARCHAR(190) NOT NULL, + created_at BIGINT NOT NULL +); +CREATE INDEX friend_username ON friend (username); + +CREATE TABLE daily_seed ( + day VARCHAR(10) NOT NULL PRIMARY KEY, + seed BIGINT NOT NULL, + set_by VARCHAR(190) NOT NULL, + created_at BIGINT NOT NULL +); + +CREATE TABLE ad_nonce ( + id VARCHAR(64) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + created_at BIGINT NOT NULL +); + +CREATE TABLE broadcast ( + id VARCHAR(32) NOT NULL PRIMARY KEY, + title VARCHAR(80) NOT NULL, + body VARCHAR(255) NOT NULL, + days INTEGER NOT NULL, + targets INTEGER NOT NULL, + created_at BIGINT NOT NULL +); + +CREATE TABLE push_device ( + id VARCHAR(64) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + provider VARCHAR(16) NOT NULL, + token VARCHAR(1024) NOT NULL, + platform VARCHAR(32) NOT NULL, + updated_at BIGINT NOT NULL +); +CREATE INDEX push_device_username ON push_device (username); + +CREATE TABLE store_purchase ( + id VARCHAR(64) NOT NULL PRIMARY KEY, + username VARCHAR(190) NOT NULL, + store VARCHAR(16) NOT NULL, + sku VARCHAR(64) NOT NULL, + coins INTEGER NOT NULL, + created_at BIGINT NOT NULL +); +CREATE INDEX store_purchase_username ON store_purchase (username); + +CREATE TABLE admin_action ( + id VARCHAR(32) NOT NULL PRIMARY KEY, + admin VARCHAR(190) NOT NULL, + username VARCHAR(190) NOT NULL, + action VARCHAR(24) NOT NULL, + reason VARCHAR(255) NOT NULL, + created_at BIGINT NOT NULL +); +CREATE INDEX admin_action_created ON admin_action (created_at); diff --git a/scripts/ledge/backend/src/main/resources/db/migration/mysql/V2__collation.sql b/scripts/ledge/backend/src/main/resources/db/migration/mysql/V2__collation.sql new file mode 100644 index 00000000000..396f3f8ed07 --- /dev/null +++ b/scripts/ledge/backend/src/main/resources/db/migration/mysql/V2__collation.sql @@ -0,0 +1,14 @@ +-- Usernames and display names compare exactly, the way they do on the other +-- databases: binary and NO PAD, never MySQL's case-insensitive default. +ALTER DATABASE CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE profile CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE score_run CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE run_ticket CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE flag CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE friend CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE daily_seed CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE ad_nonce CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE broadcast CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE push_device CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE store_purchase CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; +ALTER TABLE admin_action CONVERT TO CHARACTER SET utf8mb4 COLLATE /*!80000 utf8mb4_0900_bin */ /*M!100400 utf8mb4_nopad_bin */; diff --git a/scripts/ledge/backend/src/main/resources/db/migration/postgresql/V2__collation.sql b/scripts/ledge/backend/src/main/resources/db/migration/postgresql/V2__collation.sql new file mode 100644 index 00000000000..3041cad68a7 --- /dev/null +++ b/scripts/ledge/backend/src/main/resources/db/migration/postgresql/V2__collation.sql @@ -0,0 +1,2 @@ +-- Text is already case sensitive here; see mysql/V2__collation.sql. +SELECT 1; diff --git a/scripts/ledge/backend/src/main/resources/db/migration/sqlite/V2__collation.sql b/scripts/ledge/backend/src/main/resources/db/migration/sqlite/V2__collation.sql new file mode 100644 index 00000000000..d13b0e7e144 --- /dev/null +++ b/scripts/ledge/backend/src/main/resources/db/migration/sqlite/V2__collation.sql @@ -0,0 +1,2 @@ +-- Text is already case sensitive and NO PAD here; see mysql/V2__collation.sql. +SELECT 1; diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AccountTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AccountTest.java new file mode 100644 index 00000000000..9291439bc8a --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AccountTest.java @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/// Registration, the signed-in player and the profile. +@BackendTest +class AccountTest { + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + + @Test + void aNewPlayerStartsWithTheFreePaperAndCanRenameThemselves() throws Exception { + String who = Api.player(accounts, "newcomer"); + Map me = Api.json(mvc, Api.as(get("/api/me"), who)); + assertEquals("newcomer", me.get("displayName")); + assertEquals((long) Accounts.START_COINS, Api.number(me, "inkCoins")); + assertEquals("quill-white", me.get("quill")); + assertFalse((Boolean) me.get("admin")); + Map renamed = Api.json(mvc, Api.as(Api.body(post("/api/me/profile"), + "{\"displayName\":\"Fresh Sheet\"}"), who)); + assertEquals("Fresh Sheet", renamed.get("displayName")); + // A paper nobody bought cannot be equipped through the profile either. + assertEquals(403, Api.statusOf(mvc, Api.as(Api.body(post("/api/me/profile"), + "{\"quill\":\"quill-gold-foil\"}"), who))); + } + + @Test + void anAddressRegistersOnceAndBadInputIsRefused() throws Exception { + String body = "{\"email\":\"Twice@Test.example\",\"password\":\"long-enough\",\"displayName\":\"Twice\"}"; + Map first = Api.json(mvc, Api.body(post("/api/account/register"), body)); + assertEquals("twice@test.example", first.get("username")); + assertEquals(409, Api.statusOf(mvc, Api.body(post("/api/account/register"), body))); + assertEquals(400, Api.statusOf(mvc, Api.body(post("/api/account/register"), + "{\"email\":\"nope\",\"password\":\"long-enough\",\"displayName\":\"Nope\"}"))); + assertEquals(400, Api.statusOf(mvc, Api.body(post("/api/account/register"), + "{\"email\":\"short@test.example\",\"password\":\"x\",\"displayName\":\"Short\"}"))); + } + + @Test + void theDemoFieldIsSeeded() throws Exception { + assertTrue(accounts.exists("player@ledge.example")); + assertTrue(accounts.isAdmin("admin@ledge.example")); + Map trouble = Api.json(mvc, Api.as(get("/api/me"), "trouble@ledge.example")); + assertTrue((Boolean) trouble.get("flagged")); + List board = Api.list(mvc, Api.as(get("/api/leaderboard?mode=FOLD&period=TODAY"), + "player@ledge.example")); + assertFalse(board.isEmpty()); + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AdminTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AdminTest.java new file mode 100644 index 00000000000..9888bf665d7 --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/AdminTest.java @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/// The console: every route is ADMIN-only, every action lands in the audit +/// log, and REMOVE on a flag takes the run off the boards. +@BackendTest +class AdminTest { + private static final String ADMIN = "admin@ledge.example"; + + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + + @Test + void everyRouteNeedsTheAdminRole() throws Exception { + String who = Api.player(accounts, "nosy"); + assertEquals(403, Api.statusOf(mvc, Api.as(get("/api/admin/stats"), who))); + assertEquals(403, Api.statusOf(mvc, Api.as(get("/api/admin/audit"), who))); + assertEquals(403, Api.statusOf(mvc, Api.as(Api.body(post("/api/admin/players/" + who + "/action"), + "{\"action\":\"BAN\",\"reason\":\"me\",\"days\":0}"), who))); + assertEquals(403, Api.statusOf(mvc, Api.as(Api.body(post("/api/admin/daily"), "{\"seed\":1}"), who))); + Map stats = Api.json(mvc, Api.asAdmin(get("/api/admin/stats"), ADMIN)); + assertTrue(Api.number(stats, "players") >= 19); + assertTrue(Api.number(stats, "flagsOpen") >= 1); + assertFalse(Api.list(mvc, Api.asAdmin(get("/api/admin/players?q=ledge"), ADMIN)).isEmpty()); + } + + @Test + void aBanTakesAPlayerOffTheBoardsAndIsAudited() throws Exception { + String who = Api.player(accounts, "banned"); + Api.submit(mvc, who, "CLASSIC", 12345678, 3600); + assertEquals(who, top("CLASSIC", "TODAY", who)); + Map banned = Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/players/" + who + "/action"), + "{\"action\":\"BAN\",\"reason\":\"test ban\",\"days\":0}"), ADMIN)); + assertTrue((Boolean) banned.get("suspended")); + assertFalse(who.equals(top("CLASSIC", "TODAY", "player@ledge.example"))); + assertTrue(audited(who, "BAN")); + Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/players/" + who + "/action"), + "{\"action\":\"UNBAN\",\"reason\":\"appeal\",\"days\":0}"), ADMIN)); + assertEquals(who, top("CLASSIC", "TODAY", "player@ledge.example")); + Map reset = Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/players/" + who + "/action"), + "{\"action\":\"RESET_SCORES\",\"reason\":\"start over\",\"days\":0}"), ADMIN)); + assertEquals(0L, Api.number(reset, "bestClassic")); + assertFalse(who.equals(top("CLASSIC", "TODAY", "player@ledge.example"))); + assertTrue(audited(who, "RESET_SCORES")); + } + + @Test + void removingAFlaggedRunStrikesItAndRecomputesTheBest() throws Exception { + String who = Api.player(accounts, "suspect"); + Api.submit(mvc, who, "FOLD", 4000, 60); + Map odd = Api.played(mvc, who, "FOLD", 900000, 300, 10, 60, 20); + assertTrue((Boolean) odd.get("flagged")); + String flag = null; + for (Object f : Api.list(mvc, Api.asAdmin(get("/api/admin/flags?open=true"), ADMIN))) { + if (who.equals(((Map) f).get("username"))) { + flag = (String) ((Map) f).get("id"); + } + } + assertTrue(flag != null); + Map closed = Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/flags/" + flag + "/resolve"), + "{\"verdict\":\"REMOVE\"}"), ADMIN)); + assertFalse((Boolean) closed.get("open")); + Map me = Api.json(mvc, Api.as(get("/api/me"), who)); + assertEquals(4000L, Api.number(me, "bestFold")); + assertFalse((Boolean) me.get("flagged")); + for (Object row : Api.list(mvc, Api.as(get("/api/leaderboard?mode=FOLD&period=ALL"), who))) { + if (who.equals(((Map) row).get("username"))) { + assertEquals(4000L, Api.number((Map) row, "score")); + } + } + assertEquals(409, Api.statusOf(mvc, Api.asAdmin(Api.body(post("/api/admin/flags/" + flag + "/resolve"), + "{\"verdict\":\"KEEP\"}"), ADMIN))); + assertTrue(audited(who, "FLAG REMOVE")); + } + + @Test + void aBroadcastIsAuditedAndCountsItsAudience() throws Exception { + String who = Api.player(accounts, "listener"); + Api.json(mvc, Api.as(Api.body(post("/api/account/push"), + "{\"provider\":\"fcm\",\"token\":\"device-token-for-listener-0001\",\"platform\":\"ios\"}"), who)); + Map sent = Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/broadcast"), + "{\"title\":\"New paper\",\"body\":\"Gold foil is in the shop\",\"days\":0}"), ADMIN)); + assertTrue(Api.number(sent, "targets") >= 1); + assertTrue(audited("", "BROADCAST")); + } + + private String top(String mode, String period, String asker) throws Exception { + List board = Api.list(mvc, Api.as(get("/api/leaderboard?mode=" + mode + "&period=" + period), asker)); + return board.isEmpty() ? null : (String) ((Map) board.get(0)).get("username"); + } + + private boolean audited(String username, String action) throws Exception { + for (Object a : Api.list(mvc, Api.asAdmin(get("/api/admin/audit"), ADMIN))) { + Map row = (Map) a; + if (username.equals(row.get("username")) && action.equals(row.get("action")) + && ADMIN.equals(row.get("admin"))) { + return true; + } + } + return false; + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/Api.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/Api.java new file mode 100644 index 00000000000..482496d2f40 --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/Api.java @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.Json; +import com.codename1.backend.test.MockMvc; +import com.codename1.backend.test.MockRequestBuilder; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.RegisterDto; +import java.util.List; +import java.util.Map; + +import static com.codename1.backend.test.MockMvcResultMatchers.status; +import static com.codename1.backend.test.SecurityMockMvcRequestPostProcessors.jwt; + +/// The steps most tests take: making a player, calling the API as them, and +/// reading what came back. +public final class Api { + public static final String PASSWORD = "a-long-password"; + + private Api() { + } + + /// A fresh player of the test's own, so no test meets what another left. + public static String player(Accounts accounts, String name) throws Exception { + return accounts.register(new RegisterDto(name + "@test.example", PASSWORD, name)).username(); + } + + public static MockRequestBuilder as(MockRequestBuilder request, String username) { + return request.with(jwt().subject(username).authorities("ROLE_PLAYER")); + } + + public static MockRequestBuilder asAdmin(MockRequestBuilder request, String username) { + return request.with(jwt().subject(username).authorities("ROLE_PLAYER", "ROLE_ADMIN")); + } + + public static MockRequestBuilder body(MockRequestBuilder request, String json) { + return request.contentType("application/json").content(json); + } + + public static Map json(MockMvc mvc, MockRequestBuilder request) throws Exception { + return Json.parseObject(mvc.perform(request).andExpect(status().isOk()) + .andReturn().getResponse().getContentAsString()); + } + + public static List list(MockMvc mvc, MockRequestBuilder request) throws Exception { + return (List) Json.parse(mvc.perform(request).andExpect(status().isOk()) + .andReturn().getResponse().getContentAsString()); + } + + public static int statusOf(MockMvc mvc, MockRequestBuilder request) throws Exception { + return mvc.perform(request).andReturn().getResponse().getStatus(); + } + + public static long number(Map object, String field) { + return ((Number) object.get(field)).longValue(); + } + + /// A ticket for `mode`, as the app asks before a run. + public static String ticket(MockMvc mvc, String who, String mode) throws Exception { + return (String) json(mvc, as(body(com.codename1.backend.test.MockMvcRequestBuilders.post("/api/runs/start"), + "{\"mode\":\"" + mode + "\"}"), who)).get("token"); + } + + /// Plays one plausible run of `mode` scoring `score` over `seconds`. + public static Map submit(MockMvc mvc, String who, String mode, long score, int seconds) throws Exception { + String token = ticket(mvc, who, mode); + // The run takes as long as it says: the server refuses a run longer + // than the time since its ticket was issued. + Clock.shiftForTests(seconds * 1000L); + try { + return json(mvc, as(body(com.codename1.backend.test.MockMvcRequestBuilders.post("/api/runs"), + run(token, mode, score, (int) (score / 2000) + 10, 0, seconds, 5)), who)); + } finally { + Clock.shiftForTests(0); + } + } + + /// A run with every number given, played for as long as it claims. + public static Map played(MockMvc mvc, String who, String mode, long score, int kills, int gates, + int seconds, int multiplier) throws Exception { + String token = ticket(mvc, who, mode); + Clock.shiftForTests(seconds * 1000L); + try { + return json(mvc, as(body(com.codename1.backend.test.MockMvcRequestBuilders.post("/api/runs"), + run(token, mode, score, kills, gates, seconds, multiplier)), who)); + } finally { + Clock.shiftForTests(0); + } + } + + public static String run(String token, String mode, long score, int kills, int gates, int seconds, + int multiplier) { + return "{\"token\":\"" + token + "\",\"mode\":\"" + mode + "\",\"score\":" + score + + ",\"kills\":" + kills + ",\"gates\":" + gates + ",\"seconds\":" + seconds + + ",\"peakMultiplier\":" + multiplier + "}"; + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/BoardTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/BoardTest.java new file mode 100644 index 00000000000..0ce7a29525a --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/BoardTest.java @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.RunDto; +import com.codenameone.examples.ledge.run.DailySeeds; +import com.codenameone.examples.ledge.run.Runs; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/// The leaderboards' periods, the friends board and the daily sheet. +@BackendTest +class BoardTest { + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + @Autowired + private Runs runs; + + @Test + void aBoardKeepsEachPlayersBestWithinItsPeriod() throws Exception { + String now = Api.player(accounts, "nowplayer"); + String old = Api.player(accounts, "oldtimer"); + Api.submit(mvc, now, "FOLD", 8000000, 3600); + Api.submit(mvc, now, "FOLD", 7000000, 3600); + runs.accept(old, "FOLD", new RunDto(null, "FOLD", 8100000, 4060, 40, 3600, 20), + System.currentTimeMillis() - 20 * Clock.DAY); + List all = Api.list(mvc, Api.as(get("/api/leaderboard?mode=FOLD&period=ALL"), now)); + assertTrue(all.size() <= 50); + Map first = (Map) all.get(0); + Map second = (Map) all.get(1); + assertEquals(old, first.get("username")); + assertEquals(now, second.get("username")); + assertTrue((Boolean) second.get("me")); + assertEquals(2L, Api.number(second, "rank")); + assertEquals(1, count(all, now)); + for (String period : new String[] {"WEEK", "TODAY"}) { + List windowed = Api.list(mvc, Api.as(get("/api/leaderboard?mode=FOLD&period=" + period), now)); + assertEquals(now, ((Map) windowed.get(0)).get("username")); + assertEquals(0, count(windowed, old)); + } + assertEquals(400, Api.statusOf(mvc, Api.as(get("/api/leaderboard?mode=CHESS&period=ALL"), now))); + } + + @Test + void theFriendsBoardIsTheAskerAndTheirFriends() throws Exception { + String me = Api.player(accounts, "befriender"); + String pal = Api.player(accounts, "palfriend"); + Api.submit(mvc, me, "CLASSIC", 5000, 60); + Api.submit(mvc, pal, "CLASSIC", 6000, 60); + List friends = Api.list(mvc, Api.as(Api.body(post("/api/friends"), "{\"name\":\"palfriend\"}"), me)); + assertEquals(1, friends.size()); + assertEquals(6000L, Api.number((Map) friends.get(0), "bestClassic")); + assertEquals(400, Api.statusOf(mvc, Api.as(Api.body(post("/api/friends"), + "{\"name\":\"" + me + "\"}"), me))); + assertEquals(404, Api.statusOf(mvc, Api.as(Api.body(post("/api/friends"), + "{\"name\":\"nobody at all\"}"), me))); + List board = Api.list(mvc, Api.as(get("/api/leaderboard?mode=CLASSIC&period=FRIENDS"), me)); + assertEquals(2, board.size()); + assertEquals(pal, ((Map) board.get(0)).get("username")); + assertTrue((Boolean) ((Map) board.get(1)).get("me")); + Api.list(mvc, Api.as(Api.body(post("/api/friends/remove"), "{\"name\":\"" + pal + "\"}"), me)); + assertEquals(1, Api.list(mvc, Api.as(get("/api/leaderboard?mode=CLASSIC&period=FRIENDS"), me)).size()); + } + + @Test + void theDailySeedIsStableWithinADayAndAnAdminCanPickIt() throws Exception { + assertEquals("1970-01-01", Clock.date(0)); + assertEquals("2026-11-20", Clock.date(1795132800000L + 3600000L)); + assertEquals(DailySeeds.hashed("2026-11-20"), DailySeeds.hashed("2026-11-20")); + assertTrue(DailySeeds.hashed("2026-11-20") != DailySeeds.hashed("2026-11-21")); + String who = Api.player(accounts, "dailyplayer"); + long seed = Api.number(Api.json(mvc, Api.as(get("/api/daily"), who)), "seed"); + assertEquals(seed, Api.number(Api.json(mvc, Api.as(get("/api/daily"), who)), "seed")); + assertEquals(seed, Api.number(Api.json(mvc, Api.as(Api.body(post("/api/runs/start"), + "{\"mode\":\"DAILY\"}"), who)), "seed")); + Map picked = Api.json(mvc, Api.asAdmin(Api.body(post("/api/admin/daily"), "{\"seed\":4242}"), + "admin@ledge.example")); + assertEquals(4242L, Api.number(picked, "seed")); + assertEquals(4242L, Api.number(Api.json(mvc, Api.as(Api.body(post("/api/runs/start"), + "{\"mode\":\"DAILY\"}"), who)), "seed")); + Api.submit(mvc, who, "DAILY", 9000000, 3600); + Map daily = Api.json(mvc, Api.as(get("/api/daily"), who)); + assertEquals(9000000L, Api.number(daily, "myBest")); + assertEquals(9000000L, Api.number(daily, "topScore")); + assertEquals("dailyplayer", daily.get("topName")); + assertTrue(Api.number(daily, "players") > 1); + } + + private static int count(List board, String username) { + int n = 0; + for (Object row : board) { + if (username.equals(((Map) row).get("username"))) { + n++; + } + } + return n; + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ProgressTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ProgressTest.java new file mode 100644 index 00000000000..2b1852e4864 --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ProgressTest.java @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/// Achievements, worked out from accepted runs. +@BackendTest +class ProgressTest { + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + + @Test + void achievementsFollowTheRunsAPlayerHasHad() throws Exception { + String who = Api.player(accounts, "achiever"); + Map before = byId(Api.list(mvc, Api.as(get("/api/achievements"), who))); + assertFalse((Boolean) ((Map) before.get("first-cut")).get("unlocked")); + assertEquals(1L, Api.number((Map) before.get("papers-3"), "progress")); + Api.submit(mvc, who, "CLASSIC", 150000, 200); + Api.played(mvc, who, "FOLD", 30000, 30, 27, 190, 20); + Map after = byId(Api.list(mvc, Api.as(get("/api/achievements"), who))); + assertTrue((Boolean) ((Map) after.get("first-cut")).get("unlocked")); + assertTrue((Boolean) ((Map) after.get("classic-100k")).get("unlocked")); + Map razor = (Map) after.get("classic-500k"); + assertFalse((Boolean) razor.get("unlocked")); + assertEquals(150000L, Api.number(razor, "progress")); + assertEquals(500000L, Api.number(razor, "goal")); + assertTrue((Boolean) ((Map) after.get("fold-25")).get("unlocked")); + assertTrue((Boolean) ((Map) after.get("survive-3m")).get("unlocked")); + assertTrue((Boolean) ((Map) after.get("multiplier-20")).get("unlocked")); + assertEquals(0L, Api.number((Map) after.get("daily-10"), "progress")); + } + + private static Map byId(List achievements) { + Map out = new java.util.HashMap(); + for (Object a : achievements) { + out.put(((Map) a).get("id"), a); + } + return out; + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/RunTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/RunTest.java new file mode 100644 index 00000000000..a4660eb9f12 --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/RunTest.java @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import com.codenameone.examples.ledge.api.ScoreBounds; +import com.codenameone.examples.ledge.domain.RunTicket; +import com.codenameone.examples.ledge.repository.RunTicketRepository; +import java.time.Instant; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + + +/// The ticket checks a submitted run is held to, and what an accepted run pays. +@BackendTest +class RunTest { + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + @Autowired + private RunTicketRepository tickets; + + @Test + void anAcceptedRunPaysAndCountsAsABest() throws Exception { + String who = Api.player(accounts, "runner"); + Map result = Api.submit(mvc, who, "CLASSIC", 250000, 300); + assertTrue((Boolean) result.get("accepted")); + assertFalse((Boolean) result.get("flagged")); + assertTrue((Boolean) result.get("newBest")); + // A coin per thousand points, capped at a hundred. + assertEquals(100L, Api.number(result, "coinsEarned")); + assertTrue(Api.number(result, "rank") > 0); + Map me = Api.json(mvc, Api.as(get("/api/me"), who)); + assertEquals(250000L, Api.number(me, "bestClassic")); + assertEquals(Accounts.START_COINS + 100L, Api.number(me, "inkCoins")); + Map lower = Api.submit(mvc, who, "CLASSIC", 20000, 100); + assertFalse((Boolean) lower.get("newBest")); + assertEquals(20L, Api.number(lower, "coinsEarned")); + assertEquals(250000L, Api.number(lower, "best")); + Map daily = Api.submit(mvc, who, "DAILY", 3000, 60); + assertEquals(3L + 5, Api.number(daily, "coinsEarned")); + } + + @Test + void aTicketIsGoodOnceForItsModeAndUntilItExpires() throws Exception { + String who = Api.player(accounts, "ticketed"); + String token = Api.ticket(mvc, who, "FOLD"); + assertEquals(400, Api.statusOf(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(token, "CLASSIC", 1000, 10, 0, 60, 1)), who))); + Api.json(mvc, Api.as(Api.body(post("/api/runs"), Api.run(token, "FOLD", 1000, 10, 3, 60, 1)), who)); + assertEquals(409, Api.statusOf(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(token, "FOLD", 1000, 10, 3, 60, 1)), who))); + assertEquals(404, Api.statusOf(mvc, Api.as(Api.body(post("/api/runs"), + Api.run("no-such-ticket", "FOLD", 1000, 10, 3, 60, 1)), who))); + // Somebody else's ticket is as good as none. + String other = Api.player(accounts, "borrower"); + String theirs = Api.ticket(mvc, other, "FOLD"); + assertEquals(404, Api.statusOf(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(theirs, "FOLD", 1000, 10, 3, 60, 1)), who))); + String stale = Api.ticket(mvc, who, "CLASSIC"); + RunTicket t = tickets.findById(stale); + t.setExpiresAt(Instant.ofEpochMilli(System.currentTimeMillis() - 1000)); + tickets.save(t); + assertEquals(410, Api.statusOf(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(stale, "CLASSIC", 1000, 10, 0, 60, 1)), who))); + } + + @Test + void anImpossibleScoreIsRefusedAndASuspiciousOneFlagged() throws Exception { + String who = Api.player(accounts, "cheater"); + String token = Api.ticket(mvc, who, "CLASSIC"); + // Ten cuts cannot be worth more than ten times the best cut at x20. + long ceiling = 10L * ScoreBounds.MAX_POINTS * ScoreBounds.MAX_MULTIPLIER; + Map refused = Api.json(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(token, "CLASSIC", ceiling + 1, 10, 0, 60, 20)), who)); + assertFalse((Boolean) refused.get("accepted")); + assertEquals(0L, Api.number(refused, "rank")); + assertTrue(((String) refused.get("message")).length() > 0); + assertEquals(0L, Api.number(Api.json(mvc, Api.as(get("/api/me"), who)), "runs")); + Map odd = Api.played(mvc, who, "CLASSIC", 700000, 200, 0, 60, 20); + assertTrue((Boolean) odd.get("accepted")); + assertTrue((Boolean) odd.get("flagged")); + assertTrue((Boolean) Api.json(mvc, Api.as(get("/api/me"), who)).get("flagged")); + } + + @Test + void aRunCannotLastLongerThanItsTicket() throws Exception { + String who = Api.player(accounts, "hasty"); + Map early = Api.json(mvc, Api.as(Api.body(post("/api/runs"), + Api.run(Api.ticket(mvc, who, "CLASSIC"), "CLASSIC", 1000000, 4000, 0, 3600, 20)), who)); + assertFalse((Boolean) early.get("accepted")); + assertEquals(0L, Api.number(Api.json(mvc, Api.as(get("/api/me"), who)), "runs")); + } +} diff --git a/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ShopTest.java b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ShopTest.java new file mode 100644 index 00000000000..56eb86719fa --- /dev/null +++ b/scripts/ledge/backend/src/test/java/com/codenameone/examples/ledge/ShopTest.java @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.backend.annotations.Autowired; +import com.codename1.backend.test.BackendTest; +import com.codename1.backend.test.MockMvc; +import com.codenameone.examples.ledge.account.Accounts; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Test; + +import static com.codename1.backend.test.MockMvcRequestBuilders.get; +import static com.codename1.backend.test.MockMvcRequestBuilders.post; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/// Spending ink coins, store receipts and rewarded ads. The test profile +/// checks receipts with the simulated store, which accepts any of them. +@BackendTest +class ShopTest { + @Autowired + private MockMvc mvc; + @Autowired + private Accounts accounts; + + @Test + void papersAreBoughtOnceAndEquippedOnlyWhenOwned() throws Exception { + String who = Api.player(accounts, "shopper"); + List items = Api.list(mvc, Api.as(get("/api/shop"), who)); + assertEquals(9, items.size()); + assertEquals(402, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/buy"), + "{\"itemId\":\"quill-kraft\"}"), who))); + // A coin pack costs real money and is never sold for coins. + assertEquals(404, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/buy"), + "{\"itemId\":\"coins-small\"}"), who))); + assertEquals(403, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/equip"), + "{\"quill\":\"quill-kraft\"}"), who))); + Api.json(mvc, Api.as(Api.body(post("/api/shop/receipt"), "{\"store\":\"play\",\"sku\":" + + "\"ledge.coins.small\",\"transactionId\":\"tx-shopper\",\"receipt\":\"r\"}"), who)); + Map wallet = Api.json(mvc, Api.as(Api.body(post("/api/shop/buy"), "{\"itemId\":\"quill-kraft\"}"), who)); + assertEquals(Accounts.START_COINS + 500L - 150, Api.number(wallet, "inkCoins")); + assertTrue(((List) wallet.get("owned")).contains("quill-kraft")); + assertEquals(409, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/buy"), + "{\"itemId\":\"quill-kraft\"}"), who))); + Map equipped = Api.json(mvc, Api.as(Api.body(post("/api/shop/equip"), "{\"quill\":\"quill-kraft\"}"), who)); + assertEquals("quill-kraft", equipped.get("quill")); + } + + @Test + void spareErasersAreBoughtInPairsAndSpentTogether() throws Exception { + String who = Api.player(accounts, "eraser"); + Map wallet = Api.json(mvc, Api.as(Api.body(post("/api/shop/buy"), "{\"itemId\":\"erasers-2\"}"), who)); + assertEquals(2L, Api.number(wallet, "erasers")); + assertEquals(Accounts.START_COINS - 40L, Api.number(wallet, "inkCoins")); + Map used = Api.json(mvc, Api.as(post("/api/shop/use-erasers"), who)); + assertEquals(0L, Api.number(used, "erasers")); + } + + @Test + void aReceiptIsRedeemedOnceAndOnlyByItsOwner() throws Exception { + String who = Api.player(accounts, "buyer"); + String thief = Api.player(accounts, "thief"); + String receipt = "{\"store\":\"itunes\",\"sku\":\"ledge.coins.large\"," + + "\"transactionId\":\"tx-1001\",\"receipt\":\"opaque\"}"; + Map first = Api.json(mvc, Api.as(Api.body(post("/api/shop/receipt"), receipt), who)); + assertEquals(Accounts.START_COINS + 3000L, Api.number(first, "inkCoins")); + // The app retries after a lost answer: the same purchase, granted once. + Map again = Api.json(mvc, Api.as(Api.body(post("/api/shop/receipt"), receipt), who)); + assertEquals(Accounts.START_COINS + 3000L, Api.number(again, "inkCoins")); + assertEquals(409, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/receipt"), receipt), thief))); + assertEquals(404, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/receipt"), + "{\"store\":\"itunes\",\"sku\":\"ledge.coins.huge\",\"transactionId\":\"tx-2\"," + + "\"receipt\":\"r\"}"), who))); + } + + @Test + void anAdNoncePaysOnce() throws Exception { + String who = Api.player(accounts, "watcher"); + Map paid = Api.json(mvc, Api.as(Api.body(post("/api/shop/ad-reward"), "{\"nonce\":\"ad-77\"}"), who)); + assertEquals(Accounts.START_COINS + 15L, Api.number(paid, "inkCoins")); + assertEquals(409, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/ad-reward"), + "{\"nonce\":\"ad-77\"}"), who))); + assertFalse(Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/ad-reward"), "{}"), who)) == 200); + // A client mints its own nonces, so the day's count is what bounds it. + for (int i = 1; i < com.codenameone.examples.ledge.shop.Shop.AD_REWARDS_PER_DAY; i++) { + assertEquals(200, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/ad-reward"), + "{\"nonce\":\"cap-" + i + "\"}"), who))); + } + assertEquals(429, Api.statusOf(mvc, Api.as(Api.body(post("/api/shop/ad-reward"), + "{\"nonce\":\"cap-over\"}"), who))); + } +} diff --git a/scripts/ledge/check-template.sh b/scripts/ledge/check-template.sh new file mode 100755 index 00000000000..26e46434df0 --- /dev/null +++ b/scripts/ledge/check-template.sh @@ -0,0 +1,81 @@ +#!/usr/bin/env bash +# +# Builds what the Initializr generates from this project. +# +# check-template.sh [work-directory] +# +# The Initializr offers this application as a template, from resources that +# scripts/sync-initializr-template.py derives from it. That the resources match +# is one question; this is the other: whether a project generated from them, +# under another name and in another package, still builds. The real generator +# makes the project, and it is then built against this checkout: +# +# the server's tests pass against the contract module +# the app builds from common, without platform modules and with them, and +# the client half of the contract is generated into it +# +# Needs this checkout's artifacts installed (core, javase, css-compiler, the +# Maven plugin, backend, backend-test), a JDK 17 or newer as JAVA_HOME, python3 +# and unzip. +set -euo pipefail + +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT="$(cd "$HERE/../.." && pwd)" +MVN="${MVN:-mvn}" +WORK="${1:-$HERE/target/template-check}" + +log() { echo "[ledge-template] $*" >&2; } + +python3 "$ROOT/scripts/sync-initializr-template.py" ledge + +# The version this checkout installs, which the generated poms are pointed at: +# the release the Initializr generates against does not have this project's +# build support until one that follows this change. +VERSION="$(sed -n 's:.*\(.*\).*:\1:p' "$ROOT/maven/pom.xml" | head -n 1)" +[ -n "$VERSION" ] || { log "could not read the version from maven/pom.xml"; exit 1; } + +rm -rf "$WORK" +mkdir -p "$WORK" +log "generating the Initializr's downloads" +python3 "$ROOT/scripts/tests/generate-initializr-fixtures.py" "$WORK/fixtures" > "$WORK/fixtures.log" 2>&1 \ + || { tail -n 60 "$WORK/fixtures.log" >&2; log "the generator failed"; exit 1; } + +# extract -- a generated project, pointed at this checkout's version +extract() { + local dir="$WORK/$1" + mkdir -p "$dir" + unzip -q "$WORK/fixtures/LEDGE-$1-INTELLIJ.zip" -d "$dir" + python3 - "$dir/pom.xml" "$VERSION" <<'PY' +import re, sys +path, version = sys.argv[1], sys.argv[2] +text = open(path, encoding='utf-8').read() +for tag in ('cn1.plugin.version', 'cn1.version'): + text, count = re.subn(r'<%s>[^<]*' % (tag, tag), '<%s>%s' % (tag, version, tag), text) + assert count == 1, (tag, count) +open(path, 'w', encoding='utf-8').write(text) +PY + echo "$dir" +} + +# The fixtures are generated as com.example.probe.LauncherProbe. +PACKAGE=com/example/probe + +minimal="$(extract APP_WITH_BACKEND)" +log "running the generated server's tests" +(cd "$minimal" && "$MVN" -B -q -Dcodename1.platform=backend -pl shared,backend -am test) +ls "$minimal"/backend/target/surefire-reports/TEST-*.xml >/dev/null 2>&1 \ + || { log "the generated server's tests did not run"; exit 1; } +[ -f "$minimal/backend/target/generated-sources/cn1-annotations/$PACKAGE/api/AccountApiServer.java" ] \ + || { log "the server's half of the contract was not generated"; exit 1; } + +for layout in APP_WITH_BACKEND FULL; do + project="$WORK/$layout" + [ -d "$project" ] || project="$(extract "$layout")" + log "building the generated app ($layout)" + (cd "$project" && "$MVN" -B -q -Dcodename1.platform=javase -Djava.awt.headless=true -DskipTests package) + for built in "classes/theme.res" "classes/$PACKAGE/api/AccountApiImpl.class" "classes/cn1app/RestClientBootstrap.class"; do + [ -f "$project/common/target/$built" ] \ + || { log "$layout: common/target/$built was not built"; exit 1; } + done +done +log "passed" diff --git a/scripts/ledge/common/codenameone_settings.properties b/scripts/ledge/common/codenameone_settings.properties new file mode 100644 index 00000000000..fe61e25259f --- /dev/null +++ b/scripts/ledge/common/codenameone_settings.properties @@ -0,0 +1,51 @@ +codename1.android.keystore= +codename1.android.keystoreAlias= +codename1.android.keystorePassword= +codename1.arg.and.themeMode=modern +# A server started on this machine is reached over plain HTTP, which Android +# refuses by default. Remove this once the game talks to a server with a +# certificate. +codename1.arg.android.xapplication_attr=android\:usesCleartextTraffic\="true" +# A game keeps its own title and back arrow on the desktop; "native" would +# hide the Toolbar and move Back into the OS menu bar. +codename1.arg.desktop.titleBar=toolbar +codename1.arg.ios.newStorageLocation=true +# Push notifications: the daily sheet, a beaten score, flags for an admin. +codename1.arg.ios.includePush=true +# ledge://daily opens today's sheet. +codename1.arg.ios.urlScheme=ledge +codename1.arg.android.xintent_filter= +# Android push is off until the game has its Firebase file: a build that +# uses PushClient without google-services.json stops with an error. Once +# native/android/google-services.json is in place, delete this line. +codename1.arg.android.messagingService=none +# The shop sells through Google Play, and an Android build that uses in-app +# purchase needs the app's licensing key. This is a placeholder that builds +# but verifies nothing: paste the Base64 RSA public key from the Play +# Console's "Monetization setup" before release. +codename1.arg.android.licenseKey=CN1TESTPLACEHOLDERKEYNOTFORPRODUCTIONxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxIDAQAB +# A twin-stick arena is played in landscape, a thumb on each side. +codename1.arg.android.screenOrientation=sensorLandscape +codename1.arg.ios.interface_orientation=UIInterfaceOrientationLandscapeLeft:UIInterfaceOrientationLandscapeRight +codename1.arg.ios.themeMode=modern +codename1.arg.java.version=17 +codename1.cssTheme=true +codename1.displayName=Ledge +codename1.icon=icon.png +codename1.ios.appid=Q5GHSKAL2F.com.codenameone.examples.ledge +codename1.ios.certificate= +codename1.ios.certificatePassword= +codename1.ios.debug.certificate= +codename1.ios.debug.certificatePassword= +codename1.ios.debug.provision= +codename1.ios.provision= +codename1.ios.release.certificate= +codename1.ios.release.certificatePassword= +codename1.ios.release.provision= +codename1.kotlin=false +codename1.languageLevel=5 +codename1.mainName=Ledge +codename1.packageName=com.codenameone.examples.ledge +codename1.secondaryTitle=Ledge +codename1.vendor=CodenameOne +codename1.version=1.0 diff --git a/scripts/ledge/common/icon.png b/scripts/ledge/common/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b75ded9e06ebaaa76af6ccaf2380d8974644b7de GIT binary patch literal 82059 zcmYJZbwHHe^FDlU&>hl9BS?dkAS?|6Qc6fSC@Dz8E-4*?bf-#)bO{THfHX*hbV_&c zZ}s_n-}f(;J@?*c&dfD4*O{3J&1XskxHPx`01&7s%WDGw82u3pU}K{HoOu1Z0zd$u zA}{mYD|6@8yVAio`97w6){|2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xV-Ct zeg7m&=lqQ>DVy$MWBIfd;UNR?k_tGBr#w%P{BP-Rrcopf37LOEHvmwi5EvSGFzCF; zzxq{>P4BUHt((n1;} zcUAZDGx%?Nq8ZCYY$;YZjJ=HG!C->>le7&rT&VEO#G~_PN>#Y^lmQ5!3V~sQzd_z% zJn65xtuA1IIoh`FMbrr_k#%t&CIHY%Fp0d{2;+dpzkv?y$v&PYIDRLCfUKSc=wMR| zzMFRojZc%Y2Y}98t`rm^c-?eC5ky!ae3*pb`?!T^&PGd**ndM6qFP;wL;=O!*zLkZ zLSPn=)Au3c22fgAIJN2F#W1C4?q`sbpm9_WDcA++A`$SQ4On06#d(#7fYg)tKQX!N zLjL-n`EVK`Jc#}~nL!SN8?(>dt$r~eFSjl@_yO+b4FNq%c0lB;UxIx%@dH}dROzrH zN(h3TXj3rY|DSb%HrM;Qer8CM@>{y60;CHF0BQn&-!vSGhkP>9$so25lTq>r0lW_~ z{@Ft#udh4ecrP5rxi=Skh85AS1p{FJrjmmtf>@x(DIWg}KjL%XU9A>D-~66Me+1yv zea-~75hpHS2FoMeeD78JbIOS{>Hlie-K$vh0s!_#ct{b0eM~qq{I~4{DOOPv0q^(` vP4u*21B|C)pf82{I6-Y2gW2Ni + + 4.0.0 + + com.codenameone.examples.ledge + ledge + 1.0-SNAPSHOT + + com.codenameone.examples.ledge + ledge-common + 1.0-SNAPSHOT + jar + + + + + com.codenameone + codenameone-core + provided + + + + com.codenameone + cn1-app-kit-lib + ${cn1.version} + pom + + + + ${project.groupId} + ledge-shared + ${project.version} + + + + + com.codenameone + codenameone-javase + test + + + org.junit.jupiter + junit-jupiter + 5.9.3 + test + + + + + + + + + + + install-codenameone + ${user.home}/.codenameone/guibuilder.jar + + + + org.apache.maven.plugins + maven-antrun-plugin + + + + validate + + run + + + + + + + + + + + + + + + + + + + + + + + + + + + android-compat + + + ${basedir}/src/main/android + + + + + com.codenameone + codenameone-android-compat + provided + + + + + + kotlin + + + + ${basedir}/src/main/kotlin + + + + 2.2.10 + true + + + + org.jetbrains.kotlin + kotlin-stdlib + ${kotlin.version} + + + + + + org.jetbrains + annotations + 13.0 + + + com.codenameone + java-runtime + provided + + + + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + initialize + + read-project-properties + + + + ${basedir}/codenameone_settings.properties + + + + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + + process-resources + + compile + + + + ${project.basedir}/src/main/kotlin + ${project.basedir}/src/main/java + + ${project.basedir}/src/main/android/kotlin + ${project.basedir}/src/main/android/java + ${project.build.directory}/generated-sources/android + + + -no-reflect + -no-jdk + + + + + test-compile + process-test-sources + + test-compile + + + + ${project.basedir}/src/test/kotlin + ${project.basedir}/src/test/java + + + -no-reflect + -no-jdk + + + + + + + + + + + + + javase + + + codename1.platform + javase + + + + javase + + + + + org.codehaus.mojo + exec-maven-plugin + + java + true + + -Xmx1024M + + -classpath + + ${exec.mainClass} + ${cn1.mainClass} + + + + + + + + + + cn1-javase-natives + + + ${basedir}/../javase/pom.xml + + + + + + com.codenameone + codenameone-maven-plugin + + + compile-javase-natives + process-classes + + compile-javase-natives + + + javase + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + org.apache.maven.surefire + surefire-junit-platform + 3.0.0-M5 + + + + ${skipTests} + + ${project.build.directory}/cn1-javase/classes + + + + + + + + + cn1-host-javase + + + codename1.platform + javase + + + ${basedir}/../javase/pom.xml + + + + javase + javase + none + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-javase + validate + + hosted-platform + + + javase + + + + build-javase + package + + build + + + javase + + + + + + + + + + cn1-host-android + + + codename1.platform + android + + + ${basedir}/../android/pom.xml + + + + android + android + android-device + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-android + validate + + hosted-platform + + + android + + + + build-android + package + + build + + + android + + + + + + + + + + cn1-host-ios + + + codename1.platform + ios + + + ${basedir}/../ios/pom.xml + + + + ios + ios + ios-device + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-ios + validate + + hosted-platform + + + ios + + + + build-ios + package + + build + + + ios + + + + + + + + + + cn1-host-javascript + + + codename1.platform + javascript + + + ${basedir}/../javascript/pom.xml + + + + javascript + javascript + local-javascript + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-javascript + validate + + hosted-platform + + + javascript + + + + build-javascript + package + + build + + + javascript + + + + + + + + + + cn1-host-win + + + codename1.platform + win + + + ${basedir}/../win/pom.xml + + + + win + win + windows-device + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-win + validate + + hosted-platform + + + win + + + + build-windows + package + + build + + + win + + + + + + + + + + cn1-host-linux + + + codename1.platform + linux + + + ${basedir}/../linux/pom.xml + + + + linux + linux + linux-device + + + + + com.codenameone + codenameone-maven-plugin + + + hosted-linux + validate + + hosted-platform + + + linux + + + + build-linux + package + + build + + + linux + + + + + + + + + + simulator + + javase + com.codename1.impl.javase.Simulator + + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + prepare-simulator-environment + initialize + + prepare-simulator-classpath + + + javase + + + + + + org.codehaus.mojo + exec-maven-plugin + + + run-in-simulator + verify + + exec + + + ${cn1.hosted.javase.skip} + ${basedir} + java + + -Xmx1024M + -Dcodename1.css.compiler.args.input=${codename1.css.compiler.args.input} + -Dcodename1.css.compiler.args.output=${codename1.css.compiler.args.output} + -Dcodename1.css.compiler.args.merge=${codename1.css.compiler.args.merge} + ${codename1.exec.args.debug} + ${codename1.exec.args.runjdwp.transport} + + @${cn1.hosted.classpathArgFile} + ${exec.mainClass} + ${codename1.mainClass} + + + + + + + + + + + idea-simulator + + com.codename1.impl.javase.Simulator + true + + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + prepare-simulator-environment + initialize + + prepare-simulator-classpath + + + javase + + + + + + org.codehaus.mojo + exec-maven-plugin + + + run-in-simulator-idea + verify + + java + + + ${cn1.hosted.javase.skip} + + ${project.build.directory}/cn1-javase/classes + + + ${codename1.mainClass} + + + + codename1.css.compiler.args.input + ${codename1.css.compiler.args.input} + + + codename1.css.compiler.args.output + ${codename1.css.compiler.args.output} + + + codename1.css.compiler.args.merge + ${codename1.css.compiler.args.merge} + + + + cn1.class.path + ${cn1.class.path} + + + + + + + + + + + + debug-simulator + + com.codename1.impl.javase.Simulator + true + + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + prepare-simulator-environment + initialize + + prepare-simulator-classpath + + + javase + + + + + + org.codehaus.mojo + exec-maven-plugin + + + run-in-simulator + verify + + exec + + + ${cn1.hosted.javase.skip} + ${basedir} + java + + -Xdebug + -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} + -Xmx1024M + -Dcodename1.css.compiler.args.input=${codename1.css.compiler.args.input} + -Dcodename1.css.compiler.args.output=${codename1.css.compiler.args.output} + -Dcodename1.css.compiler.args.merge=${codename1.css.compiler.args.merge} + @${cn1.hosted.classpathArgFile} + ${exec.mainClass} + ${codename1.mainClass} + + + + + + + + + + + debug-eclipse + + com.codename1.impl.javase.Simulator + true + + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + prepare-simulator-environment + initialize + + prepare-simulator-classpath + + + javase + + + + + + org.codehaus.mojo + exec-maven-plugin + + + run-in-simulator + verify + + exec + + + ${cn1.hosted.javase.skip} + ${basedir} + java + + -Xdebug + -Xrunjdwp:transport=dt_socket,server=y,address=${jpda.address},suspend=y + -Xmx1024M + -Dcodename1.css.compiler.args.input=${codename1.css.compiler.args.input} + -Dcodename1.css.compiler.args.output=${codename1.css.compiler.args.output} + -Dcodename1.css.compiler.args.merge=${codename1.css.compiler.args.merge} + @${cn1.hosted.classpathArgFile} + ${exec.mainClass} + ${codename1.mainClass} + + + + + + + + + + + run-desktop + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + generate-icons + generate-sources + + generate-desktop-app-wrapper + + + javase + + + + + + org.codehaus.mojo + exec-maven-plugin + + + run-desktop + verify + + java + + + ${cn1.hosted.javase.skip} + ${codename1.packageName}.${codename1.mainName}Stub + + + ${project.build.directory}/cn1-javase/classes + ${project.build.directory}/cn1-javase/desktop + ${basedir}/src/desktop/resources + ${basedir}/../javase/src/desktop/resources + + + + + + + + + + + executable-jar + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + generate-icons + generate-sources + + generate-desktop-app-wrapper + + + javase + + + + javase-executable-jar + package + + javase-executable-jar + + + javase + + + + + + + + + + test + + + com.codenameone + codenameone-core + compile + + + com.codenameone + codenameone-javase + runtime + + + com.codenameone + cn1-binaries-javase + ${cn1.version} + pom + runtime + + + + + + com.codenameone + codenameone-maven-plugin + + + cn1-tests + test + + test + + + javase + + + + + + + + + + run-android + + + + com.codenameone + codenameone-maven-plugin + + + + run-android-hosted + validate + + hosted-platform + + + android + + + + + + maven-antrun-plugin + + + adb-install + verify + + run + + + ${cn1.hosted.android.skip} + + Running adb install + + + + + + Trying to start app on device using adb + + + + + + + + + + + + + + + + + + + + ios-debug + + + iphone + + + ios + + + + + ios-release + + + iphone + true + + + ios + true + + + + + javascript + + javascript + javascript + + + + + android + + android + android + + + + + win + + windows + win + + + + + windows + + desktop_windows + javase + + + + + mac + + desktop_macosx + javase + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 17 + 17 + + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + initialize + + read-project-properties + + + + ${basedir}/codenameone_settings.properties + + + + + + + + com.codenameone + codenameone-maven-plugin + + + + + transcode-svg + generate-sources + + transcode-svg + + + + + compile-android-res + generate-sources + + compile-android-res + + + + generate-gui-sources + process-sources + + generate-gui-sources + + + + cn1-process-classes + process-classes + + + remap-android + bytecode-compliance + css + + process-annotations + + + + + attach-test-artifact + test + + attach-test-artifact + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + true + + + + + + + + + + diff --git a/scripts/ledge/common/src/desktop/resources/NativeTheme.res b/scripts/ledge/common/src/desktop/resources/NativeTheme.res new file mode 100644 index 0000000000000000000000000000000000000000..83e067b6969553d6d2cdd7257e64e7417393864f GIT binary patch literal 300158 zcmeFa2{@I_`#Aob#eVEdcE=KueJA@aWZ#Oc$G-1N*_9A!u_Q~BwJ6d;$`%z75`~a# z$x=cQeshi%y>IXP`CQ-M|94&A>-u{*&ogt+Ju~;*bI&|8bI;rl)V&2k5IzKhh#+VK z;?VT-4)js?z<6T30yJFx`~w92F&>=u-hPf4KND{sBUzCZfDZ>hUI>C61y5G+ls#o| zNRyP9kr?<%wYAiYz*8Lj(1iHlZmoF42_Ws&R#P?!c|G^C-YwRErs1QU8hiLjGE0Ql z@l>VNWR_2a42a`VE3lRlw7Rv`P|IZ_0mlH5INdqK`GzO*qxUk&Po7ck93$Q$_~Ki! zI+QjQDr`&8m%(Rz{BFeob3KjKV~E(br^iNY_FW1ToBnt;nmt<}cyaQ>mo8~!4eoc8`X_oG-H1~_tacTW)$|e_! z;@0NWec^VYxwG1(<5EuKve_nF@VIWpK;Ly=ys^!K!39TsU%c)MhuY1NgoP93#Vssq z#ywk9!4xl9>rT@foaGAmz)y)j_V{*wJfT7Fw8I@bSW}xj$r>H(y%j35M`^1^$yN#9 z@yGuQa#{FQI{2kWlTpopZ;-b7A+-t>+n7IamjeXT;<(ExE!PjY3)|+dgGGJVawOmQ zL#1PgggcdoYs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qZ*6w3OWKpR>UQ&+#e3#HzSQvkUfY?9Vbw>!XXcfv z6{>4*@pSgL z^X-EL^;rJ?LHjKo?YDF!wzS{Uaj*TBj`mwR+HdJ-zon!7mX7vYI{vTR(h)-5JNVcU zoXDnK?9j49)okz<&zeVu*n(dAm{1SH)?io=6I?t8Oc@4N2&}YG80Mh#ABtikfbuI6 zDPu3W>P34a4Nrrw;)^q66=%jIP^^nz*j+HS8uZhyIJaNe-G04YyW-rgIFD>soZA)W zcE!0}ac)XXA#j*XO zw$drBqJpBm!}rd$e^FmG+}Ss;TN!I(zrZDpdKOb6<3yrf^EZVLRu4Iv^hBpP@{Gvy zLCgD>%_5yVR!Pdpj%lGMx@4P$3agG*?j79GY{ruMugh<4-1QpU{HalE-SR2!?l-XS zF*aLvy&Aat7v#YKjxli8qA5)3%noIG&k=$^2TaaD|YVg0<6gM-ea`${|6Be BseS+e literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/css/fonts/LilitaOne-Regular.ttf b/scripts/ledge/common/src/main/css/fonts/LilitaOne-Regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..fdec368cbd478e437f0476a538c3868723aed296 GIT binary patch literal 28092 zcmbV#349dg`TzUAvpci*ePxr~Y<82)eQl0~KuEX(1SBCGatQ5Zotd3^-{*bq=Xsy^ z4WWb(D?U`jGG^+8ak#?8`H$dR)6_KWocSMK^e;kIs&Jh(Zp_#wYQvLcWdPTKajh*= zPyM5J7Ooo!VQu54P9L@E+McWN{!jVuEmO-QOIqCbp~;`)dcmUe+q-JMJ8_f{^&ULW zmbS0$!hH)ND}KPYX6dR6mi+tLhVg`G7ZWloYgtG8;{O~w_X)h8h2LwJ;fDAZ;U!#8 z!*%Ym^LsYF@6W+0{SP6+Pgiv=YF|2k^Kn8X^haMizkOpDEhViu--w3-tJ}}-ICRxp zdkI;%l@M`bSLfOu&+NuUge=4ROx4xh(X~w6vmNhWgXblV2^^PxR`|^m^UcG*A$s8x z+##=)YF|ly$9KhZg`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by whoever signs in next. + public static void setMode(String mode) { + setMode(mode, ""); + } + + public static void setMode(String mode, String username) { + Preferences.set(MODE_KEY, mode == null ? "" : mode); + Preferences.set(MODE_OWNER_KEY, username == null ? "" : username); + } + + /// Whether `url` names the server `current` does, as [#setServerUrl] + /// would store it. + public static boolean sameServer(String url, String current) { + return clean(url).equals(current); + } + + + + /// True when the app was opened from the daily-run push or a + /// `ledge://daily` link, so it should go straight to today's sheet. + public static boolean openedForDaily() { + String link = CN.getProperty("AppArg", null); + return link != null && link.indexOf("daily") >= 0; + } + + private static String clean(String url) { + String text = url == null ? "" : url.trim(); + while (text.endsWith("/")) { + text = text.substring(0, text.length() - 1); + } + if (text.length() == 0) { + return DEFAULT_SERVER; + } + // Compared without folding the case: a scheme is ASCII, and + // toLowerCase() follows the device's language. + if (!text.regionMatches(true, 0, "http://", 0, 7) + && !text.regionMatches(true, 0, "https://", 0, 8)) { + text = "http://" + text; + } + return text; + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/Ledge.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/Ledge.java new file mode 100644 index 00000000000..f960b177db4 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/Ledge.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge; + +import com.codename1.payment.PurchaseCallback; +import com.codename1.system.Lifecycle; +import com.codenameone.examples.ledge.engage.Ads; +import com.codenameone.examples.ledge.engage.Notifications; +import com.codenameone.examples.ledge.engage.Store; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.play.Sfx; +import com.codenameone.examples.ledge.ui.Nav; +import com.codenameone.examples.ledge.ui.Ui; + +/// A twin-stick arena shooter on a sheet of notebook paper. +/// +/// Where things are: +/// +/// - `play` -- the game: [com.codenameone.examples.ledge.play.Arena] is the +/// whole simulation, with no UI in it, and +/// [com.codenameone.examples.ledge.play.ArenaView] draws it as cut paper +/// with `com.codename1.gaming` and reads the thumbs, keys and gamepad. +/// - `ui` -- every other screen, ordinary widgets that `src/main/css/theme.css` +/// dresses as paper on a desk. +/// - `net` -- the session and the REST clients generated from `shared`. +/// - `engage` -- the store, ads and push. +/// - `admin` -- the console, for an account with the ADMIN role. +public class Ledge extends Lifecycle implements PurchaseCallback { + @Override + public void runApp() { + Ui.desktopFonts(); + Sfx.load(); + Ads.start(); + Session.start(AppConfig.serverUrl()); + Nav.launch(); + } + + @Override + public void start() { + super.start(); + Notifications.start(); + } + + @Override + public void itemPurchased(String sku) { + Store.purchased(sku); + } + + @Override + public void itemPurchaseError(String sku, String errorMessage) { + Ui.toast("The purchase did not go through: " + errorMessage); + } + + @Override + public void itemRefunded(String sku) { + // The server hears about refunds from the store itself. + } + + @Override + public void subscriptionStarted(String sku) { + Store.purchased(sku); + } + + @Override + public void subscriptionCanceled(String sku) { + // Ledge sells no subscriptions. + } + + @Override + public void paymentFailed(String paymentCode, String failureReason) { + // Not used: purchases go through the platform store. + } + + @Override + public void paymentSucceeded(String paymentCode, double amount, String currency) { + // Not used: purchases go through the platform store. + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/admin/AdminConsole.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/admin/AdminConsole.java new file mode 100644 index 00000000000..061d6386a98 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/admin/AdminConsole.java @@ -0,0 +1,230 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.admin; + +import com.codename1.appkit.Net; +import com.codename1.components.SpanLabel; +import com.codename1.ui.Container; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.Tabs; +import com.codename1.ui.TextArea; +import com.codename1.ui.TextField; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codename1.ui.layouts.GridLayout; +import com.codenameone.examples.ledge.api.AdminActionDto; +import com.codenameone.examples.ledge.api.AuditDto; +import com.codenameone.examples.ledge.api.BroadcastDto; +import com.codenameone.examples.ledge.api.DailySeedDto; +import com.codenameone.examples.ledge.api.FlagDto; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.api.ResolveDto; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.play.Hud; +import com.codenameone.examples.ledge.ui.Nav; +import com.codenameone.examples.ledge.ui.Ui; +import java.util.List; + +/// The console, inside the game: the day at a glance, players, runs flagged +/// as suspicious, today's sheet and push, and the audit log. Every route is +/// ADMIN only on the server, which also writes every action to the log; this +/// screen is only a way to ask. +// tag::ledge-admin[] +public final class AdminConsole { + private AdminConsole() { + } + + public static void show() { + Form f = Ui.form("Console", "console"); + f.setLayout(new BorderLayout()); + f.setScrollable(false); + Ui.back(f, Nav::home); + Tabs tabs = new Tabs(); + tabs.addTab("Today", page(AdminConsole::overview)); + tabs.addTab("Players", page(AdminConsole::players)); + tabs.addTab("Flags", page(AdminConsole::flags)); + tabs.addTab("Daily", page(AdminConsole::sheet)); + tabs.addTab("Audit", page(AdminConsole::audit)); + f.add(BorderLayout.CENTER, tabs); + f.show(); + } + + interface Filler { + void fill(Container into); + } + + private static Container page(Filler filler) { + Container c = new Container(BoxLayout.y()); + c.setScrollableY(true); + filler.fill(c); + return c; + } + + // ---- today ---------------------------------------------------------------------- + + static void overview(final Container c) { + Api.admin().stats(Net.to(s -> Ui.later(() -> { + c.removeAll(); + Container grid = new Container(new GridLayout(2, 3)); + grid.add(stat("Players", s.players())).add(stat("Active today", s.activeToday())) + .add(stat("Runs today", s.runsToday())).add(stat("Open flags", s.flagsOpen())) + .add(stat("Purchases", s.purchases())).add(statText("Top score", Hud.format(s.topScore()))); + c.add(grid); + c.add(new Label("Today's seed " + s.dailySeed(), "Muted")); + c.revalidate(); + }), Ui::failed)); + } + + private static Container stat(String name, int value) { + return statText(name, String.valueOf(value)); + } + + private static Container statText(String name, String value) { + return BoxLayout.encloseY(new Label(value, "BigScore"), new Label(name, "Muted")); + } + + // ---- players -------------------------------------------------------------------- + + static void players(final Container c) { + final TextField q = new TextField("", "Search by name or email", 20, TextField.ANY); + q.setName("adminSearch"); + final Container rows = new Container(BoxLayout.y()); + q.setDoneListener(e -> search(rows, q.getText())); + c.add(Ui.panel(q, Ui.primary("Search", "adminSearchButton", e -> search(rows, q.getText())))); + c.add(rows); + search(rows, ""); + } + + static void search(final Container rows, String q) { + Api.admin().players(q, Net.to(list -> Ui.later(() -> { + rows.removeAll(); + for (PlayerDto p : list) { + rows.add(player(rows, p)); + } + rows.revalidate(); + }), Ui::failed)); + } + + private static Container player(final Container rows, final PlayerDto p) { + Container row = new Container(BoxLayout.y(), p.flagged() ? "RowMe" : "Row"); + String state = p.suspended() ? " (suspended)" : ""; + row.add(new Label(p.displayName() + " @" + p.username() + state)); + row.add(new Label("classic " + Hud.format(p.bestClassic()) + " fold " + Hud.format(p.bestFold()) + + " daily " + Hud.format(p.bestDaily()) + " runs " + p.runs(), "Muted")); + Container actions = new Container(new GridLayout(1, 4)); + actions.add(act(rows, p, "WARN", "Warn", 0)); + actions.add(act(rows, p, "SUSPEND", "7 days", 7)); + actions.add(act(rows, p, p.suspended() ? "UNBAN" : "BAN", p.suspended() ? "Unban" : "Ban", 0)); + actions.add(act(rows, p, "RESET_SCORES", "Reset", 0)); + row.add(actions); + return row; + } + + private static com.codename1.ui.Button act(final Container rows, final PlayerDto p, final String action, + String label, final int days) { + return Ui.button(label, "Plain", "act-" + action + "-" + p.username(), e -> Api.admin().act(p.username(), + new AdminActionDto(action, "From the console", days), + Net.to(after -> Ui.later(() -> search(rows, "")), Ui::failed))); + } + + // ---- flags ---------------------------------------------------------------------- + + static void flags(final Container c) { + Api.admin().flags(true, Net.to(list -> Ui.later(() -> fillFlags(c, list)), Ui::failed)); + } + + private static void fillFlags(final Container c, List list) { + c.removeAll(); + if (list.isEmpty()) { + c.add(new Label("Nothing to look at.", "Muted")); + } + for (final FlagDto fl : list) { + Container row = new Container(BoxLayout.y(), "Row"); + row.add(new Label(fl.displayName() + " " + fl.mode() + " " + Hud.format(fl.score()))); + row.add(new SpanLabel(fl.kills() + " cut in " + fl.seconds() + " s. " + fl.reason(), "Muted")); + Container both = new Container(new GridLayout(1, 2)); + both.add(Ui.secondary("Keep", "keep-" + fl.id(), e -> resolve(c, fl, "KEEP"))); + both.add(Ui.primary("Strike the run", "strike-" + fl.id(), e -> resolve(c, fl, "REMOVE"))); + row.add(both); + c.add(row); + } + c.revalidate(); + } + + private static void resolve(final Container c, FlagDto fl, String verdict) { + Api.admin().resolve(fl.id(), new ResolveDto(verdict), Net.to(done -> Ui.later(() -> flags(c)), + Ui::failed)); + } + + // ---- sheet and push ------------------------------------------------------------- + + static void sheet(final Container c) { + final TextField seed = new TextField("", "Seed for today's sheet", 20, TextField.NUMERIC); + seed.setName("dailySeed"); + c.add(Ui.panel(Ui.label("Today's sheet", "CardTitle"), + Ui.text("Every player is dealt the same creatures from this seed until midnight UTC.", "CardText"), + seed, Ui.primary("Deal this sheet", "setDaily", e -> { + long value; + try { + value = Long.parseLong(seed.getText().trim()); + } catch (NumberFormatException err) { + Ui.toast("A seed is a whole number"); + return; + } + Api.admin().setDaily(new DailySeedDto(value), Net.to(d -> Ui.later( + () -> Ui.toast("Today's sheet is seed " + d.seed())), Ui::failed)); + }))); + final TextField title = new TextField("Today's sheet is out", "Title", 30, TextField.ANY); + final TextArea body = new TextArea("New creatures, same page for everyone. Beat your friends."); + final TextField days = new TextField("0", "Only players away this many days (0 = all)", 4, + TextField.NUMERIC); + title.setName("pushTitle"); + body.setName("pushBody"); + c.add(Ui.panel(Ui.label("Push", "CardTitle"), title, body, days, + Ui.primary("Send", "sendPush", e -> { + int d = 0; + try { + d = Integer.parseInt(days.getText().trim()); + } catch (NumberFormatException err) { + d = 0; + } + Api.admin().broadcast(new BroadcastDto(null, title.getText(), body.getText(), d, 0, 0L), + Net.to(sent -> Ui.later(() -> Ui.toast("Sent to " + sent.targets() + " players")), + Ui::failed)); + }))); + } + + // ---- audit ---------------------------------------------------------------------- + + static void audit(final Container c) { + Api.admin().audit(Net.to(list -> Ui.later(() -> { + for (AuditDto a : list) { + c.add(BoxLayout.encloseY(new Label(a.admin() + " " + a.action() + " " + nz(a.username())), + new Label(nz(a.reason()), "Muted"))); + } + c.revalidate(); + }), Ui::failed)); + } + + private static String nz(String s) { + return s == null ? "" : s; + } +} +// end::ledge-admin[] diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Ads.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Ads.java new file mode 100644 index 00000000000..a52b4c9063c --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Ads.java @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.engage; + +import com.codename1.ads.AdConfig; +import com.codename1.ads.AdError; +import com.codename1.ads.AdFormat; +import com.codename1.ads.AdListener; +import com.codename1.ads.AdManager; +import com.codename1.ads.BannerAd; +import com.codename1.ads.InterstitialAd; +import com.codename1.ads.RewardedAd; +import com.codename1.ads.ServerSideVerificationOptions; +import com.codename1.ui.CN; +import com.codename1.ui.Component; +import com.codename1.ui.Dialog; +import com.codenameone.examples.ledge.AppConfig; +import com.codenameone.examples.ledge.net.Session; + +/// Advertising, through `com.codename1.ads`. Three placements, each the kind +/// players accept in a free game: +/// +/// - **Rewarded**: opt in, watch, get coins. The server grants the coins and +/// caps them per day, so a modified client gains nothing. +/// - **Interstitial**: between runs, at most every third one, never +/// during play and never for a player who has bought ink. +/// - **Banner**: on the home screen only. +/// +/// The ad network is a cn1lib (AdMob, AppLovin, ...) registered with +/// [AdManager]; this class names none of them. Where no network is installed +/// -- the simulator, the web build, a fork that has not added one yet -- a +/// rewarded ad is a short stand-in dialog, so the reward flow can be built and +/// tested end to end, and the other placements are simply absent. +// tag::ledge-ads[] +public final class Ads { + private static final int INTERSTITIAL_EVERY = 3; + private static int runsSinceAd; + + private Ads() { + } + + public static void start() { + if (AdManager.getProvider() != null) { + AdManager.initialize(new AdConfig().testMode(true), ready -> { }); + } + } + + /// Plays a rewarded ad and runs `granted` once the network says it was + /// watched to the end. + public static void rewarded(final Runnable granted, final Runnable unavailable) { + if (!AdManager.isInitialized() || !AdManager.isSupported(AdFormat.REWARDED)) { + standIn(granted); + return; + } + final RewardedAd ad = new RewardedAd(AppConfig.REWARDED_AD_UNIT); + // Server-side verification: the network calls the game's server with + // this user id, so a reward could be granted there and nowhere else. + String who = Session.user() == null ? "" : Session.user().username(); + ad.setServerSideVerificationOptions(new ServerSideVerificationOptions(who, "coins")); + ad.setAdListener(new AdListener() { + @Override + public void onLoaded() { + ad.show(reward -> CN.callSerially(granted)); + } + + @Override + public void onFailedToLoad(AdError error) { + CN.callSerially(unavailable); + } + }); + ad.load(); + } + + /// Called after every run; shows an interstitial every few. + public static void betweenRuns(boolean adFree) { + runsSinceAd++; + if (adFree || runsSinceAd < INTERSTITIAL_EVERY || !AdManager.isInitialized() + || !AdManager.isSupported(AdFormat.INTERSTITIAL)) { + return; + } + runsSinceAd = 0; + final InterstitialAd ad = new InterstitialAd(AppConfig.INTERSTITIAL_AD_UNIT); + ad.setAdListener(new AdListener() { + @Override + public void onLoaded() { + ad.show(); + } + }); + ad.load(); + } + + /// A banner for the home screen, or null where there is no network. + public static Component banner(boolean adFree) { + if (adFree || !AdManager.isInitialized() || !AdManager.isSupported(AdFormat.BANNER)) { + return null; + } + BannerAd banner = new BannerAd(AppConfig.BANNER_AD_UNIT); + banner.load(); + return banner; + } + + private static void standIn(final Runnable granted) { + Dialog d = new Dialog("Sponsored", new com.codename1.ui.layouts.BorderLayout()); + d.setUIID("AdDialog"); + d.add(com.codename1.ui.layouts.BorderLayout.CENTER, + new com.codename1.components.SpanLabel("An ad would play here. Install an ad network cn1lib " + + "to show real ones.")); + d.setTimeout(1500); + d.show(); + granted.run(); + } +} +// end::ledge-ads[] diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Notifications.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Notifications.java new file mode 100644 index 00000000000..2b286335bac --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Notifications.java @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.engage; + +import com.codename1.io.Log; +import com.codename1.io.Preferences; +import com.codename1.push.PushClient; +import com.codename1.push.PushError; +import com.codename1.push.PushListener; +import com.codename1.push.PushMessage; +import com.codename1.push.PushSubscription; +import com.codename1.ui.CN; +import com.codenameone.examples.ledge.AppConfig; +import com.codenameone.examples.ledge.api.PushDeviceDto; +import com.codenameone.examples.ledge.net.Api; +import com.codename1.appkit.Net; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.ui.Nav; + +/// Push notifications, the game's way of bringing a player back: a friend +/// accepted your challenge, your daily rewards are ready, and -- for admins +/// -- a player was flagged. +/// +/// The device registers with `com.codename1.push`, then hands its token to +/// the server, which sends through the Codename One push service. A player +/// can turn them off in Settings; the server is told, and stops. +// tag::ledge-push[] +public final class Notifications { + private static final String ENABLED = "ledge.push"; + private static PushClient client; + private static PushSubscription subscription; + + private Notifications() { + } + + public static boolean enabled() { + return Preferences.get(ENABLED, true); + } + + public static void setEnabled(boolean on) { + Preferences.set(ENABLED, on); + if (on) { + start(); + } else { + signingOut(() -> { }); + } + } + + public static void start() { + if (!available() || !enabled()) { + return; + } + if (client == null) { + client = PushClient.builder(AppConfig.PUSH_APP_KEY).listener(new Listener()).build(); + } + client.register(); + } + + /// Tells the server where to reach this device; called after signing in. + public static void signedIn() { + PushDeviceDto device = device(); + if (device != null && Session.user() != null && enabled()) { + Api.account().registerPush(device, Net.to(saved -> { }, (s, m) -> { })); + } + } + + public static void signingOut(Runnable then) { + PushDeviceDto device = device(); + if (device == null || Session.user() == null) { + then.run(); + return; + } + Api.account().unregisterPush(device, Net.to(gone -> then.run(), (s, m) -> then.run())); + } + + /// Only on a phone with a push key configured; the simulator and the web + /// build simply never ask. + public static boolean available() { + if (AppConfig.PUSH_APP_KEY.length() == 0 || CN.isSimulator()) { + return false; + } + String platform = CN.getPlatformName(); + return "and".equals(platform) || "ios".equals(platform); + } + + private static PushDeviceDto device() { + if (subscription == null) { + return null; + } + return new PushDeviceDto(subscription.getTransportId(), subscription.getToken(), + CN.getPlatformName()); + } + + private static final class Listener implements PushListener { + @Override + public void onRegistration(PushSubscription registered) { + subscription = registered; + signedIn(); + } + + /// A tap on a notification opens the screen it is about. + @Override + public void onMessage(PushMessage message) { + if (Session.user() == null) { + return; + } + // The keys are the ones the server's Broadcasts puts in `data`. + Object screen = message.getData().get("screen"); + if ("admin".equals(screen) && Session.user().admin()) { + Nav.adminConsole(); + } else if ("daily".equals(screen)) { + Nav.daily(); + } else { + Nav.home(); + } + } + + @Override + public void onError(PushError error) { + Log.p("Push registration failed: " + error.getCode() + " " + error.getMessage()); + } + } +} +// end::ledge-push[] diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Store.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Store.java new file mode 100644 index 00000000000..d10befd8312 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/engage/Store.java @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.engage; + +import com.codename1.io.Log; +import com.codename1.payment.Product; +import com.codename1.payment.Purchase; +import com.codename1.payment.Receipt; +import com.codename1.ui.CN; +import com.codenameone.examples.ledge.api.ReceiptDto; +import com.codenameone.examples.ledge.api.WalletDto; +import com.codenameone.examples.ledge.net.Api; +import com.codename1.appkit.Net; +import java.util.List; + +/// In-app purchases, through `com.codename1.payment`. +/// +/// The store takes the money; the game's server grants what was bought. A +/// purchase the device reports is sent to the server as a receipt, the server +/// asks Apple or Google whether it is real, and only then adds the ink -- +/// once, however many times the receipt arrives. A client that claims a +/// purchase it did not make gets nothing. +/// +/// The main class implements `PurchaseCallback`, which is how Codename One +/// reports a finished purchase; it calls [#purchased]. +// tag::ledge-store[] +public final class Store { + /// Told about the wallet after the server granted a purchase. + public interface Granted { + void granted(WalletDto wallet); + } + + private static Granted listener; + + private Store() { + } + + public static void listen(Granted granted) { + listener = granted; + } + + /// Whether a real store takes the money. The simulator's own store stands + /// in for one only when the app's main class is running to hear back, so + /// here the simulator takes the simulated-receipt path instead, which + /// exercises the same server validation. + public static boolean available() { + Purchase p = Purchase.getInAppPurchase(); + return !CN.isSimulator() && p != null && p.isManagedPaymentSupported(); + } + + /// The store's own price for `sku`, in the player's currency, or null + /// where there is no store to ask (the simulator) or it has not said. + public static String price(String sku) { + if (!available()) { + return null; + } + Product[] products = Purchase.getInAppPurchase().getProducts(new String[] {sku}); + if (products == null || products.length == 0 || products[0] == null) { + return null; + } + String p = products[0].getLocalizedPrice(); + return p == null || p.length() == 0 ? null : p; + } + + /// Starts buying `sku` from the platform's store. In the simulator the + /// purchase completes at once with a simulated receipt, which the server + /// accepts on its development profiles only. + public static void buy(String sku) { + if (available()) { + Purchase.getInAppPurchase().purchase(sku); + } else { + redeem(new ReceiptDto(Receipt.STORE_CODE_SIMULATOR, sku, + "sim-" + System.currentTimeMillis(), "")); + } + } + + /// From `PurchaseCallback.itemPurchased`: finds the store's receipt and + /// sends it to the server. + public static void purchased(String sku) { + Purchase p = Purchase.getInAppPurchase(); + if (p == null) { + return; + } + Receipt[] receipts = p.getReceipts(sku); + if (receipts == null || receipts.length == 0) { + return; + } + Receipt r = receipts[receipts.length - 1]; + redeem(new ReceiptDto(r.getStoreCode(), sku, r.getTransactionId(), r.getOrderData())); + } + + /// Sends every receipt the store still holds. The server grants each only + /// once, so this is safe to repeat; it picks up a purchase whose first + /// report was lost when the app was killed mid-way. + public static void resend() { + Purchase p = Purchase.getInAppPurchase(); + if (p == null || !available()) { + return; + } + List all = p.getReceipts(); + for (int i = 0; i < all.size(); i++) { + Receipt r = all.get(i); + redeem(new ReceiptDto(r.getStoreCode(), r.getSku(), r.getTransactionId(), r.getOrderData())); + } + } + + private static void redeem(ReceiptDto receipt) { + Api.shop().receipt(receipt, Net.to(wallet -> { + if (listener != null) { + CN.callSerially(() -> listener.granted(wallet)); + } + }, (status, message) -> Log.p("Receipt refused: " + status + " " + message))); + } +} +// end::ledge-store[] diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Api.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Api.java new file mode 100644 index 00000000000..5877ebfc7be --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Api.java @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.net; + +import com.codename1.io.rest.RestClients; +import com.codenameone.examples.ledge.api.AccountApi; +import com.codenameone.examples.ledge.api.AdminApi; +import com.codenameone.examples.ledge.api.FriendsApi; +import com.codenameone.examples.ledge.api.ProgressApi; +import com.codenameone.examples.ledge.api.RunApi; +import com.codenameone.examples.ledge.api.ShopApi; + +/// The generated REST clients, one per contract in the shared module, all +/// pointed at the server [Session] is using. +public final class Api { + private static AccountApi account; + private static RunApi runs; + private static FriendsApi friends; + private static ShopApi shop; + private static ProgressApi progress; + private static AdminApi admin; + + private Api() { + } + + static void connect(String baseUrl) { + account = RestClients.create(AccountApi.class, baseUrl); + runs = RestClients.create(RunApi.class, baseUrl); + friends = RestClients.create(FriendsApi.class, baseUrl); + shop = RestClients.create(ShopApi.class, baseUrl); + progress = RestClients.create(ProgressApi.class, baseUrl); + admin = RestClients.create(AdminApi.class, baseUrl); + } + + public static AccountApi account() { + return account; + } + + public static RunApi runs() { + return runs; + } + + public static FriendsApi friends() { + return friends; + } + + public static ShopApi shop() { + return shop; + } + + public static ProgressApi progress() { + return progress; + } + + public static AdminApi admin() { + return admin; + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Session.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Session.java new file mode 100644 index 00000000000..62c25e9d61c --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/net/Session.java @@ -0,0 +1,543 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.net; + +import com.codename1.appkit.Net; + +import com.codename1.io.ConnectionRequest; +import com.codename1.io.JSONParser; +import com.codename1.io.NetworkManager; +import com.codename1.io.RequestAuthorizer; +import com.codename1.io.Util; +import com.codename1.io.oidc.OidcClient; +import com.codename1.io.oidc.OidcConfiguration; +import com.codename1.io.oidc.OidcRequestAuthorizer; +import com.codename1.io.oidc.OidcTokens; +import com.codename1.io.oidc.PkceChallenge; +import com.codename1.io.oidc.SecureStorageTokenStore; +import com.codename1.io.oidc.TokenStore; +import com.codename1.ui.CN; +import com.codename1.util.SuccessCallback; +import com.codenameone.examples.ledge.AppConfig; +import com.codenameone.examples.ledge.api.PlayerDto; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.Map; + +/// Who is signed in, and the tokens that say so. +/// +/// Signing in is OAuth's authorization-code flow with PKCE against the app's +/// own server, made without a browser: the app shows its own sign-in screen, +/// posts the password to the server for a short-lived session, exchanges the +/// session for an authorization code and the code for tokens. The password is +/// sent once, to the server that owns it, and is never stored; what is stored +/// is the token pair, in the device's secure storage. +/// +/// From then on [OidcRequestAuthorizer] does the work: it puts the access token +/// on every request under `/api`, renews it shortly before it expires, and +/// renews and retries when the server refuses one. When renewing fails -- the +/// refresh token ran out, or the account was suspended -- it says so, and the +/// app goes back to the welcome screen. +public final class Session { + private static final String STORE_PREFIX = "ledge"; + private static final String SESSION_COOKIE = "CN1SESSION"; + + private static String base; + private static OidcClient client; + private static OidcRequestAuthorizer authorizer; + private static TokenStore store; + private static PlayerDto user; + private static Runnable onSignedOut; + /// Counts the sessions: moved on whenever the server changes, an account + /// signs in, or the session ends. An answer to a request made in an + /// earlier session describes somebody who is no longer signed in here -- + /// another server's account, or the account before a sign-out on this + /// one -- and is dropped rather than installed for whoever is now. + private static int session; + + private Session() { + } + + /// Points the app at a server. Called at start-up, and again when the + /// server address is changed. + public static void start(String baseUrl) { + if (store == null) { + // Falls back to ordinary storage where the platform has no keystore + // to offer, which is the simulator. + store = new SecureStorageTokenStore().allowPlainStorageFallback(true); + } + if (base != null) { + NetworkManager.getInstance().setAuthorizer(base + "/api", null); + if (!base.equals(baseUrl)) { + // Changing the server ends the session with the old one, and + // its tokens go with it. + store.clear(storeKey(base)); + } + } + base = baseUrl; + setUser(null); + session++; + client = OidcClient.create(OidcConfiguration.newBuilder() + .issuer(base) + .authorizationEndpoint(base + "/oauth2/authorize") + .tokenEndpoint(base + "/oauth2/token") + .revocationEndpoint(base + "/oauth2/revoke") + .jwksUri(base + "/oauth2/jwks") + .build()) + .setClientId(AppConfig.CLIENT_ID) + .setRedirectUri(AppConfig.redirectUri()) + .setScopes("openid", "profile") + .setTokenStore(store) + .setStoreKey(storeKey(base)); + authorizer = new OidcRequestAuthorizer(client); + authorizer.install(base + "/api"); + // Not tied to this start(). A request to an earlier server still in + // flight when the app switched, answered 401 with its refresh refused, + // signs the new server out too: one more sign-in, after a server + // switch that already asked for one, and nothing of either account is + // exposed by it. + authorizer.addSignInRequiredListener((source, reason) -> { + setUser(null); + session++; + if (onSignedOut != null) { + onSignedOut.run(); + } + }); + Api.connect(base); + } + + /// Where the tokens issued by one server are kept: under a name made from + /// that server's address. + /// + /// One name for every server would hand the tokens of the last one to + /// whichever address is typed next -- the app would restore them and send + /// them, refresh token included, to a server that never issued them. + /// Every character that is not a letter or a digit is written as its code, + /// so two addresses never share a name and the name is one any platform's + /// storage accepts. + static String storeKey(String server) { + StringBuilder key = new StringBuilder(STORE_PREFIX).append('-'); + for (int iter = 0; iter < server.length(); iter++) { + char c = server.charAt(iter); + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) { + key.append(c); + } else { + key.append('_').append(Integer.toHexString(c)).append('_'); + } + } + return key.toString(); + } + + /// Keeps the tokens somewhere else. The tests keep them in memory, so one + /// run leaves nothing behind for the next. + public static void useStore(TokenStore tokens) { + store = tokens; + } + + /// What to do when the session ends without the user asking: go back to + /// the welcome screen. + public static void onSignedOut(Runnable handler) { + onSignedOut = handler; + } + + public static String serverUrl() { + return base; + } + + /// The signed-in user as the server last described them, or null. + public static PlayerDto user() { + return user; + } + + public static void setUser(PlayerDto described) { + user = described; + } + + /// Who what the device keeps belongs to: the signed-in account, or null. + /// See [#owner(String)]. + public static String owner() { + return user == null || user.username() == null ? null : owner(user.username()); + } + + /// The device's name for the account `username` on the server in use. A + /// name is unique on one server only: the same e-mail address signed in + /// to two servers is two accounts, and what one left -- recent places, + /// a change it has not sent yet -- is not the other's to see or send. + public static String owner(String username) { + return storeKey(base == null ? "" : base) + "/" + accountName(username); + } + + /// Picks up the session a previous run left, if it is still good. + /// + /// @param signedIn there is a session, and [#user] is set + /// @param signedOut there is none + /// @param unreachable there is one, but the server did not answer + public static void restore(final Runnable signedIn, final Runnable signedOut, + final Runnable unreachable) { + // Loading the tokens can outlast the session it was asked in -- the + // server is changed while it reads -- and then neither answer is this + // session's to act on: see [#session]. + final int asked = session; + authorizer.load().ready(new SuccessCallback() { + @Override + public void onSucess(OidcTokens tokens) { + if (asked != session) { + return; + } + if (tokens == null || tokens.getAccessToken() == null) { + signedOut.run(); + return; + } + refreshUser(signedIn, (status, message) -> { + if (status == 0) { + unreachable.run(); + } else { + signedOut.run(); + } + }); + } + }).except(new SuccessCallback() { + @Override + public void onSucess(Throwable err) { + if (asked == session) { + signedOut.run(); + } + } + }); + } + + /// Asks the server who this is. The roles in the answer decide which modes + /// the app offers, so it is asked again whenever that could have changed. + public static void refreshUser(final Runnable done, Net.Failed failed) { + // An answer from a session that has since ended -- the server was + // changed while an approval poll waited, or the account signed out + // and another signed in -- describes that account, not this one; + // it is dropped. See [#session]. + final int asked = session; + Api.account().me(Net.to(described -> { + if (asked != session) { + return; + } + setUser(described); + done.run(); + }, (status, message) -> { + if (asked == session) { + failed.failed(status, message); + } + })); + } + + /// Signs in with an e-mail address and password. + /// An e-mail address the way the server names its account: trimmed, with + /// its ASCII letters in lower case (`Accounts.email` on the server). Signing + /// in as `Player@Ledge.example` must reach, and record its mode under, the + /// same account as `player@ledge.example`. Folded by hand: `toLowerCase()` + /// follows the device locale, and under Turkish the `I` would not fold to `i`. + public static String accountName(String email) { + if (email == null) { + return null; + } + char[] chars = email.trim().toCharArray(); + for (int iter = 0; iter < chars.length; iter++) { + char c = chars[iter]; + if (c >= 'A' && c <= 'Z') { + chars[iter] = (char) (c + ('a' - 'A')); + } + } + return new String(chars); + } + + public static void signIn(String email, String password, final Runnable done, + final Net.Failed failed) { + // The server can be changed while the sign-in is under way, and + // start() then puts a new authorizer in place. Tokens the old server + // issued are dropped rather than installed in the new one, which would + // send them -- the refresh token too -- to a server that never issued + // them. See [#session]. + final int asked = session; + authenticate(email, password, tokens -> { + if (asked != session) { + return; + } + session++; + authorizer.setTokens(tokens); + store.save(storeKey(base), tokens); + refreshUser(done, failed); + }, failed); + } + + /// Exchanges an e-mail address and password for tokens, and does nothing + /// with them: [#signIn] is this, and then keeping what comes back. + public static void authenticate(final String email, final String password, + final Net.Ok got, final Net.Failed failed) { + final PkceChallenge pkce = PkceChallenge.generate(); + // Any unguessable value does for the state; this is one. + final String state = PkceChallenge.generate().getVerifier(); + // In a browser the app sees neither the session cookie nor a redirect: + // the browser keeps the first and follows the second. So there the + // password's answer is its status, and the code is read from the page + // the redirect ends on -- see AppConfig.redirectUri(). + final boolean web = AppConfig.pageOrigin() != null; + final String redirect = AppConfig.redirectUri(); + + // Every step goes to the server the sign-in started with, and none goes + // anywhere once the user has changed server: the session cookie of + // step 1 and the verifier of step 3 are only for the first server, and + // a new one that received them could replay them there for tokens. + final String server = base; + // 1. The password, for a session. + final Step login = new Step("POST", server + "/login"); + login.addArgument("username", accountName(email)); + login.addArgument("password", password); + login.send(() -> { + if (!server.equals(base)) { + failed.failed(0, "The server changed. Sign in again."); + return; + } + if (login.status == 0) { + failed.failed(0, "Could not reach the server. Check your connection."); + return; + } + if (login.status == 429) { + failed.failed(429, "Too many attempts. Wait a minute and try again."); + return; + } + if (web ? login.status != 200 : login.session == null) { + failed.failed(401, "That e-mail and password do not match an account."); + return; + } + // 2. The session, for an authorization code. + final Step authorize = new Step("GET", server + "/oauth2/authorize"); + if (web) { + // Or a session that did not take is answered with a page. + authorize.addRequestHeader("Accept", "application/json"); + } else { + authorize.addRequestHeader("Cookie", login.session); + } + authorize.addArgument("response_type", "code"); + authorize.addArgument("client_id", AppConfig.CLIENT_ID); + authorize.addArgument("redirect_uri", redirect); + authorize.addArgument("scope", "openid profile"); + authorize.addArgument("state", state); + authorize.addArgument("code_challenge", pkce.getChallenge()); + authorize.addArgument("code_challenge_method", pkce.getMethod()); + authorize.send(() -> { + if (!server.equals(base)) { + failed.failed(0, "The server changed. Sign in again."); + return; + } + String code = web ? authorize.answer("code") + : parameter(authorize.location, "code"); + String returned = web ? authorize.answer("state") + : parameter(authorize.location, "state"); + // The state has to come back as it went: a code that arrives + // with another was not issued for this sign-in. + if (code == null || !state.equals(returned)) { + failed.failed(authorize.status, "Signing in failed. Try again."); + return; + } + // 3. The code, for tokens. + final Step token = new Step("POST", server + "/oauth2/token"); + token.addArgument("grant_type", "authorization_code"); + token.addArgument("code", code); + token.addArgument("redirect_uri", redirect); + token.addArgument("code_verifier", pkce.getVerifier()); + token.addArgument("client_id", AppConfig.CLIENT_ID); + token.send(() -> { + if (!server.equals(base)) { + failed.failed(0, "The server changed. Sign in again."); + return; + } + OidcTokens tokens = token.status == 200 ? token.tokens() : null; + if (tokens == null || tokens.getAccessToken() == null) { + failed.failed(token.status, "Signing in failed. Try again."); + return; + } + // 4. The session has done its work, and is ended rather + // than left to run out: in a browser it is a cookie that + // would go on signing this user in to whoever sat down + // next. Nothing waits on the answer; the tokens stand + // without it. + Step end = new Step("POST", server + "/logout"); + if (!web) { + end.addRequestHeader("Cookie", login.session); + } + end.send(() -> { }); + got.got(tokens); + }); + }); + }); + } + + /// Signs out: the refresh token is revoked at the server, so the session + /// is over there too and not only forgotten here. + public static void signOut(final Runnable done) { + OidcTokens tokens = authorizer.getTokens(); + if (tokens != null && tokens.getRefreshToken() != null) { + // Sent and not waited for. Signing out is something the user does + // to this phone, and it is done here whether or not the server + // answers: the tokens are gone from the device either way. A + // revocation that is lost leaves a refresh token only someone who + // already copied it off the phone could use, and it expires on + // its own; holding the sign-out until the network allows would + // trap the user signed in on a phone with no connection. + client.revoke(tokens.getRefreshToken()); + } + setUser(null); + session++; + authorizer.signOut().ready(new SuccessCallback() { + @Override + public void onSucess(Boolean cleared) { + done.run(); + } + }).except(new SuccessCallback() { + @Override + public void onSucess(Throwable err) { + done.run(); + } + }); + } + + /// A parameter of the query string of `url`, or null. + static String parameter(String url, String name) { + int query = url == null ? -1 : url.indexOf('?'); + if (query < 0) { + return null; + } + int at = query + 1; + while (at < url.length()) { + int end = url.indexOf('&', at); + if (end < 0) { + end = url.length(); + } + if (url.startsWith(name + "=", at)) { + return Util.decode(url.substring(at + name.length() + 1, end), "UTF-8", false); + } + at = end + 1; + } + return null; + } + + /// One request of the sign-in. It follows no redirect and keeps no cookie + /// jar, because the redirect and the cookie are the answers it is after; + /// and it carries no bearer token, because there is not one yet. + private static final class Step extends ConnectionRequest { + int status; + String location; + String session; + private byte[] body; + private Runnable then; + private boolean reported; + + Step(String method, String url) { + setUrl(url); + setHttpMethod(method); + setPost(!"GET".equals(method)); + setFollowRedirects(false); + setCookiesEnabled(false); + setReadResponseForErrors(true); + setDuplicateSupported(true); + setFailSilently(true); + setAuthorizer(RequestAuthorizer.NONE); + } + + void send(Runnable next) { + then = next; + NetworkManager.getInstance().addToQueue(this); + } + + /// A text member of the JSON this request was answered with, or null. + String answer(String name) { + if (status != 200 || body == null) { + return null; + } + try { + Map json = new JSONParser().parseJSON(new InputStreamReader( + new ByteArrayInputStream(body), "UTF-8")); + Object value = json == null ? null : json.get(name); + return value instanceof String ? (String) value : null; + } catch (IOException malformed) { + return null; + } catch (RuntimeException malformed) { + return null; + } + } + + OidcTokens tokens() { + try { + Map json = new JSONParser().parseJSON(new InputStreamReader( + new ByteArrayInputStream(body == null ? new byte[0] : body), "UTF-8")); + return OidcTokens.fromTokenResponse(json, null); + } catch (IOException malformed) { + return null; + } catch (RuntimeException malformed) { + return null; + } + } + + @Override + protected void readHeaders(Object connection) throws IOException { + location = getHeader(connection, "Location"); + String[] cookies = getHeaders(connection, "Set-Cookie"); + for (int iter = 0; cookies != null && iter < cookies.length; iter++) { + if (cookies[iter] != null && cookies[iter].startsWith(SESSION_COOKIE + "=")) { + int end = cookies[iter].indexOf(';'); + session = end < 0 ? cookies[iter] : cookies[iter].substring(0, end); + } + } + } + + @Override + protected void handleErrorResponseCode(int code, String message) { + status = code; + } + + @Override + protected void readResponse(InputStream input) throws IOException { + if (status == 0) { + status = getResponseCode(); + } + body = Util.readInputStream(input); + } + + @Override + protected void postResponse() { + if (status == 0) { + status = getResponseCode(); + } + report(); + } + + @Override + protected void handleException(Exception err) { + status = 0; + report(); + } + + private void report() { + if (!reported) { + reported = true; + CN.callSerially(then); + } + } + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/AchievementsForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/AchievementsForm.java new file mode 100644 index 00000000000..1f67e0b7763 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/AchievementsForm.java @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.Container; +import com.codename1.ui.FontImage; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codenameone.examples.ledge.api.AchievementDto; +import com.codenameone.examples.ledge.net.Api; +import java.util.List; + +/// Goals, worked out by the server from the runs it accepted, so they cannot +/// be unlocked by a run it refused. +public final class AchievementsForm { + private AchievementsForm() { + } + + public static void show() { + Form f = Ui.form("Achievements", "achievements"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final Container list = new Container(BoxLayout.y()); + f.add(list); + Api.progress().achievements(Net.to(rows -> Ui.later(() -> fill(list, rows)), Ui::failed)); + f.show(); + } + + private static void fill(Container list, List rows) { + for (AchievementDto a : rows) { + Container row = new Container(new BorderLayout(), a.unlocked() ? "RowMe" : "Row"); + Label icon = new Label("", "Accent"); + FontImage.setMaterialIcon(icon, a.unlocked() ? FontImage.MATERIAL_EMOJI_EVENTS + : FontImage.MATERIAL_LOCK_OUTLINE, 5); + row.add(BorderLayout.WEST, icon); + Container text = BoxLayout.encloseY(new Label(a.name()), new Label(a.description(), "Muted")); + row.add(BorderLayout.CENTER, text); + if (!a.unlocked() && a.goal() > 0) { + row.add(BorderLayout.SOUTH, Ui.bar((int) Math.min(a.progress(), a.goal()), + (int) a.goal(), 0xd4483c)); + } + list.add(row); + } + list.revalidate(); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/FriendsForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/FriendsForm.java new file mode 100644 index 00000000000..abf1d3fa847 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/FriendsForm.java @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.Container; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.TextField; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codenameone.examples.ledge.api.FriendAddDto; +import com.codenameone.examples.ledge.api.FriendDto; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.play.Hud; +import java.util.List; + +/// The people on the Friends board. Adding someone is one way: they appear on +/// your board, and you on theirs only if they add you back. +public final class FriendsForm { + private FriendsForm() { + } + + public static void show() { + Form f = Ui.form("Friends", "friends"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final Container list = new Container(BoxLayout.y()); + final TextField name = new TextField("", "Name or username", 20, TextField.ANY); + name.setName("friendName"); + f.add(Ui.panel(name, Ui.primary("Add", "addFriend", e -> Api.friends().add( + new FriendAddDto(name.getText().trim()), Net.to(rows -> Ui.later(() -> { + name.setText(""); + fill(list, rows); + }), Ui::failed))))); + f.add(list); + Api.friends().friends(Net.to(rows -> Ui.later(() -> fill(list, rows)), Ui::failed)); + f.show(); + } + + static void fill(final Container list, List rows) { + list.removeAll(); + if (rows.isEmpty()) { + list.add(new Label("No friends on your board yet.", "Muted")); + } + for (final FriendDto fr : rows) { + Container row = new Container(new BorderLayout(), "Row"); + row.add(BorderLayout.CENTER, BoxLayout.encloseY(new Label(fr.displayName()), + new Label("best " + Hud.format(fr.bestClassic()), "Muted"))); + row.add(BorderLayout.EAST, Ui.button("Remove", "Plain", "remove-" + fr.username(), + e -> Api.friends().remove(new FriendAddDto(fr.username()), + Net.to(after -> Ui.later(() -> fill(list, after)), Ui::failed)))); + list.add(row); + } + list.revalidate(); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/HomeForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/HomeForm.java new file mode 100644 index 00000000000..d87a2e0287d --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/HomeForm.java @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.ui.Button; +import com.codename1.ui.Component; +import com.codename1.ui.Container; +import com.codename1.ui.FontImage; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codename1.ui.layouts.FlowLayout; +import com.codename1.ui.layouts.GridLayout; +import com.codename1.ui.layouts.LayeredLayout; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.engage.Ads; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.play.Arena; +import com.codenameone.examples.ledge.play.ArenaView; +import com.codenameone.examples.ledge.play.Bot; +import com.codenameone.examples.ledge.play.Hud; + +/// The first screen: a run the [Bot] plays on the page behind the menu, the +/// name, the three ways to play, and -- for a player who signed in -- their +/// bests, their ink and the way to everything else. +public final class HomeForm extends Form { + private final ArenaView attract; + + public HomeForm() { + super(new BorderLayout()); + setName("home"); + setScrollable(false); + getToolbar().setVisible(false); + attract = new ArenaView(new Arena(Arena.CLASSIC, System.currentTimeMillis())); + attract.setAutopilot(new Bot(0.8f)); + attract.setHost(new ArenaView.Host() { + @Override + public void runOver(Arena arena) { + attract.setArena(new Arena(Arena.CLASSIC, System.currentTimeMillis())); + } + + @Override + public void hudChanged() { + // The menu shows no score. + } + }); + + PlayerDto me = Session.user(); + Container menu = new Container(BoxLayout.y(), "Card"); + menu.setName("menu"); + menu.add(new Label("Ledge", "CardTitle")); + menu.add(new Label(me == null ? "Cut, fold, survive." : "Hello, " + me.displayName(), "CardText")); + menu.add(play("Classic", Arena.CLASSIC, "Button", "playClassic")); + menu.add(play("Today's sheet", Arena.DAILY, "Secondary", "playDaily")); + menu.add(play("Fold", Arena.FOLD, "Secondary", "playFold")); + if (me != null) { + menu.add(new Label("Best " + Hud.format(me.bestClassic()) + " ink " + me.inkCoins(), "Muted")); + } + + Container tools = new Container(new GridLayout(1, 5), "Container"); + tools.add(tool(FontImage.MATERIAL_LEADERBOARD, "boards", e -> LeaderboardForm.show())); + tools.add(tool(FontImage.MATERIAL_STOREFRONT, "shop", e -> ShopForm.show())); + tools.add(tool(FontImage.MATERIAL_EMOJI_EVENTS, "achievements", e -> AchievementsForm.show())); + tools.add(tool(FontImage.MATERIAL_GROUP, "friends", e -> FriendsForm.show())); + tools.add(tool(FontImage.MATERIAL_SETTINGS, "settings", e -> SettingsForm.show())); + menu.add(tools); + if (me == null) { + menu.add(Ui.button("Sign in for the boards", "Plain", "signIn", e -> SignInForm.show())); + } else if (me.admin()) { + menu.add(Ui.button("Console", "Plain", "console", e -> Nav.adminConsole())); + } + + Container front = new Container(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER)); + front.add(BorderLayout.CENTER, menu); + Component banner = Ads.banner(Ui.adFree()); + if (banner != null) { + front.add(BorderLayout.SOUTH, FlowLayout.encloseCenter(banner)); + } + Container layers = new Container(new LayeredLayout()); + layers.add(attract).add(front); + add(BorderLayout.CENTER, layers); + addShowListener(e -> attract.start()); + } + + private Button play(String name, int mode, String uiid, String id) { + Button b = new Button(name, uiid); + b.setName(id); + b.addActionListener(e -> { + attract.stop(); + Runs.play(mode); + }); + return b; + } + + private Button tool(char icon, String name, com.codename1.ui.events.ActionListener go) { + Button b = new Button("", "HudButton"); + b.setName(name); + FontImage.setMaterialIcon(b, icon, 4.5f); + b.addActionListener(e -> { + attract.stop(); + if (Session.user() == null && !"settings".equals(name)) { + SignInForm.show(); + } else { + go.actionPerformed(e); + } + }); + return b; + } + + /// The day's seed for a guest, the same for everyone on the same UTC day. + /// A signed-in player gets the server's, which an admin can override. + static long dailySeed() { + return System.currentTimeMillis() / 86400000L * 2654435761L + 17; + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/LeaderboardForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/LeaderboardForm.java new file mode 100644 index 00000000000..120da10f825 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/LeaderboardForm.java @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.Button; +import com.codename1.ui.ButtonGroup; +import com.codename1.ui.Container; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.RadioButton; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codename1.ui.layouts.GridLayout; +import com.codenameone.examples.ledge.api.DailyDto; +import com.codenameone.examples.ledge.api.LeaderDto; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.play.Arena; +import com.codenameone.examples.ledge.play.Hud; +import java.util.List; + +/// The boards: a mode (Classic, Fold, Today's sheet) by a period (all time, +/// this week, today, friends). The daily board is always today's. +public final class LeaderboardForm { + private static final String[] MODE_LABELS = {"Classic", "Fold", "Today's sheet"}; + private static final String[] PERIODS = {"ALL", "WEEK", "TODAY", "FRIENDS"}; + private static final String[] PERIOD_LABELS = {"All time", "Week", "Today", "Friends"}; + + private LeaderboardForm() { + } + + public static void show() { + Form f = Ui.form("Boards", "boards"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final Container list = new Container(BoxLayout.y()); + list.setName("boardRows"); + final int[] pick = {Arena.CLASSIC, 0}; + Container modes = segmented(MODE_LABELS, i -> { + pick[0] = i; + load(list, pick[0], pick[1]); + }); + Container periods = segmented(PERIOD_LABELS, i -> { + pick[1] = i; + load(list, pick[0], pick[1]); + }); + f.add(modes).add(periods).add(list); + load(list, pick[0], pick[1]); + f.show(); + } + + interface Pick { + void picked(int index); + } + + static Container segmented(String[] labels, final Pick pick) { + Container c = new Container(new GridLayout(1, labels.length)); + ButtonGroup g = new ButtonGroup(); + for (int i = 0; i < labels.length; i++) { + final int index = i; + RadioButton b = RadioButton.createToggle(labels[i], g); + b.setUIID(i == 0 ? "TabSelected" : "Tab"); + b.addActionListener(e -> { + for (int k = 0; k < c.getComponentCount(); k++) { + c.getComponentAt(k).setUIID(k == index ? "TabSelected" : "Tab"); + } + c.repaint(); + pick.picked(index); + }); + c.add(b); + } + g.setSelected(0); + return c; + } + + static void load(final Container list, int mode, int period) { + list.removeAll(); + list.add(new Label("Reading the board...", "Muted")); + list.revalidate(); + if (mode == Arena.DAILY) { + Api.runs().daily(Net.to(d -> Ui.later(() -> dailyHeader(list, d)), Ui::failed)); + } + Api.runs().leaderboard(Runs.modeName(mode), mode == Arena.DAILY ? "TODAY" : PERIODS[period], + Net.to(rows -> Ui.later(() -> fill(list, rows)), Ui::failed)); + } + + private static void dailyHeader(Container list, DailyDto d) { + Container card = new Container(BoxLayout.y(), "Card"); + card.add(new Label("Sheet of " + d.date(), "CardTitle")); + card.add(new Label(d.players() + " players - top " + Hud.format(d.topScore()) + + (d.topName() == null ? "" : " by " + d.topName()), "CardText")); + card.add(new Label("Your best today: " + Hud.format(d.myBest()), "Accent")); + Button go = Ui.primary("Play today's sheet", "playDailyFromBoard", e -> Nav.daily()); + card.add(go); + list.addComponent(0, card); + list.revalidate(); + } + + private static void fill(Container list, List rows) { + for (int i = list.getComponentCount() - 1; i >= 0; i--) { + if (list.getComponentAt(i) instanceof Label) { + list.removeComponent(list.getComponentAt(i)); + } + } + if (rows.isEmpty()) { + list.add(new Label("Nobody yet. Be the first.", "Muted")); + } + for (LeaderDto r : rows) { + Container row = new Container(new BorderLayout(), r.me() ? "RowMe" : "Row"); + row.add(BorderLayout.WEST, new Label("#" + r.rank(), "Rank")); + row.add(BorderLayout.CENTER, new Label(r.displayName())); + row.add(BorderLayout.EAST, new Label(Hud.format(r.score()), "Accent")); + list.add(row); + } + list.revalidate(); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Nav.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Nav.java new file mode 100644 index 00000000000..d9c68311e3e --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Nav.java @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.ui.CN; +import com.codenameone.examples.ledge.AppConfig; +import com.codenameone.examples.ledge.admin.AdminConsole; +import com.codenameone.examples.ledge.engage.Notifications; +import com.codenameone.examples.ledge.engage.Store; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.play.Arena; + +/// Where the game goes between screens, in one place. +public final class Nav { + private static boolean wantDaily; + + private Nav() { + } + + /// The first screen is always the page with the menu on it: nobody has to + /// sign in to play. A stored session is picked up behind it, quietly. + public static void launch() { + wantDaily = AppConfig.openedForDaily(); + Session.onSignedOut(() -> CN.callSerially(Nav::home)); + Session.restore(() -> CN.callSerially(Nav::enter), () -> CN.callSerially(Nav::home), + () -> CN.callSerially(Nav::home)); + } + + /// Signed in, from a stored session or the sign-in screen. An admin who + /// was last in the console goes back there. + public static void enter() { + Notifications.signedIn(); + Store.resend(); + if (wantDaily) { + wantDaily = false; + daily(); + return; + } + if (Session.user() != null && Session.user().admin() + && "admin".equals(AppConfig.mode(Session.user().username()))) { + adminConsole(); + return; + } + home(); + } + + public static void signedIn() { + enter(); + } + + public static void home() { + if (Session.user() != null) { + AppConfig.setMode("player", Session.user().username()); + } + new HomeForm().show(); + } + + /// Today's sheet: the server deals the seed when it can, so every player + /// meets the same creatures. + public static void daily() { + Runs.play(Arena.DAILY); + } + + public static void adminConsole() { + AppConfig.setMode("admin", Session.user().username()); + AdminConsole.show(); + } + + public static void signOut() { + Notifications.signingOut(() -> Session.signOut(() -> CN.callSerially(Nav::home))); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/PlayForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/PlayForm.java new file mode 100644 index 00000000000..db6a15c1ac1 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/PlayForm.java @@ -0,0 +1,171 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.ui.Button; +import com.codename1.ui.CN; +import com.codename1.ui.Container; +import com.codename1.ui.FontImage; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codename1.ui.layouts.FlowLayout; +import com.codename1.ui.layouts.LayeredLayout; +import com.codenameone.examples.ledge.play.Arena; +import com.codenameone.examples.ledge.play.ArenaView; +import com.codenameone.examples.ledge.play.Hud; +import com.codenameone.examples.ledge.play.Sfx; + +/// A run: the [ArenaView] filling the screen, the [Hud] over it, a pause +/// button, and the card that comes up when the last quill is lost. +public final class PlayForm extends Form implements ArenaView.Host { + /// Told how a run ended, to submit it and move on. + public interface Outcome { + void finished(Arena arena, PlayForm form); + } + + private final ArenaView view; + private final Hud hud; + private final Container layers; + private final int mode; + private final long seed; + private final Outcome outcome; + private Container overlay; + + public PlayForm(int mode, long seed, Outcome outcome) { + super(new BorderLayout()); + setName("play"); + this.mode = mode; + this.seed = seed; + this.outcome = outcome; + setUIID("Form"); + setScrollable(false); + getToolbar().setVisible(false); + getToolbar().setUIID("Container"); + view = new ArenaView(new Arena(mode, seed)); + view.setHost(this); + hud = new Hud(view); + Button pause = new Button("", "HudButton"); + FontImage.setMaterialIcon(pause, FontImage.MATERIAL_PAUSE, 4); + pause.addActionListener(e -> pause()); + layers = new Container(new LayeredLayout()); + layers.add(view).add(hud); + layers.add(FlowLayout.encloseRightBottom(pause)); + add(BorderLayout.CENTER, layers); + if (mode == Arena.DAILY) { + hud.banner("Today's sheet"); + } else if (mode == Arena.FOLD) { + hud.banner("Fly through the gates"); + } + addShowListener(e -> view.start()); + } + + public ArenaView getView() { + return view; + } + + @Override + public void hudChanged() { + CN.callSerially(hud::repaint); + } + + @Override + public void runOver(Arena arena) { + if (outcome != null) { + outcome.finished(arena, this); + } else { + showOver(arena, null); + } + } + + /// The end-of-run card: the score, a note (a new best, a rank), and the + /// way on. + public void showOver(Arena arena, String note) { + Container card = new Container(BoxLayout.y(), "Card"); + card.add(new Label(mode == Arena.FOLD ? "Folded!" : "Torn up!", "CardTitle")); + card.add(new Label(Hud.format(arena.score), "BigScore")); + String line = arena.kills + " cut out - " + (int) arena.time + " s"; + if (mode == Arena.FOLD) { + line = arena.gates + " gates - " + (int) arena.time + " s"; + } + card.add(new Label(line, "CardText")); + if (note != null) { + card.add(new Label(note, "Accent")); + } + Button again = new Button("Again"); + again.setName("again"); + again.addActionListener(e -> Runs.play(mode)); + Button home = new Button("Menu", "Secondary"); + home.setName("menuFromResult"); + home.addActionListener(e -> Nav.home()); + card.add(BoxLayout.encloseX(again, home)); + showOverlay(card); + } + + private void pause() { + if (overlay != null || view.getArena().over) { + return; + } + view.pause(); + Container card = new Container(BoxLayout.y(), "Card"); + card.add(new Label("Paused", "CardTitle")); + Button resume = new Button("Resume"); + resume.addActionListener(e -> { + hideOverlay(); + view.resume(); + }); + Button sound = new Button(Sfx.isMuted() ? "Sound on" : "Sound off", "Secondary"); + sound.addActionListener(e -> { + Sfx.setMuted(!Sfx.isMuted()); + sound.setText(Sfx.isMuted() ? "Sound on" : "Sound off"); + }); + Button quit = new Button("Quit run", "Secondary"); + quit.addActionListener(e -> { + view.stop(); + Nav.home(); + }); + card.add(resume).add(sound).add(quit); + showOverlay(card); + } + + /// An in-form overlay rather than a Dialog: a dialog over a GPU view + /// paints grey on some ports, and this keeps the page visible behind it. + private void showOverlay(Container card) { + hideOverlay(); + overlay = new Container(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER), "Scrim"); + overlay.add(BorderLayout.CENTER, card); + layers.add(overlay); + layers.revalidate(); + } + + private void hideOverlay() { + if (overlay != null) { + overlay.remove(); + overlay = null; + layers.revalidate(); + } + } + + @Override + protected void onShowCompleted() { + super.onShowCompleted(); + Sfx.play(Sfx.FLIP); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Runs.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Runs.java new file mode 100644 index 00000000000..7c55d3b4584 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Runs.java @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codenameone.examples.ledge.api.RunDto; +import com.codenameone.examples.ledge.api.RunResultDto; +import com.codenameone.examples.ledge.api.RunTicketDto; +import com.codenameone.examples.ledge.api.StartRunDto; +import com.codenameone.examples.ledge.engage.Ads; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.play.Arena; +import com.codenameone.examples.ledge.play.Hud; + +/// A run from the server's side: a ticket before it, the result after it. +/// +/// The ticket is what makes a submitted score mean anything. It is issued +/// for one mode, carries the daily seed when there is one, and can be spent +/// once; the server then holds the score to `ScoreBounds`. A guest, or a +/// player whose server does not answer, still plays -- the run is simply not +/// submitted. +// tag::ledge-run-flow[] +public final class Runs { + private static final String[] MODES = {"CLASSIC", "FOLD", "DAILY"}; + + private Runs() { + } + + public static String modeName(int mode) { + return MODES[mode]; + } + + public static void play(final int mode) { + if (Session.user() == null) { + start(mode, mode == Arena.DAILY ? HomeForm.dailySeed() : System.currentTimeMillis(), null, 0); + return; + } + Api.runs().start(new StartRunDto(MODES[mode]), Net.to(ticket -> Ui.later(() -> withErasers(mode, ticket)), + (status, message) -> Ui.later(() -> { + Ui.toast("Playing offline: this run will not reach the boards."); + start(mode, mode == Arena.DAILY ? HomeForm.dailySeed() : System.currentTimeMillis(), null, 0); + }))); + } + + /// Spends the spare erasers bought in the shop on this run. + private static void withErasers(final int mode, final RunTicketDto ticket) { + final long seed = mode == Arena.DAILY ? ticket.seed() : System.currentTimeMillis(); + Api.shop().wallet(Net.to(wallet -> { + final int spare = wallet.erasers(); + if (spare <= 0 || mode == Arena.FOLD) { + Ui.later(() -> start(mode, seed, ticket, 0)); + return; + } + Api.shop().useErasers(Net.to(after -> Ui.later(() -> start(mode, seed, ticket, spare)), + (status, message) -> Ui.later(() -> start(mode, seed, ticket, 0)))); + }, (status, message) -> Ui.later(() -> start(mode, seed, ticket, 0)))); + } + + private static void start(int mode, long seed, final RunTicketDto ticket, int erasers) { + PlayForm f = new PlayForm(mode, seed, (arena, form) -> finished(arena, form, ticket)); + f.getView().getArena().addErasers(erasers); + f.show(); + } + + private static void finished(final Arena a, final PlayForm form, RunTicketDto ticket) { + Ads.betweenRuns(Ui.adFree()); + if (ticket == null) { + form.showOver(a, Session.user() == null ? "Sign in to put runs on the boards" : null); + return; + } + // A run whose submission fails is not kept for later: its ticket is + // single use and short lived, so a retry after the app restarts would + // be refused anyway. A live game that wants one would queue it here. + int seconds = Math.max(1, (int) Math.ceil(a.time)); + RunDto run = new RunDto(ticket.token(), ticket.mode(), a.score, a.kills, a.gates, seconds, + a.peakMultiplier); + Api.runs().submit(run, Net.to(result -> Ui.later(() -> form.showOver(a, note(result))), + (status, message) -> Ui.later(() -> form.showOver(a, "Not submitted: " + message)))); + } + + static String note(RunResultDto r) { + if (!r.accepted()) { + return r.message() == null ? "The server did not take this run" : r.message(); + } + StringBuilder b = new StringBuilder(); + if (r.newBest()) { + b.append("New best! "); + } + if (r.rank() > 0) { + b.append("#").append(r.rank()).append(" of all time "); + } + if (r.coinsEarned() > 0) { + b.append("+").append(r.coinsEarned()).append(" ink"); + } + if (b.length() == 0) { + b.append("Best ").append(Hud.format(r.best())); + } + return b.toString().trim(); + } +} +// end::ledge-run-flow[] diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SettingsForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SettingsForm.java new file mode 100644 index 00000000000..20015a60090 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SettingsForm.java @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.CheckBox; +import com.codename1.ui.Form; +import com.codename1.ui.TextField; +import com.codenameone.examples.ledge.AppConfig; +import com.codenameone.examples.ledge.api.ProfileDto; +import com.codenameone.examples.ledge.engage.Notifications; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.net.Session; +import com.codenameone.examples.ledge.play.Sfx; + +/// Sound, the daily-sheet notification, the name on the boards, the server +/// (so a phone can reach a laptop on the same network), and signing out. +public final class SettingsForm { + private SettingsForm() { + } + + public static void show() { + Form f = Ui.form("Settings", "settings"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final CheckBox sound = CheckBox.createToggle("Sound"); + sound.setName("sound"); + sound.setSelected(!Sfx.isMuted()); + sound.addActionListener(e -> Sfx.setMuted(!sound.isSelected())); + f.add(Ui.panel(Ui.label("Sound", "CardTitle"), sound)); + if (Notifications.available()) { + final CheckBox push = CheckBox.createToggle("Tell me when today's sheet is out"); + push.setName("push"); + push.setSelected(Notifications.enabled()); + push.addActionListener(e -> Notifications.setEnabled(push.isSelected())); + f.add(Ui.panel(push)); + } + if (Session.user() != null) { + final TextField name = new TextField(Session.user().displayName(), "Name on the boards", 20, + TextField.ANY); + name.setName("displayName"); + f.add(Ui.panel(Ui.label("You", "CardTitle"), name, + Ui.primary("Save", "saveProfile", e -> Api.account().saveProfile( + new ProfileDto(name.getText().trim(), Session.user().quill()), + Net.to(p -> Ui.later(() -> { + Session.setUser(p); + Ui.toast("Saved"); + }), Ui::failed))), + Ui.secondary("Sign out", "signOut", e -> Nav.signOut()))); + } + if (AppConfig.serverSwitchable()) { + final TextField server = new TextField(AppConfig.serverUrl(), "Server", 30, TextField.URL); + server.setName("server"); + f.add(Ui.panel(Ui.label("Server", "CardTitle"), server, Ui.secondary("Use this server", + "useServer", e -> { + AppConfig.setServerUrl(server.getText()); + Session.start(AppConfig.serverUrl()); + Nav.launch(); + }))); + } + f.show(); + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/ShopForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/ShopForm.java new file mode 100644 index 00000000000..d93d0c97498 --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/ShopForm.java @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.Button; +import com.codename1.ui.Container; +import com.codename1.ui.Form; +import com.codename1.ui.Label; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codenameone.examples.ledge.api.AdRewardDto; +import com.codenameone.examples.ledge.api.BuyDto; +import com.codenameone.examples.ledge.api.EquipDto; +import com.codenameone.examples.ledge.api.ShopItemDto; +import com.codenameone.examples.ledge.api.WalletDto; +import com.codenameone.examples.ledge.engage.Ads; +import com.codenameone.examples.ledge.engage.Store; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.net.Session; +import java.util.List; + +/// The shop: papers to cut the quill from, spare erasers for the next run, +/// ink coins for real money, and coins for watching an ad. Everything is +/// granted by the server; this screen only asks. +public final class ShopForm { + private ShopForm() { + } + + public static void show() { + final Form f = Ui.form("Shop", "shop"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final Container body = new Container(BoxLayout.y()); + f.add(body); + Store.listen(wallet -> Ui.later(() -> { + com.codename1.io.Preferences.set("ledge.paid", true); + reload(body); + })); + reload(body); + f.show(); + } + + static void reload(final Container body) { + Api.shop().wallet(Net.to(wallet -> Api.shop().items(Net.to(items -> Ui.later(() -> fill(body, wallet, + items)), Ui::failed)), Ui::failed)); + } + + private static void fill(final Container body, WalletDto w, List items) { + body.removeAll(); + Container top = new Container(new BorderLayout(), "Card"); + top.add(BorderLayout.WEST, Ui.wallet(w.inkCoins())); + top.add(BorderLayout.EAST, new Label(w.erasers() + " spare erasers", "Muted")); + body.add(top); + body.add(Ui.button("Watch an ad for 15 ink", "Secondary", "adReward", e -> Ads.rewarded( + () -> Api.shop().adReward(new AdRewardDto("ad-" + System.currentTimeMillis()), + Net.to(after -> Ui.later(() -> reload(body)), Ui::failed)), + () -> Ui.toast("No ad right now. Try again later.")))); + for (final ShopItemDto item : items) { + Container row = new Container(new BorderLayout(), "Row"); + Label name = new Label(item.name()); + if (item.colour() != null && item.colour().startsWith("#")) { + int c = Integer.parseInt(item.colour().substring(1), 16); + // The paper's own colour, unless it is too pale to read on the card. + int lum = ((c >> 16) & 0xff) * 3 + ((c >> 8) & 0xff) * 6 + (c & 0xff); + if (lum < 2000) { + name.getAllStyles().setFgColor(c); + } + } + row.add(BorderLayout.CENTER, name); + row.add(BorderLayout.EAST, action(body, w, item)); + body.add(row); + } + body.revalidate(); + } + + private static Button action(final Container body, WalletDto w, final ShopItemDto item) { + if (item.sku() != null && item.sku().length() > 0) { + String price = Store.price(item.sku()); + return Ui.primary(price == null ? "Buy" : price, "buy-" + item.id(), e -> Store.buy(item.sku())); + } + boolean owned = w.owned() != null && w.owned().contains(item.id()); + if ("QUILL".equals(item.kind()) && owned) { + boolean on = item.id().equals(w.quill()); + Button b = Ui.secondary(on ? "In use" : "Use", "equip-" + item.id(), e -> Api.shop().equip( + new EquipDto(item.id()), Net.to(after -> Ui.later(() -> { + Session.refreshUser(() -> { }, Ui::failed); + reload(body); + }), Ui::failed))); + b.setEnabled(!on); + return b; + } + Button b = Ui.primary(item.priceCoins() + " ink", "buy-" + item.id(), e -> Api.shop().buy( + new BuyDto(item.id()), Net.to(after -> Ui.later(() -> reload(body)), Ui::failed))); + b.setEnabled(w.inkCoins() >= item.priceCoins()); + return b; + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SignInForm.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SignInForm.java new file mode 100644 index 00000000000..b867e2d52de --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/SignInForm.java @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.appkit.Net; +import com.codename1.ui.Container; +import com.codename1.ui.Form; +import com.codename1.ui.TextField; +import com.codenameone.examples.ledge.api.RegisterDto; +import com.codenameone.examples.ledge.net.Api; +import com.codenameone.examples.ledge.net.Session; + +/// Signing in, and opening an account. Neither is needed to play: a guest +/// plays every mode, and signs in only to put a run on the boards. +public final class SignInForm { + private SignInForm() { + } + + // tag::ledge-signin[] + public static void show() { + Form f = Ui.form("Sign in", "signin"); + Ui.desktopColumn(f); + Ui.back(f, Nav::home); + final TextField email = field("Email", TextField.EMAILADDR, "email"); + final TextField password = field("Password", TextField.PASSWORD, "password"); + Container card = Ui.panel(Ui.label("Ledge", "CardTitle"), + Ui.label("Sign in to put your runs on the boards.", "CardText"), + email, password, + Ui.primary("Sign in", "signInButton", e -> Session.signIn(email.getText().trim(), + password.getText(), () -> Ui.later(Nav::signedIn), Ui::failed)), + Ui.secondary("New here? Open an account", "registerButton", e -> register())); + f.add(Ui.centeredColumn(Ui.column(card))); + f.show(); + } + // end::ledge-signin[] + + /// A new account: the name on the boards, then the sign-in details. + public static void register() { + Form f = Ui.form("New account", "register"); + Ui.desktopColumn(f); + Ui.back(f, SignInForm::show); + final TextField name = field("Name on the boards", TextField.ANY, "displayName"); + final TextField email = field("Email", TextField.EMAILADDR, "email"); + final TextField password = field("Password", TextField.PASSWORD, "password"); + Container card = Ui.panel(Ui.label("Pick a pen name", "CardTitle"), name, email, password, + Ui.primary("Open account", "createButton", e -> { + final String mail = email.getText().trim(); + final String pass = password.getText(); + Api.account().register(new RegisterDto(mail, pass, name.getText().trim()), + Net.to(player -> Session.signIn(mail, pass, () -> Ui.later(Nav::signedIn), + Ui::failed), Ui::failed)); + })); + f.add(Ui.centeredColumn(Ui.column(card))); + f.show(); + } + + static TextField field(String hint, int constraint, String name) { + TextField t = new TextField("", hint, 20, constraint); + t.setName(name); + return t; + } +} diff --git a/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Ui.java b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Ui.java new file mode 100644 index 00000000000..2d8435c9a6a --- /dev/null +++ b/scripts/ledge/common/src/main/java/com/codenameone/examples/ledge/ui/Ui.java @@ -0,0 +1,330 @@ +/* + * Copyright (c) 2026, Codename One and/or its affiliates. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ +package com.codenameone.examples.ledge.ui; + +import com.codename1.components.SpanLabel; +import com.codename1.components.ToastBar; +import com.codename1.io.Log; +import com.codename1.ui.Button; +import com.codename1.ui.CN; +import com.codename1.ui.Command; +import com.codename1.ui.Component; +import com.codename1.ui.Container; +import com.codename1.ui.Font; +import com.codename1.ui.FontImage; +import com.codename1.ui.Form; +import com.codename1.ui.Graphics; +import com.codename1.ui.Label; +import com.codename1.ui.Toolbar; +import com.codename1.ui.events.ActionEvent; +import com.codename1.ui.events.ActionListener; +import com.codename1.ui.geom.Dimension; +import com.codename1.ui.layouts.BorderLayout; +import com.codename1.ui.layouts.BoxLayout; +import com.codename1.ui.layouts.FlowLayout; +import com.codename1.ui.layouts.GridLayout; +import com.codename1.ui.plaf.Style; +import com.codename1.ui.plaf.UIManager; +import com.codename1.ui.util.Resources; +import com.codenameone.examples.ledge.api.PlayerDto; +import com.codenameone.examples.ledge.net.Session; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Hashtable; + +/// The few building blocks every screen is made of. None of them draws +/// anything itself: each one only names a UIID, and `theme.css` decides what a +/// `PrimaryButton`, a `Panel` or a `Banner` looks like. Re-skinning the game is +/// editing that file, not this one. +// tag::ledge-ui[] +public final class Ui { + /// The widest a column of fields and buttons grows, in millimetres. + public static final int MAX_COLUMN_MM = 90; + + private Ui() { + } + + /// A screen: a scrolling column on the game's backdrop, its name reported + /// to analytics and given to the form so tests can find it. + public static Form form(String title, String name) { + Form f = new Form(title, BoxLayout.y()); + f.setName(name); + f.setUIID("Form"); + f.getToolbar().setUIID("Toolbar"); + f.getToolbar().getTitleComponent().setUIID("Title"); + f.setTitle(caps(title)); + f.setScrollableY(true); + return f; + } + + /// On a desktop, lifts every theme font to the floor `Type` keeps for the + /// HUD. The stylesheet sizes its small print in millimetres, and a monitor + /// reports so few pixels to the millimetre that a 2mm caption -- a menu + /// item's subtitle, a store row's tag -- came out at seven pixels. Call it + /// once, before the first form shows. Does nothing on a phone or tablet. + public static void desktopFonts() { + if (!CN.isDesktop()) { + return; + } + float perMm = CN.convertToPixels(100f) / 100f; + if (perMm <= 0 || perMm >= 5.5f) { + return; + } + float scale = 5.5f / perMm; + try { + Resources r = Resources.openLayered("/theme"); + String[] names = r.getThemeResourceNames(); + if (names == null || names.length == 0) { + return; + } + Hashtable theme = r.getTheme(names[0]); + Hashtable lifted = new Hashtable(); + Enumeration keys = theme.keys(); + while (keys.hasMoreElements()) { + Object k = keys.nextElement(); + Object v = theme.get(k); + if (v instanceof Font && ((Font) v).isTTFNativeFont()) { + Font f = (Font) v; + v = f.derive(f.getPixelSize() * scale, f.getStyle()); + } + lifted.put(k, v); + } + UIManager.getInstance().setThemeProps(lifted); + } catch (IOException e) { + Log.e(e); + } + } + + /// The widest a list screen reads on a desktop, in pixels: a row with its + /// label at one edge of a monitor and its button at the other is two + /// things, not one. + static final int DESKTOP_PAGE_PX = 1000; + + /// `mm` millimetres in pixels, with the same desktop floor `desktopFonts` + /// gives the type. A monitor reports so few pixels to the millimetre that + /// a panel sized for a phone came out as a phone-sized box in the middle + /// of a large window; sized through this it grows with its text. + public static int mm(float mm) { + int px = CN.convertToPixels(mm); + if (!CN.isDesktop()) { + return px; + } + float perMm = CN.convertToPixels(100f) / 100f; + return perMm > 0 && perMm < 5.5f ? (int) (mm * 5.5f) : px; + } + + /// The column a desktop list screen keeps to: wide enough to fill a large + /// window with something, never so wide that a row splits in two. + static int desktopPage(int width) { + return Math.max(DESKTOP_PAGE_PX, width * 3 / 5); + } + + /// On a desktop, keeps a list screen to a column in the middle of the + /// window, however wide the window is. Does nothing on a phone or tablet. + public static void desktopColumn(final Form f) { + if (!CN.isDesktop()) { + return; + } + final Container c = f.getContentPane(); + final Runnable fit = () -> { + int side = Math.max(0, (f.getWidth() - desktopPage(f.getWidth())) / 2); + Style s = c.getUnselectedStyle(); + s.setPaddingUnitLeft(Style.UNIT_TYPE_PIXELS); + s.setPaddingUnitRight(Style.UNIT_TYPE_PIXELS); + s.setPadding(Component.LEFT, side); + s.setPadding(Component.RIGHT, side); + }; + f.addShowListener(e -> { + fit.run(); + f.revalidate(); + }); + f.addSizeChangedListener(e -> { + fit.run(); + f.revalidateLater(); + }); + } + + /// Adds a back command that leaves through `leave`. + public static void back(Form f, final Runnable leave) { + Command back = new Command("") { + @Override + public void actionPerformed(ActionEvent evt) { + leave.run(); + } + }; + // The toolbar draws its arrow in millimetres, which on a monitor came + // out as a speck beside the title: there it gets the same desktop + // floor as the fonts. + float mm = 3f; + float perMm = CN.convertToPixels(100f) / 100f; + if (CN.isDesktop() && perMm > 0 && perMm < 5.5f) { + mm = mm * 5.5f / perMm; + } + f.getToolbar().setBackCommand(back, Toolbar.BackCommandPolicy.AS_ARROW, mm); + } + + public static Label label(String text, String uiid) { + return new Label(text, uiid); + } + + public static SpanLabel text(String text, String uiid) { + SpanLabel l = new SpanLabel(text); + l.setUIID("Container"); + l.setTextUIID(uiid); + return l; + } + + public static Button button(String text, String uiid, String name, ActionListener onClick) { + Button b = new Button(text, uiid); + b.setName(name); + if (onClick != null) { + b.addActionListener(onClick); + } + return b; + } + + /// The bright, rounded call to action of a screen. + public static Button primary(String text, String name, ActionListener onClick) { + return button(text, "Button", name, onClick); + } + + /// The outlined button for everything secondary. + public static Button secondary(String text, String name, ActionListener onClick) { + return button(text, "Plain", name, onClick); + } + + /// Sets a material icon drawn on nothing, so a label with a translucent + /// background doesn't get a darker square behind its icon. + public static void glyph(com.codename1.ui.Label l, char icon, float mm) { + com.codename1.ui.plaf.Style st = new com.codename1.ui.plaf.Style(l.getUnselectedStyle()); + st.setBgTransparency(0); + st.setBorder(null); + l.setIcon(com.codename1.ui.FontImage.createMaterial(icon, st, mm)); + } + + public static Container panel(Component... children) { + Container c = BoxLayout.encloseY(children); + c.setUIID("Card"); + return c; + } + + /// Equal cells side by side, with a gap between them and none at the + /// outer edges, so a row lines up with the full-width buttons above it. + public static Container row(Component... children) { + Container c = new Container(new GridLayout(1, children.length)); + for (int i = 0; i < children.length; i++) { + Style s = children[i].getAllStyles(); + s.setMarginUnitLeft(Style.UNIT_TYPE_DIPS); + s.setMarginUnitRight(Style.UNIT_TYPE_DIPS); + s.setMarginLeft(i == 0 ? 0f : 0.8f); + s.setMarginRight(i == children.length - 1 ? 0f : 0.8f); + c.add(children[i]); + } + return c; + } + + /// A column no wider than a phone held upright, centred on wider screens, + /// with the same gutter on both sides. Fields and buttons inside it all + /// fill its width, so they line up. + public static Container column(Component... children) { + Container col = new Container(BoxLayout.y()) { + @Override + protected Dimension calcPreferredSize() { + Dimension d = super.calcPreferredSize(); + int gutter = CN.convertToPixels(4) * 2; + d.setWidth(Math.min(CN.convertToPixels(MAX_COLUMN_MM), CN.getDisplayWidth() - gutter)); + return d; + } + }; + for (Component child : children) { + col.add(child); + } + return col; + } + + /// `column` centred in the space it is given. + public static Container centeredColumn(Container column) { + return BorderLayout.centerCenter(column); + } + + /// A rounded bar filled to `value` of `max`, for experience and quests. + public static Component bar(final int value, final int max, final int color) { + return new Component() { + @Override + public void paint(Graphics g) { + // Segmented and square, the way a shooter shows a stat. + int h = getHeight(); + int w = getWidth(); + int segs = 10; + int gap = Math.max(1, CN.convertToPixels(0.3f)); + int sw = Math.max(1, (w - gap * (segs - 1)) / segs); + int lit = max <= 0 ? 0 : (int) ((long) Math.max(0, Math.min(value, max)) * segs * 2 / max + 1) / 2; + for (int i = 0; i < segs; i++) { + g.setColor(i < lit ? color : 0x2a3038); + g.fillRect(getX() + i * (sw + gap), getY(), sw, h); + } + } + + @Override + protected Dimension calcPreferredSize() { + return new Dimension(CN.convertToPixels(26), CN.convertToPixels(1.4f)); + } + }; + } + + public static Container centered(Component... children) { + return FlowLayout.encloseCenter(children); + } + + /// The ink coins at the top of the menus. + public static Label wallet(int coins) { + Label l = new Label(String.valueOf(coins), "Accent"); + l.setName("Coins"); + l.setMaterialIcon(FontImage.MATERIAL_WATER_DROP); + return l; + } + + /// Menu labels are set as written: paper and handwriting, not capitals. + public static String caps(String s) { + return s == null ? "" : s; + } + + public static void toast(String text) { + ToastBar.showMessage(text, FontImage.MATERIAL_INFO, 2500); + } + + public static void failed(int status, String message) { + toast(message == null || message.length() == 0 ? "Something went wrong (" + status + ")" : message); + } + + public static PlayerDto me() { + return Session.user(); + } + + /// True once the player has bought ink coins with real money: a paying + /// player is not shown interstitials. + public static boolean adFree() { + return com.codename1.io.Preferences.get("ledge.paid", false); + } + + public static void later(Runnable r) { + CN.callSerially(r); + } +} +// end::ledge-ui[] diff --git a/scripts/ledge/common/src/main/resources/LilitaOne-Regular.ttf b/scripts/ledge/common/src/main/resources/LilitaOne-Regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..fdec368cbd478e437f0476a538c3868723aed296 GIT binary patch literal 28092 zcmbV#349dg`TzUAvpci*ePxr~Y<82)eQl0~KuEX(1SBCGatQ5Zotd3^-{*bq=Xsy^ z4WWb(D?U`jGG^+8ak#?8`H$dR)6_KWocSMK^e;kIs&Jh(Zp_#wYQvLcWdPTKajh*= zPyM5J7Ooo!VQu54P9L@E+McWN{!jVuEmO-QOIqCbp~;`)dcmUe+q-JMJ8_f{^&ULW zmbS0$!hH)ND}KPYX6dR6mi+tLhVg`G7ZWloYgtG8;{O~w_X)h8h2LwJ;fDAZ;U!#8 z!*%Ym^LsYF@6W+0{SP6+Pgiv=YF|2k^Kn8X^haMizkOpDEhViu--w3-tJ}}-ICRxp zdkI;%l@M`bSLfOu&+NuUge=4ROx4xh(X~w6vmNhWgXblV2^^PxR`|^m^UcG*A$s8x z+##=)YF|ly$9KhZg`>hRajhYY-^D+?C;T#=i_g#T`RMJQS|7F4r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Ym literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_forge_0.png b/scripts/ledge/common/src/main/resources/bg_forge_0.png new file mode 100644 index 0000000000000000000000000000000000000000..457cc5f8eb5a4f8ee3725f383ae7cc3e00d84b75 GIT binary patch literal 8371 zcmbVR2|Sfq*njTAZLu|_P`Fb=ixfpQHRWyJgvpXpxubH4M*XJ+$;e(UmN{$%Tg53Rp3KR@1Uc*ru9+20$*3VN@P`yY1jd!bUFJ_Gkx zIPO-R*tXrfZ6!mRc{BSu)or5Kzu+tCq1G8sD3g@e;zuO1Uag+xuw%%;I668a{OIHwR4d=QXy;1mORN z#$nHUS^$T?>xh`!86K#6%gxR7cMb~DH%C^g#li*1%76`ezWtfbB%aWzVqa#&QWSf? z3KdiQ(rH6q+>COV@?s6pi91UJblDV6P~Fpgj0bnOT`MeBIb3NurO^TIj>MPL#T!n_ zDBT;OxjkmBT<$anc_ucarynd?sBV$czcwx)k<$p&*`J@UQP&89TRQY zairPVZr2S-TV%>$O`tr%<@|fcTjU_ZrW!{@`H4^rqUZ-9!Q=LGP#7)@aaIJi`!wq9 zO3i_!A2>iAB*OLRQ8cc^FG|)rtk^LCXJ*f7F}wCb_H*^$KhNR~63wW{w`|lwRUPyn zI!}i`83zX0$S&!Tfx>Xyo5CJOFQv8V9*ppVr(Q*~;p#jq|(>mvqJW6a9a* z>W4Ylc#wD~tMgdWS~iVd;I;j#5|QulR+X%+TPDC=ADkwfzTy%&;xHVIg8+Kr^KXss zaL)P8gt_m(%S!Qc8woJL^)bt(>`tOD3+Ua8AiC?$t6>WAWeSr{bQ!Zf-O_`nu34+T z<=lDcG>oQMJW9yz_Poc$q+EO`fN>q+?+#@vpaL4!4g^*0hO~b8;s;OhaOcbE9^q_m zT;@dG>Z3noO}`Yjh({<4ZWGz1z~l6JVM2i1jFz+Iid!t&Yde3ij-G#a&H zNdw{aeN$obF#okRrxZUAF zWM_Qq)YBao#(m-nOy`N+ncqNUi|$SLPVe8WWh`_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_RR9x>sMsmmN*qFw)}Otq)fm{5TmWPULNVf&I^` zg4#D(OR9>Gvmkj6n1=J0HAfI87#C}dWV~l8k~5Sn)Rb%r*BD})s=@ee?v*9ao{2mdGe zU>Zg152*3)O#YjcKMWQR?fJtf|GQ8hjQn>ge+ZzxHS}QadNckI${&@;KZEr!K#RPO sN(9^1KQyj?hV*|y=wIsZnL+;-7XI!z_j6x9MYJwkl9E)l$n@s_0Fj&X$N&HU literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_forge_2.png b/scripts/ledge/common/src/main/resources/bg_forge_2.png new file mode 100644 index 0000000000000000000000000000000000000000..2022d47ed5c8f8255b72ff24989e3d9e0d7607e9 GIT binary patch literal 5710 zcmeHIeQ;A%7C-Oxk-oM`d9_;`u+Rk1@--$?TC8rRuUL{+v8^rxXobX)T^DtsE($4z zyxUKT76C92A1mJ7?s*4g$is-@@ff9+cepG)9UW54!i#0 zjN|0~k$29yzxzAq{O--YyYh4OipZIf0HDap&UzSt!6pN&41a`Ki%J1*jmyc(TxI&| z+SjN5^cfH3&g%Vp@5^1FdaN!fHD8{ZKi!_fCpu9XEI8xpSl`t=+9KP#_f^mMk{fqm zj?f4x5K=5;&6h#A$8XYs9s}Hwx05rUxcBSgnspEU{dM(e~aNAnaPi+O@p!TZ9s{6Xx z-tl^=@Se)?CIvi*?_Ln~vfd-Yr>Rm$lWx=9-i+<{p2{U~?KiSnrkBlowjHZV@s{I+ z3{+Wj0wn_R^?c{(=os z6jc%EvA@I;fLLfa+4!wvB;L?!zyThNUuAA?D0&i|*3hVHO~y;Wg3@bRB}yZnV#o03 zUGs2HvSsg;0l^=#S(Z{9q?rb9d#q)t#6{4R)N*2t(h-p>J4fQc#LIHTUJkQ1FK(Hp*2 zDwtChZT3e}gf<-*N*Y~6u+~vnt7etAdwp?)sM`!IT~h3HKQg&e3g;LmtTl0p20Qe{ z?;Vz*4mGia(cM#Kr6}nf6*%94cM5^g7v?C4D(uFh@=)W^wf!R;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qehxu{txj3nNnU@Q3$MmfEdFU%Xd@)AIeYM85cO{1$8k+ z0L1Wb5RljgQGn3(S2Q3b{s3+Eu@`oVKkfcQ@G;!4au$w=KNA4U7xWDSeq#tfE9D^$ zdCb4%12NyG&ksbaY=6sE0l*P5nGY2xJuj6G{+XzMp!8Rc|0g-CVsST1+Yu1ekEs`< zP5eg;B?y&5?~ge_iut%;|1g@LjuMV|6m|{N_!b~OsDIe^53>;q{q_xrKWq+Z1SI$? zt$%~Tf6NcQmly|s(M%)apQeG($ZE)Hb!Mc_@k92_Fpyd8g^dt}IDSZ-zwBk=HQ_J+ z?~~-m6q$*xytDE?9dIlJp}EAYXVx5>&EKGT(v!4drhQ zkooT4hJ$%{uwHV1UFpa#(5>rlGyT6t_OFr^V*39N2>Ul}qQ^QlXw4_dgMFPjsm4CI;t!b({BrR4 KfxLZAQU3#NTk{_P literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_foundry_1.png b/scripts/ledge/common/src/main/resources/bg_foundry_1.png new file mode 100644 index 0000000000000000000000000000000000000000..bfec875a6dd2d59ffe4f3521579b80273700b238 GIT binary patch literal 5556 zcmeAS@N?(olHy`uVBq!ia0y~yU;#2&7&zE~RK2WrGXsNYwWo_?NX4zUw+-`_8i+Vt zd_M8IOYe$E#_j~eI2P@K+`!G6{?eHfCV70G%s(f1m**dwOD^I496$p`!DtAKhQMeD zkQxFHZch?qU?|`2S6u&#$7}V!cgz(#?A<`7FoB2y=9?TH>}&j@s)2>oAy7%hpa3Eu zvILpnlBofto*~B5jEUjFJFnF*-_%GRtJ}Ui@A$ku77U5ZAW2Y3$e>WeF@)rR{+FjU<46(m<}L$ zh-DDwy#iK2bzxLE9}N2i4tcM#8NyCMlunJNh`w%B|D@rBHiUA7>?xC2ZuHZG91VTrmgoC z>w#%&7c}Q!I0Y$8NC{6RX-0-UZqT@1|KWE&Ff%JLwD2+j0mK=H)Pc+czH2YvdCWFH z$C1cHK%8%XxPX%OgLC6i9xw*_$M<3U z(yJ-Jb{w*Ik<3JAA_XxXW`jPkI5-~yEsE6d)B}s6c%btj1tcDgNKpz2d35`+ixOud z9SkSVxk#QM#pR?JPC{CsS2jlSH9jT@F2`pKdSH7Q zB=R8el2OlH2?hoR1#lA!((F+H^6@tN(Azf+U=7$sL2VBP1+W4_%m%P3?8aahC1fI! ze@HQ00ql@LU^sSP;}Ipr<#>$22rLr90utslG91HUcQtmn(qP66bO}ZfpP>gRX#9h7;#pB-_y)hTXXkQ4$QtXAE{LX=FH( xSBYbi;&S3lBt7GTLx@&}lMv9Pxcq>7J>#;v#NU&+eZ&}mz|+;wWt~$(69DLKBp3hy literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_foundry_2.png b/scripts/ledge/common/src/main/resources/bg_foundry_2.png new file mode 100644 index 0000000000000000000000000000000000000000..8a40c5b5b2b33dcdd41f1adf8499412c325ca9f4 GIT binary patch literal 5059 zcmeHKU1%I-6g~6f>@@CXrW(m=tTPLul~~#I#VD4U4Jk3ArAn28$PV~W&|(ynE+k}U zcEZ-S$SMjIu^7SDUrIqNA~cz;6oo*jK1A9QGw~(R9~f}pJk|NM zy7i~cxo$~Wha-?5NwP617}Bq=={lgpJ6#>{_nIt_VUB;f zAQfe)!~;C8bTlXs`K7?f=uBhtkx(FX>1tF^Hm>JtLMha@x3%bMD&3_xB#X!aD!fe%ER4Njwy{OCbtjiIiRWK1 z*d6kav<5L!H$&*TE^&LOEOSil!Fi5=4U`SL@5YQwIOFTTm&*MYSdBe9P!qyxTGA%B zWfVTwSP|PrpdleolWO$rk?c+6iAoGV=Z_&_x0 zhuxnQQ`ockj`Ct+%1;oheOMZP0&4PZ>w67EzOeB;eH3!{=}NZFsXVg5t)hK!;_~r1 zVW*z0an$1Z`JyqM!l3c~ExfB?gg%wJ#95~-zXFOG%dWFt{vmwpS|@~80=AIlU)xi_ z&Mx({76nIX=NPQ|H&$nra0-!e9J z&STeNmCx2v-MQ*tCI!LICTZdTQy#tOKOAr&^t=R}6}}L;F3%5PdF-(#+sG9n7w$2n-;419qqF^xsh*8kT+xWnvyqTbXdEha(}&{xt~7Y_4bwvpr?Q9w%(&X GR_P!8mo3Tw literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_meadow_0.png b/scripts/ledge/common/src/main/resources/bg_meadow_0.png new file mode 100644 index 0000000000000000000000000000000000000000..e87c3f82d86249345286af5b3ee1600ed45ef0fc GIT binary patch literal 11350 zcma)idmxnA|Nk?lCY4KVH_dKU_=at$lZ*Y=X;*VuE}ou{r&!!nRCvZ^FHtQ>wP)5_fN-;9*|w8 zvF`WHh>9pQ1h}3?^lV|x4 z4V&r}pV$Y*@o>;DCt@zXZcaW}YutG0-S<;{gb&-#sC}(ojR|J@Q$u59;(a=@>u3HXA+2a*OK(xo%YBZENU zZ_RCsWd0n75n7>)b|EI=kG0`J=`A`NDi;ZSAhR;HW-vcfJp<<}tpGu176Hl_F9l0M z6(gXEcHBPC4Eiq^GS^L2o+e!o01$Ip4%$8aaTqTnBphiu=y3z>hw@B%f?GT{t7WB)rfOB~FJWOaitbhXwd4M8>X?ttfBb0>^{qxWUv;hMV;~lN7 zm;zsr%76@vB8g#xX(R!~1tWr0G5ImTN7X;#4vwvcKGW3;HK#wTq|0Cwj0rU3;zr5^ zHHk{GZk=muA&j3Sl)<+5YgJKxuA_3opfG0+7(Vlpf2kc~1?$lkr#5GShar7DkU=8C z#d#bs5hT?Q;Txp=SK0EFRZYGK@~%1o}?;t1q_gMaUo;QfFlWdCd0bm3I9u{MR^%94L>>DTSzBO<-gwj1a1U>pG;*tC)Ug zUl>Ai;7>^}ta&#IC^pfw?3~ImLj>a?$oqLXychg0Vei>uFyY^-7#YlZfRqqA5H484 z+zWo^JTDJrY0e1Vv!DzAWC6o-URHRv(I{z7H*XZ7a6m?NKMcN6xv;4U(1;-60Yz-Z zdGIx7Kxh>MrCfm=p9(72%qVB7%`o_LzDfd3&|e%wXHfUW_?3wBQ3u*oV+{z;3#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|_DYTp!5)t#&zRUitQ~t#MvZ#zMgL!34^caXxu*|mOD+EM zF|?2&M_TykzJO^`8(>ND76}h;R{&7VF)(%h!u&&JrE(^&33QdPwnFlTJ+nI;{sn!+ zo_m)CXLg7LYM;HRVpU)qAPM8cM)>3+a3scL!J2lNN}XM~^)oKOt`;BxKL0Gh!NdEU zK7wFqmDU88?r>##o{q5~x5}hJqv?V}S+1Xa}@K z6)h}49cy7!N3QQHsoF^KS{v}HUQ2r8HD1N5V z_ixXu>Ypy~&lWg%XtUF2`c(UZSueojpCqsr6w=O(vI||svp6hzo*TH$ZV6M<>2rVh zHv^y7&uH#l*xD2rl_%y3>Lj2KFp(s9&JwOEgT}c$fiGlegodjGM5su z(2G%VRU^s>jfzg6Gy6~TB(fu0P^XIUk%!NNL6|3g5buX`PzvZZAq+keW+gca^X;Uv zv9F(g!Nw&V{tMn4+vi*Zi^2bwojjWlL6LggMT1{E{pGGg{@=1`Fq6eHZzOAqD&Sw@ zm@}2db676Zyu?@m33HJAHe4jyQVYH$s-3rP%wA9z_$+V9v3Tk3mmrl1 zBPWS$k`x^h_z#+w`me&=l4E)pI`}gh)=-D|o4sJEh;w%EPxLkdQ1F;RkL8RIT?*QPtkm}I@F3$JDN** zoY%{I;RU#%o^y9h66O&mkW-SoIInt=#Ny`1qJ*e2NqU@An_yRa~=Ykq1Ga3aiQG5@O6@rO_$ zz5vhPs9{`o7E6&Z3iIYX2LXz(#Kb>?W!^~s%=R1EDyC6-0uEd>AETq}9ol#FyUcH$ Ge)wO`(+7qC literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_meadow_1.png b/scripts/ledge/common/src/main/resources/bg_meadow_1.png new file mode 100644 index 0000000000000000000000000000000000000000..0304e9a1f7807e7ce9b79db3d337cd01e8ec2e48 GIT binary patch literal 6906 zcmeHKeNa@_6+iFo0uP1kE=pYSg9k>zF$P4OprHFe@S`Z&B*t1y+%#!0B?^cdMuEMC zfM_r#lW3wfK+;%iOvQW{t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httbrSDD=#U6hGl@71naRR)CB+ z7rhz%@Jnse-cSC_n2W3${J04-jSFDKw{8TrdmyU!uh`P8tdTFmfdnGh>M4h0`~iGs zINR)S#9Ex9IsYV28XrYDdZxd~*QLYtw+|^iuBEC;FTXa2qtgcXS#vND*AL9~{gJ60<__9cE?f!}yMo^b!V=A0p}5eGCvn{-7QKgh;|_ zBin~~$q#vFO=Ir-9OBKV*hoTVx}f*+_Jso%67=v9rr z<+(zKo|{A`4=pcmB|BU=6;fFHk5>-*H;1a>*S`pXb8X+Bq>in-$s^XO=5;q{5QF(S zmudPY;SE+9=?&v2vEY}{A_^xP%JYTubm-vaYZdCA)mX02?A<|eK6^V=^FZ}9 z$BIhtv3*^8Jn|1+I%O|zh_z)x%qSzBFfhhxSI%1DyxOOu;{oUN{NWv3c1D=HYHB=H zkX?l&&ate};y#VtB$f6avCS_e*}9OCbk|WBA`VaSUU_|SU8D#!EHt6fFG{-b30LDR<}iD2718%EU=2Za-qhzOF}icvn15$cZPTi1-}ru zn$7Zh+&-N- VoHlRS{Re6DEKEvCJe**D{$B^%pc()G literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_meadow_2.png b/scripts/ledge/common/src/main/resources/bg_meadow_2.png new file mode 100644 index 0000000000000000000000000000000000000000..deba65fd97edefaa539e06072adab9ed94177d0f GIT binary patch literal 10266 zcmeHscT`i^_wPxewXsM)Hh$h=y=`yk$4Q#jS(Vmj!kt=i@m|i( z%9)~~`q8pu|@8t{5-C8hn>`f%*=4Z^GBe;=iYcxYq?P`QN<+aE0-+R``> zo9a6Gt@vS|=hT}di2n2X>4Bdf`00V49{A~jpC0(>fu9}#6nh0}6zD8#qkCrCbBLc# z)2}1~9CXZgm+ul7!ANpHf28<4&k6tyZf~SJ5LJaQoLe-K z{#3hzEFy$(<6y%f0@H-^r*eC7iBFabBeYoWkAnh^xQl7R-p`btGu8_b?N4h_=Fq+fH zx~Y%TWjjDb!d77%XyP5DhRm_j3gj4@-i<@G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FQ7VXD31Fx)ziR+|>$m-=$??hm*D(bbt}bLRU3FZ()I$cP zbZJ9ge&~TSZ8z@PRbQAyT|IH-TDg~EECBDfAm=4!yHYo7Wt!cJ5;+Iy#FkB!gOW)Ia3Z{`XCy=G~Kfe^MDb~XXHNBr`9WwfCWy*E_HB$=u0C|V8ayci>4|AGF!g^;Pe>`G8lXaw)yF3@gny+FdoPlva9*sV z+JA|a{x-w#M+1WCp~2dxBgP?2^UbvP=KCDigMqO$O_ox&o6TabZ1{;^T)bOhi3tet z8J)`WU&VvWFeB~ty)Fx*W6~?Y)nl@aCL4WUUop#HMX!oR%CB3)I46k`u&BSrhx&rF zq~JRSxZB~;`5Ld%`rtJ6k)miXB_h@6tpLFvAILY8#Gp|H{ zXX>bfdC~aN`0@EOb<)7nNnv-fj1zP#1+%#CTZ27eLp=a#pB)y9daJz#MiIDe zG2>gJjRNx7lxUE_f$hgBf>-zBX8?H^gE*ZsTW7Hn_TnZe^wEeFfO2g6Cn9WSlRoPJ z5{|zcfcfn$LR0{@Az54$K;)Z0!NpMykdkC)m@SjeG8sbY^YAS!(0v>lpeI`T7aqVy z4$>Y2Pdos;bev?Nfug3U;{yD30}T=u*;tj2nt>Ia#cDWyK)`#imb;PbS*R9q{u;uU zZH@tPKSr<0&a?#VF+Y|_daXOK_b-09gPm0iy<{$DShusrISa+^RbrK76lYXz3g>3$7zA0G2Q<)^4*Ga{0{HcRR+V3EFi%@L30?upL0aO z({b3Al}5v!5-ca-1!4KT_!smPe24#!-;#wFeCvN3lK9{G-FA5Wz1-hJkOUHcFGmnO z`tai<=>Gx=Dt71q literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_sky_0.png b/scripts/ledge/common/src/main/resources/bg_sky_0.png new file mode 100644 index 0000000000000000000000000000000000000000..033ac4f38991896489929c16babb1b00d8080ca8 GIT binary patch literal 5523 zcmd5=4^&iT7Qb))k}`rz{s9!;uBo^#J06Kd(0rOwq@iY-V(PfDVnQ@0Gee8{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GF&cis@<3ncj&*Tl1)bPeS^O#4T*ETB%(Z664*0Ri{vh zDsy^wt(zZOEyb@tiuvUB(X&i1u zCHjSzuDVK9Wb>ncC9dNasLiKgfVR)f^Xv|MY@EKgBN)}VdFE?x2|aFjeWO)S{YR zJT1OmhYMGB$J;xJroU-y|3eK)#22ssF1Zv0&icf*czYF}H2iQ8WjK@UbAHM(azx${ zOaicfdQ8(G^#)v0Dk}HG4>@;CCc4gMOMq<9fc&&N3AcIbyy(L*S`&HO#!-17Q>vSa zjh>~Vzjq6F>Ge@eT>?0;RTDLkL)?bCCVX)9(#L`QGk+CdvbNek7d=v!W;MMt6tkv= vZXgxqr_re(Q_^PHzw-_r@&D-?@|tdabNpmo&;038l;tUNQfC*>vb_8wv_vPD literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/bg_sky_1.png b/scripts/ledge/common/src/main/resources/bg_sky_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b566185eca1169d39b690d7f1c1607da22db28b3 GIT binary patch literal 6352 zcmeHKdstM}7GGyx97d3F903)agO40giJVZmfO7!7;v*ZgOoL!7gxe=2SF%Vz4lqMq zB_JaO1sy9bH5Daaq%sWNLM8D_Kg8tHj2|CUpM+B;3^>AF`y6i9`}p_Xzu14w*?aBv z+H0@hT6_MYU%tp&K0yuu-izZGJO?1bsRU>le)0lm6ax6~T)ZIW`K<4M{#(q6J9SE_ zWqV=xiTF7`MZN+t*9|ih4qdKt+wY|vPN^=m{}H7|#z+K4A}|txkqC@LU?c+n?+BE= zkm<=yYTa~x)9o`aeN|@#FatF7bGG*TKOAJx8!6B(4-dx&L+7_r0D9nRN@J0%0;c;D z1prF{{b0pOj!|(D^~C zX0I3z9pFpV9OEZSs{3B=+r$eTao&Ov0zP>~-D6^?%qC4`S&P9z(zSal0;;}xIawLanFsvpb?p?Se& zzP)_|Z?6iK?%Kb8HKplw_Ps`PFFNXTd{eF}D)(+{>3fDUh$#$)W&9)iniUb+=7BHV zoqK{IJrw5M09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zT9bh-HHNcR-Ez^4^ zMmgNt_Q~J?&`(f1v4G)~&)(cki`jRicOL!qzJtG?pUztSUX5A7b zp+S)#f6-Xo^IA{M&4Kk6Mmj=ej05!A9Xk05-{x7@@*i&Y^c_2Qrc2ALz)cM0I%@WZ zB%grkxxSiZOfb2fw7IpyX+jtTFnIHu(E#kb3bi+~IIZ@!Ik5NG^3;?_B=Iv-baUUs zX~KY>&+ZQeD|R{Zl-}Say2s+KpV!X(@x{i1UP6ag-YZ%t|6zK>uZ zP1XPfW6`x12h6jiZiWVgKGc{*h6|;ddbbv`reZG#)paOtPsXtt?K%vZIwCyWQg71& zg8{*ICovobZNXqA8`Ofs@|Mp|`?tTY+4JPZ_r_G7l>FzMyDQ?FO~B(Bh9xTYVvnf`4mbq!3KqW8pVg)2wF@n z0$jPUGr@L>hO(iRyA0rGMI()N2Wi{}#}92&*FME?h?hZE`oviJ?!k2?07qUh+gh6} zEGPK%0RnWVz;SaySl&!9+&Wi?IQTp@Tbs$WUwyK0?+_!uTz$~v+u5*6##DFTPL#!` zhA*lhO7LkRn#kJFv-T}=lFzP2^d!GOi2cKzb3N%f3BwsG>xH_)<&_hU%uhIDZ4@=Y z0!s9kCZT;o^)rsH5Ia(^TBLGZ2;r{T zfF82WWBrlk4OI*0Orr3-sHoJ=%Z=NKp#j*=a5BH^wBjIh<>~@9Ih;aOB>JH7@G)A* zD<~R&j~X%0IwAM`{aL*aYT1U5i*(=L(2aN`QKw4(fvOnA2I5vA?u~orLTXL T{_6o7b|v${M=hV5x#B+o(VDE@ literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/enemy_bat.png b/scripts/ledge/common/src/main/resources/enemy_bat.png new file mode 100644 index 0000000000000000000000000000000000000000..7dd1ee122a2d56eda1bcc227bc038d0bb2d7d5b6 GIT binary patch literal 9886 zcmc(F^;cBi8!iX}A|28VLy44hBOx6UAG$&5ZWurqkPZP6n4x13MoJ_HX(WaYk&uv< znxUDw^Syt=UF-gG&i>)7w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aUuIZeu_MZu7YL2bynx8Eu?cI zIt^c?ZqL9_t8zR`C{ImW##pAW)X(Kqp4_6A536WivY!Uk-&W~*VvT`bWv-H~-MS~N z@_VzDR%LCDYk8vw9{r4vB{kS%e>%w!YvWKcIF#%%th5NSxs3JmQZ!(;yOL5bBg+;z zWWgsw{sT$#KAV~$Blo;_G;=D~mog~>dV)-L_f^jEyp;Ok2;q~*dt+GjgEh@Om9$B zi~kP=;(t--Dn307z2kmLsk^&dOfhXt4A&uyhQMuN-^L)}gveP$_ojdKWm2ZTe~0pa zH~H@*Z~w-qo`cnCp~k!!_*C2~>;(xkk_;ARI_b9MO5{VcRG2oL45ge@#ZK!PjwB_A zGRfG^o+P G7ymycn`DLn literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/enemy_brute.png b/scripts/ledge/common/src/main/resources/enemy_brute.png new file mode 100644 index 0000000000000000000000000000000000000000..ff4eb89477868ea9d00802b4b647ca9e374f655e GIT binary patch literal 7686 zcmcI}hc{eZ)b}u>*Fp3aAxLx)HCl)mB_c(Q5~7V3Ll9+1L@yBp&*%&hj8R4p6N2cy zM4jlOjov2a<$2zBeSg7s*IjqryVf~-@3YTu@AKRHMj09E&{1u`4?Nuy6-ZG6;%%*dA~TnYfT39q_^bx2^mNNsDg4> zNU7~&$xuLYy@AyUzxtBbME_{x$YJUhr|!VNRBNTIuy}YUTzr4WAQdR-;r^Lp4ePp& z?Li=XQUnJ31`042FBw6sv=Gr)=^~&oU_ji%{m2Ca7V~hI*iR=777}2$lkQ-A^yBGu zYfFnWBDK`xXmuW9JkcCCKdmA1(gKEC?(6%5!Ci?gVGX^76lC33*aqr|HU3>`G=LLx z#(m756{{m8cZG7q)Hku*$B*+8m>^w)opALC;7;xI2H)h^rz1^VZw-@DO2|FKa zTF&`PNdO>O1ooJ5#yRvKMSLG3$-hGAj$l}WsS&qOKD6fqnPu>n%V+WFIC#sNOtLYk z+4?ZDe|P7k{MAJY4EIl*I!QG4fnDq~$nIYc>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_6#Egel>hfOhB8lZ@zM_p%@}bsE}pRiHK>dWf&UTyp*}Zae&M3QZZvWv1I(~1u9wLAmePi%S zfBC|ke}jUSoJ5i~?lqhUNY|{m<6ZrVB3_WNcxIq$8bC~YIBtrVnVXU3g85Iu6bqq9 zeRQU9RPuBr>!}{T+ZHakbdsQd4}^SMcWrXQ^qeDeg6s4(4ewQ6;ayyai7eB6lPIY^GV}28BesiZ9ky+K~h)7(2 zn$Z+U(V#Hd_ca2asiR3wCEA{HbvjbuAbuw0c*LAQo7PD z0n0yk%jh@nRQ>BQ(;QdO6Mu204~c|oL|JVTw_g&rkiGYox$>)`*=X4FA6;=6Kgc~+ z?5u@W=8@dwDZ=a2(5Jcf2bMnJq01Zv*%B7*|TNk7~4!G%Q^QV zRx=}A;)^ne7-?;8Emgl-r5&fE1qmI~hUC0EmZuLEzN|CmIRHbw5R0~B-{s9e?YldI z<D1F=IU^X&x z-#YhUQjwW?{<7G!pQE*$Cl60oX_%-M%y(V#ztGil*W8(@wB_9l3f=tNxKwz4fyw)l z^8Rv}M154Mxum0q@J=A`L}u`&CrCX&RqdB|>myP=$!k+u9M_A^FGdIH=S2Q*I9ow@ zkJ(pT-ST|B+9hp&Te5R~Ps2utTVmE?3SarGGh_RF!pNSv*vs>9;Uqiv@Kf2c*U{IL x#tBlEcQ%#uuWCo6FGc=8{a@K!>NAK8`6{rKJ(;_+m;ZMGy4r?XC{3Gp{{vzrIKlt` literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/enemy_frog.png b/scripts/ledge/common/src/main/resources/enemy_frog.png new file mode 100644 index 0000000000000000000000000000000000000000..46869e23e03bd77cfb22c2adf38a622861b0df1a GIT binary patch literal 10483 zcmd6NWm6nX(>3lc!4`+$5P}ojS=?QMT*%@CSlr#+-GT;!I|Q;g1PF@;hb1iT&Xc>| zKk8h!zt~#gtbWKmkYN{*ZVo_otARyo>E6HgiARyBHvn?^u{;hrW-wY8DSi6o!JsqGQA!uR$~2(u*9f-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~p-SGQA)Ek4iTt&c0K{?*;ui@1kep{r4>h>*P8iB;N&}`iYI!wPX8$qAl5HG6s zCSPmx$?U$NGIR?^e zigFnZQG{#!ns4@h;y&mpG%=gfg82h#5&Pm>f)X&hhuD5rX~!l?g_aom`H&w6+&v8o z;@k#*IybNU9mxRrJe9xXt)_;g^&^9gSm`%Y$Kts%foYKSqF;h%g+HI`tyG(gWnr6l zk>@)8bMv~Dm+GqI$e~D%rgy5Ir~gInOHB_olKJsZF!IY&tpLT7*rwJ24gTZV%Jx&{ zw`83-oy>VfMvtZz?<~)m7HH+IHroaV(1_Wwa=5_@I^6-4Kovu`@$n3X6uijd;JwkR YpTxXNrqJa7H_V8jEUzxtC}SD+e|h!{9{>OV literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/enemy_golem.png b/scripts/ledge/common/src/main/resources/enemy_golem.png new file mode 100644 index 0000000000000000000000000000000000000000..4966cb4a12e98ef25acc0537ec0b71a75943a843 GIT binary patch literal 48197 zcmdpdg;$i}^Y2P`NOvirgmkljAR=87A|XhZAkr)d5>g5Z(g@NmAkEU9QiAl-z2q(| z``*RxFYdX2!aZjXanA0(GxN-RX67^VMC)p+krFWyfj}Tq^`|QOAP`On=I?d_Jj~BP zDE)m9sD(sbMaj^2e!tZxNzv+#(i_V)wV-_J^o@Nn+Z$M9Nr){#m) z!ArMFbk#iTp|?!8Vul}i#&xur+k_EH(1%g7GjV(Zsq|!bzJxaJd z$jVwe%*vV)t?^=27%AgE3$M7EDK^-W#*I?p{QUIZ-RS@Cf929VNCbyIy=SJqcKK4m z-fg1q@HJB7BS!CI%Uk`2LI6pZbXfp;{q5NDt|I4W2R@v24ZNtI!W08}z3f2w zDJ}%_-n(dG;Pq(K5B!hYnk?W>UZ~f!?tfR7e^OFlo~(MS)G(>~=2LR&iPS^{<-f1!UtlMU?Z)O~MbOZo zX0f2tfE(_9&B(Tq@{j8@7#>MQ}ZJZodRB5Pt;_}?RF-J!J2fwbM$e@(ZE?ED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Lf_bUzB!v_;nS{I~w$s7lxAzkQ0(e7=URI zJd>sp*0ng8K(#9;m+Jp81 z5d$0g8jw0&&4HNPVgHeXBQvfB}UOmoV{`smv^Px zHZaYcN}7sfq*r9`MuRRZdZ^Y)^^>1$l(B?7SeaDhqU8Qd!W&Yj$)QZ}S{nmYa^IXi zV`vrM)<3#a)}BZaZ|3P*LOlPGC~Wse@F3vBEh%3uOb=E@zs%_h#MR0c>S?2^~K z-$Y zEUm-Due-g4|F)LzgFJ;TA=!9+fDvKhjl>;fR;~w1Pyu!n!zit4f6ni!*iFdQ_ItMO z8apkq!ufCW?J`s}bhHn5vAi(s(s+MLVzuj(PRP>6MD$_~|9hv|ih_|TvG3#hfiVol z*&sH@4yAv{RN7ZCffX+=8_T!tyTrf#QDluQRkoQyw1e3sW;Z=ktZz#&phcz7cty09 zUwh=Hy9T#Yf{81PM}`ZE`r)btLx286IC(gRPdh~?SF|z_y!>!$)0sxMQ7+-~E*1{LzR!eSs@QWSic}Ld&S-{qr^Za3qDKku6}@ue_;85;2LLPdtby0`7(V;_t_U6%iIBZ9lml#JACIs2c1|aN!rI@ zL7id%Qp7+=|5tG33}vL)bVs8579~?fi72h45LeosKycvzYnL$`QAGZ^{EV0Qqd?h8 zo&J*U^5-U!hA^1@<~u&WmKO~cWcYJ?g+cJUtk>q`5Z{lQovJCW7l%^nY)q*$VC#xn0#~n^B`odUc)#kXFBRCyRq#|;%ii(Tyxz>>eXca9?Urnt7+8vW1pmrb_A;(M*m_5%lu^T5 V`x?ObQT7faE2Sh^EpGhl{{T1~uxS7Q literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/enemy_turret.png b/scripts/ledge/common/src/main/resources/enemy_turret.png new file mode 100644 index 0000000000000000000000000000000000000000..490b93ad3a5989520ab9ab0d61a0ec44b07b530e GIT binary patch literal 9327 zcmch7Wm6l>_jZB?ZEz?S+=~?{4#nFWr#OM4EpA1M26ri1D6YkeOK~m1D!97`Cs^|E z|9yz(#qONh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zL$OA|0`~s^Y_Shq literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/fx_spark.png b/scripts/ledge/common/src/main/resources/fx_spark.png new file mode 100644 index 0000000000000000000000000000000000000000..a2aaa080899c9ee5778eafc5bf0957343c9e1bb8 GIT binary patch literal 2234 zcmWkw3sh2B7rvF*wJfiW<*l3qrx%lBVw7l>6KRQsCP^x#X+)*wJM-D3Ml}^_W2F9y zSQa>8Xqn(EA7x!988y9sP?6gBLdT!*jgQp-w%6L{vCdj&pZ)EZAw7zY3_h3dS|EAErfJ1AV`u%^#C_`w>bd$8TxhTMgPe32{a zaKnyj>hedot%YT5ySqBjLAy8=Xn1EITemDV-;e_0H~?O6t1y|UkCK+g3m!VQ1`5=! zU7WeR=Cgq4s)cSB{8FqPth-&rB= zIlU=Fa)qc*R-Xd@Ik?#A%30rQ9O$%^`KZ7oZipqySC!#v(-1ydsME_z=p7ONdw4OoVj90X>Kcg{i-zIyE)U0}&j&iP&I zYgL-2+1c4#Og&;_V~y~ux%gO8iOaiF0$iJ8U}6Aq*g)I+JUEzOEgo?x3dBStJ1 z7mM9Md|Zx5kA)>do4r|od>WnuvA7)i@^;cywr{~iLi5FHzmehLr}I7OPJ25#I_6l_ z9rKk;$ya&l3mRG$$nArB^zhC&&bh|}FlCq@-C!SHYE^^*1tt_Pd$+XEdjo? zI};I@i148dTZGKwdb)L8IWCc|ZEOpcbU3!+5!f|HbOcQCE?Qk(SxJzoG}kdyYcM%k zqSP@Mns!o$4WfsTQy>!%pS0|^&>j%~8pNkUmN1J8r2@%c_&dUPiuDP?b=LxIkqRhv zi;HJ{sZ}IOdYe$QCbzl2A)%(T_*jty>fS{|-!E?IO1YA6@FFtV7yyU}L;+86iSp8q z%%U98;3HnvWV61I_aF5~JYMf-xrs8SIafp&s`6(rq;JQPFmzzno9&JZYrpL=sBlg- zrr07rdF+o&@Y!SWzx(}^3_oR%Z>BSta>O_DPw~%8#_AHW7^3{wH*+U{>?S?uCl2Pt zJm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d00001 diff --git a/scripts/ledge/common/src/main/resources/hero.png b/scripts/ledge/common/src/main/resources/hero.png new file mode 100644 index 0000000000000000000000000000000000000000..b32ba190283a6835930678e5ff87cc896993ce0f GIT binary patch literal 107855 zcmdS=bx@p5v@H$~!{9o&YhZ8)65O5O9yElI;O;iK1(%QncMBRkxJz)CzyuBMF7uoB zJ?Gx@)xGDQ|G%oIrlxA1>h9@Yd+oi~-W{!}u84z4fe8QraFmtgv;hDN#8*HNIx6DR z%u`N&@8(h@TxR=L`9D-N80gmDyt4|W#PX4OsH@&F%e&aLF zS1|RpqT=U-qutZBQ?LbD#Q(oOV#u`#T|C&m|K}6i8+SL8exz6Bw!JSpCn11%0htg$ z{@?vi=Nfs5_^jPm4K7pXX-CKDrd#sFr_8v#h(URf692o6L4A-t-CS&VTareUc;!%A zf3g(;?utXj^nUA)w;q8uD<_SZ2bCG{&k+CD^HxJ%(h&kR1;jH=eho3+2>V*jOQ|)> zhsRRB-k`3S3FzxWX4n8rma^T%+(X*a)4D>t=yvemBhKh8knX=3kO%uZub$L?%vc>o z9h~IG^p>@Jup-@TF6+Q4q#nQUHy>6IQn^a|me-w`Nf*y)6vIu$eGY7!w2M)cg}s>F zV12Lh>Yr7r0{)rf|9nt)u4hJSyR0_0!lSYavmdYDW$UhKWqvE3OwYH}kFeKJdPwDW z5ib^El4U#5)B_(QUm$m5pZZNp9>+4=h=qd-VN zzC%==jSwai>DxaTgD%%Vb`|{>a`zPmMAE~jS4E?v19Cav8b%+yOv@A5JYZDFuBtf; z=0(OcAbVphZ(JzO1<>=6YJVm@^?_-rqW=#&EmW=&fWj#$g6mx*)PgiMT=_2Jn%t(C zi=FrCk|FB{?|adiW~tL8NV$*ySOI1X8VGDN`&T=p>!pPDW^`nv^~oCCP73z9Wj0(fo%SWb=H)J!2G)Kz&FtWGVl6Wr#4At$FlNWtgeqiC&o5B|HBp~ zaXw=hxh7u(d3_r4h$?QNPapOKsfriGE$ueVh)ce16jw93k((om>X%*)4Q6mI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)fB3LMRt~c5N zK37TO3yal~5_%fDzl{TvLAS~+auPj~w6)A=1#EFxmj?R}_4R#MgH~?Co&DYCpvL@T kd(Z{-@`QSjxWw`e8Otj%NKl~N|K2h{PumDut?3x`U%WbJM*si- literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/item_checkpoint1.png b/scripts/ledge/common/src/main/resources/item_checkpoint1.png new file mode 100644 index 0000000000000000000000000000000000000000..63571f0d663f7aeff57caf1daadd3ce9cf453ad4 GIT binary patch literal 4629 zcmcIoC4!WM0|ZA%gX3XzBNl>4NyDfyMvF?gEECMm)P0hF71MP*B;2MJgEqSB;sOh^V|;hZs+L>qc}?|E-gK6k&uoC9N`F7m z=as4DGoMHI)5`0WzBbAX2ZaRL9v^LcuEm^j-LiiOj07I04^TjXZU6#u>eL+@UAP6| zLvk|&0{U1u26#zKM=~Vmbw>n~AxU#*To^Ff@R<{eidZegi`PMz_{}XcHsn4H|8K+}D|017`cad-a=V%l9f< z>)xO~)adV9*1E<N>_UudVz|B_5247inhFq#!*KxGR4Tl*%!3OvH zf~951a>qbzVcVE5r!sX}72Q6J=P1VvqaRZzO?hu0TrHD?Xc5^MI%&t9{v?Dnkt?}b zVney<^BzFdHQg$r#LD~Ur`^N}mhQeQNYck@hbJAQ64lMNr&#g!@^`qNlUH;k#nd$m z)IS28Q^>6zsPR+fTxINDXIqX75GI1XnXmtjZ&nco!#Se)OsEZ*(nSOrKUa~uz;iA} zECc_J+2TY}qv`JLjqpGP1PgO1C-k^tCMU@#66J%3Un4cL@#Mx)w!!a-jux$Ro;j?T zF|K?GDellTBn^~AAM*#2j|ut`fA7rxp6ziulpnu@UdHD|Wm{1bT1*$EmYoMUc_mnZ zjX81)$LGjBVfrTP*CK2vvKJv%ltCP~6SZ3&?|2H5n*;k8CAUoyST12^ExWZ3$55R7 zi78cqH&X^`E66f|KqP^ZKy%R;8rX|^6^b&2p}X-K8bkQ@Q8Op$$|?!Gk z^_7CH2kc!6APX8`yA{enSt7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oS=8pq$O>iIT$$&}uvK>Qk4vJrdh^e{{3Rr4|{n9F0u}zTj zTwwX`3hU?;H9a~0mLZDhTAjM!lLqr+8KV@S7(vLc4q_j-Y6{~+Oid_=??fW;sDAr8 zaNkM)M#m+|B5J|qkx`kJi9h3^@KXOJVivzC7NjXMoiBKSYDkiUq>=T6kj<9Uon i$^Tb7Dxt??@UMJbp)UlTVb7hj0A+b~xf&UG=>GvK4Xif+ literal 0 HcmV?d00001 diff --git a/scripts/ledge/common/src/main/resources/item_crumble0.png b/scripts/ledge/common/src/main/resources/item_crumble0.png new file mode 100644 index 0000000000000000000000000000000000000000..5833eec60a71c37b5ef1a440c7db02354fc279f1 GIT binary patch literal 1208 zcmV;p1V{UcP)N#<+QMs#S$5y4iJXvLMqje?3BT@_u48&__N2#R*;N^m7Egn}y< zqTp79Dzu@kH_m{#vaa7{Z zGrzKQeSw2d9%5o*ip-^m+--lB`-BT~^Bn*B2hLyo8x@JY*{89HyaF&eQRkBn-ePuN zlaIBS|x|EGrBEz|#6H#>Yl^`^^`4_r1?? z-V=N07^##w^u#PHw>rd8gsKz_08|B)etxRT<|q2iU7SN|dx$F|g{FjIJ1;yUh-f~F^Xpy8 z`mF^j)$OSO+LS6)P%ShYl1OpsI-(K1m3h|O3eNdLcOsv5$a0c2mk_r03ZMe00MvjAOP5vw)uBhMYahP45T0; z+iC-1 z0GPqbYC`7vTAd6?A`lTopq2mk_r03ZMe00MvjU{?c>5COX#fWW}Cfd7M;^_8$(5fi#S z$Ks7Hail}tFJK;2BifyWt4saop;c9I-gD}YE7V3xIPV$WHW^R7TH@TLC2p*A5fxMK z{hW&M{f`$p_ty<38&%TGF-#oHAakB_9MMZ1$G`i1LzPOR=Hz%&R1PPp=j_}Pt;d?| zovM>LkMpkIP<5Y=C{h}=3ILydb&Atx7xKsT?S!;urpJL_RAj$5W4vDB$jb+L`aqM3 zMz!BVXm-DL2q6gVPLB(hmpT6JZ(O{*jH+1P7kx-tGt&yRfNxZ#xzR8^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