Skip to content

Latest commit

 

History

History
74 lines (60 loc) · 2.61 KB

README.md

File metadata and controls

74 lines (60 loc) · 2.61 KB

Html to CreadorCraft Maker GHA

Github Github Actions NodeJS NPM JavaScript Json

Github Action to transpile your Html5 game to CreatorCraft game on Github!

If you want to know how to create a game in CreadorCraft I recommend you check out the CreadorCraft Maker wiki you can also run many programming languages for your game!

Example Work

You need a Html5 game file .html

Action options

  • path: destination of the game files CreatorCraft (the game's manifest.json should be there when creating) required
  • pathGame: Html5 game directory if it is in your Github repo
  • pathCustomJs: additional JavaScript file directory for the Html5 game (must be in a different directory than where the CraftCreator game will be generated, same for the css)
  • pathCustomCSS: additional css to the Html5 game

Example of task:

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
    steps:
      - uses: actions/checkout@v4
      - name: Scratch-CreadorCraft-Maker
        uses: Creadores-Program/Html-to-CreadorCraft-Maker-GHA@v1.0.0
        with:
          path: "./src" # Destinity CreadorCraft Game (this not genere manifest.json)
          pathGame: "./Game.html"
      # Pack..
      - name: CreadorCraft-Maker
        uses: Creadores-Program/CreadorCraft-Maker-GHA@v1.1.0
        with:
          path: "./src"
      - name: Upload Artifact
        uses: actions/upload-artifact@v4
        with:
          name: My Game Example
          path: gameBuildCCM/TestName 1.0.0.creadorcraftgame.zip

Structure Repo:

myName/RepoGameName/

  • Game.html

  • src

    • manifest.json:
    {
     "name": "TestName",
     "description": "Test game",
     "version": "1.0.0",
     "mainHtml": "index.html",
     "mainCSS": "index.css",
     "mainJS": "main.js"
    }

CreadorCraft Maker Action

Made in Mexico.

Creadores Program © 2024