Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

wrote some text

  • Loading branch information...
commit b4b59f03f246986903463f42675a499ddc37fd91 1 parent 6941ca9
leaf authored

Showing 2 changed files with 40 additions and 1 deletion. Show diff stats Hide diff stats

  1. +39 0 site/index.md
  2. +1 1  site/style.less
39 site/index.md
Source Rendered
@@ -11,6 +11,45 @@ easy to port.
11 11 [2]: https://lua.org
12 12 [3]: https://love2d.org
13 13
  14 +<div>$index</div>
  15 +
  16 +## How It Works
  17 +
  18 +Native client files are distributed as `.nexe` binaries where are compiled for
  19 +both 64-bit and 32-bit computers. Aroma comes as a compiled `.nexe` file that's
  20 +ready to use after uploading to your server.
  21 +
  22 +### Reusing Your Browser
  23 +
  24 +Aroma comes with some support JavaScript that must be uploaded alongside your
  25 +game. The JavaScript facilitiates things like loading code, loading images, and
  26 +rendering fonts.
  27 +
  28 +In order to keep the `.nexe` binary small, things that can already be
  29 +accomplished by your browser are handled there. Thing like rendering fonts and
  30 +decoding images are handled by the `canvas` tag, which functions as an
  31 +invisible buffer.
  32 +
  33 +### Asynchronous Loading
  34 +
  35 +Aroma loads all of your game code from the web. You typically will upload your
  36 +code alongside the `.nexe` files. This enables you to quickly deploy changes
  37 +without having to recompile anything.
  38 +
  39 +If you've ever done web programming you're probably familiar with making
  40 +asynchronous requests to a server to fetch resources by providing some sort of
  41 +a callback function. On the other hand, when loading code in Lua typically
  42 +write something synchronous like:
  43 +
  44 + ```lua
  45 + require "mygame.enemy"
  46 + ```
  47 +
  48 +Aroma translates this call into an asynchronous request to the browser,
  49 +blocking the execution of the game until the resource has been fetched.
  50 +Combined with the caching provided by the browser, this makes loading code from
  51 +the web pleasant.
  52 +
14 53 ## Download
15 54
16 55 ## Getting Started
2  site/style.less
@@ -85,7 +85,7 @@ a {
85 85 background: #E7FFF6;
86 86 padding: 12px;
87 87
88   - h2 {
  88 + h2, h3, h4 {
89 89 color: #48817D;
90 90 text-shadow: 0px 1px 0px white;
91 91 }

0 comments on commit b4b59f0

Please sign in to comment.
Something went wrong with that request. Please try again.