Skip to content

Commit

Permalink
update engine
Browse files Browse the repository at this point in the history
  • Loading branch information
khuonghoanghuy committed Jan 9, 2025
1 parent 1a87fae commit a39d14d
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 202 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A game engine using HScript with a scriptable interface to create a complete gam
### Polymod System
- This engine uses Polymod as the core system to function.

### HScript-Based System
- You can code the game using the HScript system we developed!
### Haxe Scripting
- This engine support hscript code, you can code haxe as a script!

### Lua Scripting (available from v2.0 and above)
- Yes, you can code in Lua with many functions and variables we provide.
Expand Down
12 changes: 7 additions & 5 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# List TODO for Cruese Engine
## v2.0 (Lua update)
## v2.1 (Menu Update)
- [ ] Rework game menu

## v2.0 (Lua update) - DONE
- [X] Added Lua script (is work lmao)
- [ ] Added alot of function/variable make for lua
- [ ] Make `GameSelectionState` can be editable
- [ ] Fix for Lua `haxe value not supported` from `llua/Convert.hx:34`
- [ ] Fix `mod_version` will also not able to load if the mods not have same version at `api_version`
- [X] Added alot of function/variable make for lua (beta!)
- [X] Fix `mod_version` will also not able to load if the mods not have same version at `api_version` (maybe it just a bug??)
- [X] Using `hscript-iris` since this one is better
- [ ] Update `README.md`

## v1.3.1 (Little Fixed) - DONE
- [X] Make Splashes can be skipping by press Enter
Expand Down
2 changes: 1 addition & 1 deletion engineVer.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version":"1.3.1"
"version":"2.0"
}
2 changes: 1 addition & 1 deletion source/AboutClass.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AboutClass extends FlxSubState
bg.cameras = [camGame];
add(bg);

var text:FlxText = new FlxText(0, 0, 0, 'Engine v' + Lib.application.meta.get("version") + "\nMods and API v" + GameHandler.versionA_M, 24);
var text:FlxText = new FlxText(0, 0, 0, 'Engine v' + Lib.application.meta.get("version") + "\nAPI For Mods v" + GameHandler.versionAPI, 24);
text.screenCenter();
text.scrollFactor.set();
text.cameras = [camGame];
Expand Down
3 changes: 1 addition & 2 deletions source/GameHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import flixel.text.FlxText;
import flixel.util.FlxColor;
import haxe.Http;
import haxe.Json;
import openfl.Lib;

// just a bunch of function can be used
class GameHandler
{
// public static var version:String = Lib.application.meta.get("version");
public static var versionA_M:String = "2.0.0";
public static var versionAPI:String = "2.0.0";

// Bunch Variable for Lua
public static var gameText:Map<String, FlxText> = new Map<String, FlxText>();
Expand Down
189 changes: 0 additions & 189 deletions source/HScript-Old.hx

This file was deleted.

2 changes: 1 addition & 1 deletion source/LuaScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LuaScript extends FlxBasic
}

setVar("VERSION", openfl.Lib.application.meta.get("version"));
setVar("VERSION_A_M", GameHandler.versionA_M);
setVar("VERSION_API", GameHandler.versionAPI);

setFunction("exitGame", function(exitActually:Bool = false) GameHandler.exitGame(exitActually));
setFunction("resizeApp", function(w:Int, h:Int) GameHandler.resizeApp(w, h));
Expand Down
1 change: 1 addition & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package;

import flixel.FlxState;
import openfl.Lib;
import sys.FileSystem;

using StringTools;
Expand Down
1 change: 0 additions & 1 deletion source/PolyHandler.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package;

import flixel.FlxG;
import polymod.Polymod;
import polymod.backends.PolymodAssets.PolymodAssetType;
import polymod.format.ParseRules;
Expand Down

0 comments on commit a39d14d

Please sign in to comment.