Flag ShopFlags, maps, games and patches for every nation

Make any satisfying simulation video.

simkit is a Python engine for balls, gates, rings, pegs, tiles and swarms. You write the world and its rules; it simulates, paces, draws, scores and renders a finished 1080×1920 short with sound.

  • One-time purchase
  • Python 3.9+ and ffmpeg
  • Windows, macOS, Linux

Made with simkit.

Eight ready-made scenes, each a real simulation with sound. The full source for every one is included.

Add --quality ultra to Wall Breaker, Square Race, Dense Ring Escape or Flag Wars for native 4K (2160×3840) at 60 fps. Music is not included; use any track you have the rights to.

Everything a video needs.

Real physics, rules you write in plain Python, sound, and pacing that tunes itself.

Physics

Balls with elastic collisions, gravity, drag and constant-speed mode. Rotating rings with moving gaps and hazards, pegs, walls and ramps.

world.add_ball(...)

Swarms

Thousands of balls simulated with numpy. Clone them, remove them and push them through moving gates.

world.add_swarm(cap=1000)

Zones

Rectangles and circles that move over time and fire your rules the moment something enters.

Zone("gate", box=fn)

Tiles

A tile map that bodies paint, with live shares per team and a winner flood at the end.

TileGrid(35, 980, teams=4)

Sound

Pops, ticks, risers and a win jingle, synthesised from your events. Add your own music track if you like.

sfx.add(t, "pop")

Pacing

Auto-tune any parameter or search seeds so the payoff lands late and the finish is close. The same seed always gives the same video.

tune.bisect(...)

A scene in three steps.

Describe the world
Add balls, swarms, gates, rings, pegs and tile maps in build().
Write the rules
Attach plain Python functions: what happens when a ball enters a gate, hits a rival or touches lava.
Add sound and visuals
Map events to sound effects in sound() and paint each frame in draw().
my_video.py
# python -m simkit new my_video --template swarm
class Gates(Scene):
    arena = (980, 980)

    def build(self, world):
        gate = lambda t: (300 + 200*sin(t), 480, 640 + 200*sin(t), 540)
        world.add_zone(Zone("x2", "rect", box=gate))
        self.swarm = world.add_swarm(cap=800, speed=420)
        for _ in range(3): self.swarm.add(490, 800)
        world.on_swarm_zone = lambda w, s, z, idx: s.clone(idx, 1)

    def sound(self, run, sfx): ...
    def draw(self, f, run, img): ...

$ python -m simkit run my_video.py --seed 1
DONE -> out/my_video_1.mp4

Get simkit.

$19One-time purchase

Buy simkit

Secure checkout with StripeInstant download after payment

In the zip

  • The simkit engine. Physics, scenes, auto-pacing, tile maps, drawing toolbox, sound synth and the video writer.
  • Eight showcase scenes. Full source for every video shown above, four of them with native 4K / 60 fps export.
  • Three starter templates. simkit new my_video creates a scene that runs straight away.
  • Reference docs and a Claude Code skill that lets Claude write and render scenes for you.

You need

Python
3.9 or newer
Packages
pillow 10+, numpy
Video
ffmpeg on your PATH
System
Windows, macOS or Linux
Output
H.264 MP4, up to 4K / 60 fps

Questions

What kinds of videos can I make?

Anything built from moving shapes and rules: counters that multiply, races, territory games, marble runs, battle royales, survival hazards, pegboards. Balls, swarms, zones, rings, pegs, walls and tile grids can be combined freely.

Do I need to know how to code?

A little Python helps. A scene is a handful of short methods, and each starter template is about sixty lines you can edit. If you use Claude Code, the included skill can write and render scenes for you.

How long does a video take to render?

Usually one to a few minutes, depending on your computer and the scene. Scenes that search for a good seed first take a little longer.

Does it post to TikTok or Instagram for me?

No. It renders the MP4 and suggests a caption; you upload it wherever you like.

Can I use my own music?

Yes. --music song.mp3 mixes the sound effects over your track. Without it, the engine adds a soft generated background pad.

Does it need the internet?

Only the first time you use a country flag: it is downloaded once from flagcdn.com and cached. Everything else runs offline.

Will every video be the same?

No. Each run uses a random seed. Pass a seed such as --seed 4 to reproduce a video exactly.

Can I post the videos I make?

Yes. The videos you render are yours to post. Please label them as simulations and never present them as real events.