platformer-movement

platformer-movement is a skill for Claude Code, Codex from vchelaru/FlatRedBall2. It costs 58 tokens per session (7,762 once invoked), scanned A, original, MIT.

A guide to building side-scrolling platformer movement in FlatRedBall2, a game engine. It covers movement data, player behavior, jumping, ground detection, air control, and related mechanics.

In plain words
What is it for?
Use it when implementing or tuning a platform game's player movement, including double jumps, variable-height jumps, and keyboard controls. Movement settings can be kept in a JSON file or written directly in C#.
Why use it?
It gives the movement component a defined structure instead of scattering velocity, input, and jump rules through game code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when implementing or tuning a platform game's player movement, including double jumps, variable-height jumps, and keyboard controls. Movement settings can be kept in a JSON file or written directly in C#.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vchelaru/flatredball2/platformer-movement
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vchelaru/FlatRedBall2 --skill platformer-movement
Clone the repo
git clone --depth 1 https://github.com/vchelaru/FlatRedBall2

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for platformer-movement

README.md
[![agentmods](https://agentmods.dev/badge/skills/vchelaru/flatredball2/platformer-movement.svg)](https://agentmods.dev/skills/vchelaru/flatredball2/platformer-movement)
Your own site
<a href="https://agentmods.dev/skills/vchelaru/flatredball2/platformer-movement"><img src="https://agentmods.dev/badge/skills/vchelaru/flatredball2/platformer-movement.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,762 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.07762
Opus 5 $0.00029 $0.03881
Sonnet 5 $0.00012 $0.01552
Haiku 4.5 $0.00006 $0.00776

Measured 2d ago against content hash 704e7813cfb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

platformer-movement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frb-skills/platformer-movement/SKILL.md · 463 lines

How it starts

The opening of the file, as written. The whole thing — 463 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Platformer Movement

Overview

Platformer movement is provided by two classes in FlatRedBall2.Movement:

  • PlatformerValues — a plain data class holding movement parameters for one movement mode (Ground, Air, etc.)
  • PlatformerBehavior — a component added to an entity that reads input, drives the state machine, and applies velocity/acceleration each frame

Minimal Setup

Movement coefficients are recommended in a JSON file for fast tuning and hot-reload. Copy the template from .claude/templates/PlatformerConfig/player.platformer.json into the project's Content/ folder, adjust values, and add <Content Include="Content/*.json" CopyToOutputDirectory="PreserveNewest" /> to the .csproj. For prototypes/tests, equivalent hardcoded values in C# are valid.

public class Player : Entity
{
    private readonly PlatformerBehavior _platformer = new();

    public override void CustomInitialize()
    {
        PlatformerConfig.FromJson("Content/player.platformer.json").ApplyTo(_platformer);

        var keyboard = Engine.Input.Keyboard;
        // Use .Or() to accept multiple key combos (e.g. Space or Up for jump, Arrows or WASD for move):
        _platformer.JumpInput     = new KeyboardPressableInput(keyboard, Keys.Space)
                                        .Or(new KeyboardPressableInput(keyboard, Keys.Up));
        _platformer.MovementInput = new KeyboardInput2D(keyboard, Keys.Left, Keys.Right, Keys.Up, Keys.Down)
                                        .Or(new KeyboardInput2D(keyboard, Keys.A, Keys.D, Keys.W, Keys.S));
    }

    public override void CustomActivity(FrameTime time)
    {
        _platformer.Update(this, time);  // call AFTER collisions are resolved
    }
}

PlatformerConfig JSON

PlatformerConfig.FromJson(path) deserializes a JSON file into a pure data model; the ApplyTo extension method pushes it onto a PlatformerBehavior. The config is a model — it does not reference the behavior; ApplyTo lives in PlatformerConfigExtensions.

Read the full file on GitHub · 463 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 463 lines · 58 tokens per session scan A 704e7813cfb7

Subscribe to this mod's changes

platformer-movement is a skill published in the GitHub repository vchelaru/FlatRedBall2 (14 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 7,762 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.