Skip to content

Commit

Permalink
docs: small fixtures before 0.0.4 (#47)
Browse files Browse the repository at this point in the history
* docs: update platform support on README.md

* fix: missing module http in repl

* docs: upgrade version in doxygen

* docs: add example hello world
  • Loading branch information
RodrigoDornelles authored Aug 11, 2024
1 parent 8b8f1d7 commit 439fb44
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Custom Configs
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "Engine"
PROJECT_NUMBER = 0.0.2
PROJECT_NUMBER = 0.0.4
PROJECT_BRIEF = "Game engine in lua"
PROJECT_LOGO =
OUTPUT_DIRECTORY = .
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Platform Support List
| curses | tier ? | PC |
| html5 | tier 2 | Browser |
| html5_webos | tier 2 | TV |
| html5_tizen | tier ? | TV |
| html5_tizen | tier 3 | TV |
| html5_ginga | tier ? | TV |
| esp32 | tier ? | Embed |
| roblox | tier ? | Game |
Expand All @@ -53,6 +53,6 @@ Platform Support List
| nintendo_wii | tier 4 | Console |
| nintendo_wiiu | tier ? | Console |
| nintendo_switch | tier ? | Console |

| playstation_2 | tier ? | Console |
---
This game engine is **open source** and **free** for all uses, focusing on promoting content for our **commercial platform**.
31 changes: 31 additions & 0 deletions examples/helloworld/game.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
local function init(std, game)
end

local function loop(std, game)
end

local function draw(std, game)
std.draw.clear(std.color.black)
std.draw.color(std.color.white)
std.draw.text(8 , 8, 'Hello world!')
end

local function exit(std, game)
end

local P = {
meta={
title='Hello world',
author='RodrigoDornelles',
description='say hello to the world!',
version='1.0.0'
},
callbacks={
init=init,
loop=loop,
draw=draw,
exit=exit
}
}

return P;
2 changes: 2 additions & 0 deletions src/engine/core/repl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ local engine_color = require('src/lib/object/color')
local engine_math = require('src/lib/engine/math')
local engine_http = require('src/lib/engine/http')
local engine_csv = require('src/lib/engine/csv')
local protocol_curl = require('src/lib/protocol/http_curl')
local application_default = require('src/lib/object/application')
local color = require('src/lib/object/color')
local game = require('src/lib/object/game')
Expand Down Expand Up @@ -82,6 +83,7 @@ local function main()
:package('@math', engine_math.clib)
:package('@random', engine_math.clib_random)
:package('@csv', engine_csv)
:package('@http', engine_http, protocol_curl)
:run()

application.callbacks.init(std, game)
Expand Down

0 comments on commit 439fb44

Please sign in to comment.