234 points · by ranger_danger · 1w ago · 68 comments
I suppose I am a little surprised the biplane was able to loop on its own power from level flight.
Interaction-wise, I would have liked
- to be able to invert the Y axis on the mouse control! Nuts that this alternative is not included.
- a vertical speed gauge all the time, not just when the simulator thinks I'm about to land.
- go-arounds to be handled more gracefully, rather than as a very long landing.
- a trim control on the mouse wheel to set the airspeed. (And then the mouse control could keep returning to centre, at least in expert mode.)
- a toggle for opting out of metric units, and instead using more customary knots for speed, feet for altitude, feet per minute for vertical speed etc.
- pre-tuned navigation radios (or even just VFR charts) as an optional replacement for arrows in the sky.
With these changes (and possibly more I think of later) this could be a really fun way to get children into flight simulation, since it's so action packed.
Great list, I will add these in time.
https://github.com/dai-studio/ex-baron
License: BSD 2-Clause, feel free to submit PRs.
Source: https://github.com/dai-studio/ex-baron (BSD 2-Clause)
Each typed element in the design describes detailed aspects of the game. This is the primary "Context" element. Just select an element to see it's schema/data.
"Baron is an arcade biplane game set in a WWI-inspired, cartoon world. The player builds their aircraft in the hangar, takes off from an airfield, flies over a procedurally generated landscape under procedurally generated clouds, and lands again. There is no combat. Pillars: (1) Flying feels great: quick to learn, satisfying to master. (2) A readable, cheerful cartoon look: toon shading, ink outlines, bold colours. (3) Every flight is different: a seed generates terrain, clouds and airfields. (4) Instant play: opens in a browser tab with no install."
Try pasting the raw diagram into an agent, here is the prompt...
"Build https://dai.studio/ted/ex-baron/raw"
You won't get the identical game but all the specified details will be there in the end result. If you swap out some key dependencies... Unreal Engine vs three.js, you will get some wild result. Have fun and post your results. :)
However I quickly realised it's a non-trivial UX problem and needs a bit more effort to make something worthwhile. It will come later!
Current LLMs are great for making little throwaway HTML toys like this. I do it too.
It inspired me so much, I intend to create a real game and maybe even release it on steam. Weird, but there are no 3d implementations yet, afaik.
The source is here: https://github.com/dai-studio/ex-baron
BSD 2-clause, PRs welcome.
Some of them are incredibly good by the way; I have one that’s better than the commercial ones of that genre in the AppStore.
I knew it was possible (Gamepad API [1]) but never bothered to code it for my WebGL experiment (that was before ai) although I did buy again the same joystick I had as a kid, the sidewinder precision pro [2], which is certainly the oldest usb device I still use today (released ~30 years ago).
[1] https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API... [2] https://en.wikipedia.org/wiki/Microsoft_SideWinder#Precision...
Good flight feel, nice graphics, nice typography!
Feature suggestions:
+ Missions to deliver letters to random points on map.
+ Damage modelling so you get more points the more pieces remain attached to the plane on landing.
+ Trim control on arrow keys (up arrow for elevator down, down for elevator up, left for rolling left, right for rolling right).
+ Option to have obstacles like bad weather, birds, kites, other planes, including ones armed with paintballs or other projectiles that cause localized damage on your plane or obscure your view from behind the plane with paint or smoke.
+ Ability to move camera around the plane with mouse and zoom in and out with scroll wheel.
+ Better sound overall, especially less repetitive sounds for engines.
+ “Roguelite” progression where you get to keep unlocked perks, with random missions and events (https://hypertexthero.com/roguelite-flight-sims/)
+ Mission and plane editors.
+ Controller support.
I’d buy this on Steam or Itch.
- Don't auto correct roll back to level (or make it a toggle)
- Ability to change units (eg f vs m)
- Toggle to disable the auto-rudder
- Charts and some for of radio nav as an option rather than the path through the sky
I like the choice of licensing, might have a poke around as this is a really cool little project :)
https://www.reddit.com/r/vibecoding/comments/1xwdvhf/im_a_hu...
Source: https://github.com/dai-studio/ex-baron
See design.dai, plan.dai, progress.dai
I'll need to try again, I failed to take off.
I notice the back flap is going into the road.
Can you add rudder and elevator trim?
https://news.ycombinator.com/item?id=50503397
Explains how to fly, and links to the repo
> Press F to lower Flaps for Take Off
> Press SHIFT to Throttle Up
> At 50km/hr, Down arrow to take off.
> Arrow keys are control stick.
Here's mine:
https://greggman.github.io/gen-city-auto/ (430k, 4 cites, tons of vehicles, trains, signs, water, bridges, rain, road details) - video for highlights: https://x.com/greggman/status/2117605120745881692
https://greggman.github.io/cyber-web-city/ (200k, 10 cities themes) - video for highlights: https://x.com/greggman/status/2109451367941378213
https://greggman.github.io/webgpu-driving/ (170k - 10 environments, several vehicles, tunnels) - video for highlights: https://x.com/greggman/status/2104533425478930568
https://greggman.github.io/webgpu-aquarium/ (102k - several fish, different ocean styles)
note: iOS in particular is really slow to start up these.
Maybe it's all AI slop. None of them are fun games, they're just tech demos.
The interesting things are they are all small. All assets are built at startup. They aren't using any libraries. That suggests there is lots of low-hanging fruit for quick to start web-games.
Telling the LLM to build from scratch and follow AAA practices frees the LLM to use whatever is appropriate, rather than whatever some library dictates. The LLM was also good at optimizing, at least to an extent. It would run experiments, turning features on/off to find where the speed was going. It would also do A/B screenshots to see how much changing techniques effected the output.
Each demo from prompt to first output took 2-3 hours and then a few prompts in my free time to clean up the most outstanding issues.
One thing that helped a bunch was telling the LLM to model cars using NURBS instead of polygons. Another was telling it to have a separate modeling agent, and a separate judging agent.
None of the demos are perfect. They got to a point where I was happy that they showed want I wanted to see. I wasn't planning to take them to perfection. The gen-city-auto demo has the most issues. While it made a giant city, there are lots of places where a road makes no sense. I could prompt through that but all I really wanted to see was a GTA like city in a small amount of code and for that it proved the concept is valid. Given ways for a designer to declare what they wanted where I could see the concept generate much more "designed" cities.
Sure, probably, but as long as you're having fun, and you get to experiment at a velocity (due to vibe coding) that is probably unprecedented.
I also think there may be some inherent problems with just supporting games in WebGL/wasm etc, because you're still within the constraints of a browser. You still have to pass through a JS glue layer for every WebGL call, for example, not to mention the data marshaling costs.
The cool thing is that you can reach literally anyone with a web browser, however.
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better."
> worth much less attention
Prove it. Vote with your wallet, err, attention? You don't get to decide for me or anyone else on this site how much attention this post is worth. Unless your charge is that OP is buying votes, or Claude magics votes into existence, the fact that it got popular is proof enough.
If you don't like it, don't read it, and if you get conned into that, don't upvote or comment.