Skip to content

Commit

Permalink
Added links to release version of Pixelot (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximGorbach authored May 1, 2023
1 parent e7c3398 commit 3714170
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
9 changes: 5 additions & 4 deletions BuildInstructions.md
Original file line number Diff line number Diff line change
@@ -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:<target>` where `<target>` 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\<target>` 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\<target>`
3. Within `runner\dist\` you will find the distributable files for each target
4. Within `runner\dist\<target>` 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\<target>`
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\<target>` 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):
Expand Down
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
7 changes: 0 additions & 7 deletions engine/src/gameloop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down
8 changes: 4 additions & 4 deletions pixelot/projects/project1/project.proj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"textures": [],
"start_scene": "test_scene",
"shaders": [
{
"name": "TestHalfScreenShader",
"args": []
},
{
"name": "BarShader",
"args": []
Expand All @@ -19,6 +15,10 @@
"args": [
0
]
},
{
"name": "TestHalfScreenShader",
"args": []
}
]
}

0 comments on commit 3714170

Please sign in to comment.