Skip to content

Commit

Permalink
Update the demo for a better demonstration of RGSS (#5)
Browse files Browse the repository at this point in the history
* Update CI

* Add Cursor rules

* Add texture profile to enable mipmaps

* Update demo image

* Update deps

* Add camera

* Update gif
  • Loading branch information
aglitchman authored Oct 22, 2024
1 parent fa8381e commit 4ef95c1
Show file tree
Hide file tree
Showing 12 changed files with 263 additions and 588 deletions.
18 changes: 18 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
It's an extension for the Defold game engine. The Defold engine is a 2D game engine, but it can also be used to make 3D games. It uses Lua 5.1 as its scripting language with "bit" module for bitwise operations. Developers write Lua code in the files with ".lua", ".script", ".gui_script", ".render_script", ".editor_script" extensions. Source code is formatted with 4 spaces for indentation. "snake_case" is used for variable, function, file, folder names. It uses LDoc for documentation.

The example of LDoc is:

```lua
--- Summary ends with a period.
-- Some description, can be over several lines.
-- @tparam string p1 first parameter
-- @tparam[opt] string p2 second parameter (optional)
-- @treturn number a number value
-- @see second_fun
function mod1.first_fun(p1,p2)
end
```

The structure of the project is the following:
- folder "sharp_sprite" contains the Lua and GLSL shaders part of the extension.
- folder "demo" contains the example project written in Lua for the extension.
21 changes: 17 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,29 @@ on:
push:
branches:
- main
tags:
- 0.*
- 1.*
pull_request:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Java ♨️
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Build 🔧
env:
DEFOLD_BOB_SHA1: ${{ secrets.DEFOLD_BOB_SHA1 }}
DEFOLD_BOB_SHA1: ${{ vars.DEFOLD_BOB_SHA1 }}
run: |
lsb_release -a
Expand All @@ -34,8 +40,15 @@ jobs:
java -jar build/bundle/bob.jar --email foo@bar.com --auth 12345 --texture-compression true --bundle-output build/bundle/js-web --platform js-web --archive --variant release resolve build bundle
- name: Upload Result
uses: actions/upload-artifact@v4
with:
name: bundle
path: build/bundle/js-web/sharp_sprite

- name: Deploy to Pages 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build/bundle/js-web/sharp_sprite
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ builtins
/.vscode
/editor-script-lua-format
/build_demo.sh
/.editor_settings
Binary file modified demo/assets/demo_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions demo/input/game.input_binding

This file was deleted.

Loading

0 comments on commit 4ef95c1

Please sign in to comment.