From 37141703406aab81c5c418320ac82db1a0730291 Mon Sep 17 00:00:00 2001 From: Maxim Gorbach <60197569+MaximGorbach@users.noreply.github.com> Date: Mon, 1 May 2023 15:37:13 +0100 Subject: [PATCH] Added links to release version of Pixelot (#51) --- BuildInstructions.md | 9 +++++---- Readme.md | 2 ++ engine/src/gameloop.ts | 7 ------- pixelot/projects/project1/project.proj | 8 ++++---- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/BuildInstructions.md b/BuildInstructions.md index a9f93af..a56a23f 100644 --- a/BuildInstructions.md +++ b/BuildInstructions.md @@ -1,10 +1,11 @@ # Building Pixelot +> Note that these instructions are only necessary for development work on Pixelot, to install the current version of Pixelot, do so from [here](https://github.com/SLYGM/RetroEngineTM/releases/tag/Release). ## Building the Runners -1. Within `runners\` run `npm run build-prod` +1. Within `runner\` run `npm run build-prod` 2. Then run `npm run dist:` where `` is one of `windows`, `mac`, or `linux` (or just `npm run dist` to build all three) -3. Within `runners\dist\` you will find the distributable files for each target -4. Within `runners\dist\` find the reference in `package.json` to the engine library and correct the relative path to point to the `engine` directory -5. Now run `npm run install` within `runners\dist\` +3. Within `runner\dist\` you will find the distributable files for each target +4. Within `runner\dist\` find the reference in `package.json` to the engine library and correct the relative path to point to the `engine` directory +5. Now run `npm run install` within `runner\dist\` 6. Delete the `game` folder within the runner (this will be created by the engine when building) 7. Finally, copy the built runner to `pixelot\runners\` and rename the folder to 'Windows', 'Linux', or 'Mac' Your `pixelot` directory should now look like (if you only want to build to Windows, the other folders aren't necessary): diff --git a/Readme.md b/Readme.md index 9dce3c0..c35a756 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,7 @@ # [Engine Documentation](docs/modules.md) +# [Download Pixelot](https://github.com/SLYGM/RetroEngineTM/releases/tag/Release) + # Pixelot Pixelot is an ECS-based 2D game engine designed to streamline the creation of retro-styled games, through pixel-perfect rendering and provided retro-style shaders. diff --git a/engine/src/gameloop.ts b/engine/src/gameloop.ts index 996a52c..4bc09ec 100644 --- a/engine/src/gameloop.ts +++ b/engine/src/gameloop.ts @@ -77,18 +77,11 @@ export class Game { const game_data = JSON.parse(data.toString()); Renderer.setResolution(game_data["resolution"][0], game_data["resolution"][1]); - this.loadTextures(game_data["textures"]); this.loadShaders(game_data["shaders"]); this.start_scene = game_data["start_scene"]; } - private static loadTextures(textures: {name: string, path: string}[]) { - for (const texture of textures) { - Renderer.loadTextureWithAlias(texture.path, texture.name); - } - } - private static loadShaders(shaders: {name: string, args: any[]}[]) { for (const shader of shaders) { const typed_constr = ImportManager.getShader(shader["name"]); diff --git a/pixelot/projects/project1/project.proj b/pixelot/projects/project1/project.proj index 4025699..7a43e05 100644 --- a/pixelot/projects/project1/project.proj +++ b/pixelot/projects/project1/project.proj @@ -6,10 +6,6 @@ "textures": [], "start_scene": "test_scene", "shaders": [ - { - "name": "TestHalfScreenShader", - "args": [] - }, { "name": "BarShader", "args": [] @@ -19,6 +15,10 @@ "args": [ 0 ] + }, + { + "name": "TestHalfScreenShader", + "args": [] } ] } \ No newline at end of file