Karl Zylinski 2 mesiacov pred
rodič
commit
1b06b7e2d8
1 zmenil súbory, kde vykonal 15 pridanie a 5 odobranie
  1. 15 5
      README.md

+ 15 - 5
README.md

@@ -44,11 +44,12 @@ Karl2D is currently in its FIRST BETA period. This first beta has these features
 - Web support (WebGL, no emscripten needed!)
 - Input: Mouse, keyboard, gamepad
 
-This first beta does NOT have the following features, but they are planned in the order stated:
-- Linux
-- Sound
-- System for cross-compiling shaders between different backends (HLSL, GLSL etc)
-- Mac (metal)
+>[!WARNING]
+>This first beta does NOT have the following features, but they are planned in the order stated:
+>- Linux
+>- Sound
+>- System for cross-compiling shaders between different backends (HLSL, GLSL etc)
+>- Mac (metal)
 
 ## Feedback wanted
 Here are some things I want to get feedback on during this first beta:
@@ -69,6 +70,15 @@ Here are some things I want to get feedback on during this first beta:
 
 Join my Discord server and let me know in the #karl2d channel what you think! Here's the invite: https://discord.gg/4FsHgtBmFK
 
+## How to make a web build of your game
+
+See the `minimal_web` example: https://github.com/karl-zylinski/karl2d/blob/master/examples/minimal_web/minimal_web.odin
+
+There's a comment at the top of that file on how to use the `build_web_example` tool (which you find in the examples folder too). You can use that tool to make your own web build as well.
+
+> [!NOTE]
+> Desktop programs can have the whole program in a `main` procedure. But web builds are often split into `main` and `step`, where `step` is called by the browser in order to create a "game loop"
+
 ## Is this a Raylib clone?
 
 The API was originally based on Raylib API, because I like that API. But I have changed things I don't like about Raylib and made the API more Odin-friendly. The implementation is meant to have as few dependencies as possible (mostly `core` libs and some libraries from `vendor`). The web builds do not need emscripten, it uses Odin's js_wasm32 target.