# Web target - big progress, first 3 demos to try!

**URL:** https://forum.castle-engine.io/t/web-target-big-progress-first-3-demos-to-try/1495
**Category:** News
**Created:** [January 6, 2025, 1:43pm UTC](https://forum.castle-engine.io/t/web-target-big-progress-first-3-demos-to-try/1495 "2025-01-06T13:43:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [January 6, 2025, 1:43pm UTC](https://forum.castle-engine.io/t/web-target-big-progress-first-3-demos-to-try/1495/1 "2025-01-06T13:43:08Z")

</div>

| [![Web demo - 3D viewport, lights, Examine camera, physics](https://forum.castle-engine.io/uploads/default/original/2X/6/698a23c2314407ac3303bd24bd724534ed0f04d1.png)](https://castle-engine.io/wp/wp-content/uploads/2025/01/web_simplest_viewport.png "Web demo - 3D viewport, lights, Examine camera, physics") |
| [![Web demo - invaders](https://forum.castle-engine.io/uploads/default/original/2X/6/614dc6dd03f7c353e4fc67e10b33dd256879997b.png)](https://castle-engine.io/wp/wp-content/uploads/2025/01/web_simplest_invaders.png "Web demo - invaders") |
| [![Web demo - first demo](https://forum.castle-engine.io/uploads/default/original/2X/f/f35bc6115b7a7310031e3d26faaeb3759e980435.png)](https://castle-engine.io/wp/wp-content/uploads/2025/01/web_simplest.png "Web demo - first demo") |

We are proud to present the first 3 working applications developed with _Castle Game Engine_ for the [web](https://castle-engine.io/web)! Check them out — just open the links below, in any web browser (Firefox, Chrome…), on desktop or mobile!

1. [3D viewport, with random cones, animated spot light, dropping boxes with physics, Examine camera navigation](https://castle-engine.io/web-demos/simplest_viewport).

2. [2D “Invaders” game – simple game, using keys, multiple views, 2 difficulty modes](https://castle-engine.io/web-demos/simplest_invaders). Note: This example is not really useful on mobile, just because it relies on the keyboard input.

3. [The first, simplest example that we got running on the web!](https://castle-engine.io/web-demos/simplest)

Note: These are _early demos_, don’t judge the quality yet — we have some known TODOs (fuzzy text; and the demos will look more impressive once we will have [data](https://castle-engine.io/data) loading, for now everything you see was set up by code). Stay tuned for more 🙂

How is this possible?

- We use the WebAssembly target available in [FPC](https://www.freepascal.org/) and we have a “glue” code generated using [Pas2js](https://getpas2js.freepascal.org/). We render using WebGL (1.0, with 2.0 features useful but optional), using the [Castle Game Engine](https://castle-engine.io/) code. The game code is cross-platform (the 3 examples above can be recompiled to desktop, mobile, console without any change). The `TCastleWindow` abstracts all platform differences providing rendering and handling input (key, mouse, touch).

- This is not yet available in the CGE `master` branch, not yet available in the downloads! The development is on a branch [webassm\_platformer\_test](https://github.com/castle-engine/castle-engine/tree/webassm_platformer_test). It should be merged to `master` soon.

- We have a ton of documentation what works already, how it works, how to test it, what is missing, and what do we plan on the [web platform page](https://castle-engine.io/web). This page was quite intensively updated in the last 2 weeks, so check it out!

Do you like what we do? Spread the word to your friends and [support us on Patreon](https://www.patreon.com/castleengine)! And have fun developing games with our open-source game engine 🙂

---

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [January 6, 2025, 1:43pm UTC](https://forum.castle-engine.io/t/web-target-big-progress-first-3-demos-to-try/1495/2 "2025-01-06T13:43:32Z")

</div>


