Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
EntityPlantt committed Mar 20, 2022
1 parent 37f7711 commit f61ee86
Show file tree
Hide file tree
Showing 12 changed files with 820 additions and 827 deletions.
19 changes: 4 additions & 15 deletions Parakeet Simulator-win32-x64/resources/app/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
# Parakeet Simulator
*A HTML/CSS/JS game about a parakeet (budgerigar)*

Version: `1.0.0`

Version: `1.0.0`
**Warning: This project is not completed.**

## Wiki
See more at [the wiki](https://github.com/EntityPlantt/parakeet-simulator/wiki).

## Play
Platform|Link
--|--
Browser|[Web page](https://entityplantt.github.io/parakeet-simulator/)
Windows|[MSI File](https://github.com/EntityPlantt/parakeet-simulator/raw/main/msi/Parakeet%20Simulator.msi)

## Description
This HTML/CSS/JS game *(means it can be played in the browser)* is about a parakeet.

## Wiki
See more at [the wiki](https://github.com/EntityPlantt/parakeet-simulator/wiki).

## Credits
[Vector Vectors by Vecteezy](https://www.vecteezy.com/free-vector/vector)
World "default" background: [Ko_Te](https://www.istockphoto.com/portfolio/Ko_Te?mediatype=illustration)
Main font: [FFF Forward](https://www.1001fonts.com/fff-forward-font.html)

If I haven't credited something properly, please [contact me](mailto:[email protected]?subject=Inappropiate%20credit%20given&body=Dear%20EntityPlantt%2C%0D%0AYou%20have%20credited%20someone's%20artwork%20or%20creation%20inappropriately.%0D%0AThing%3A%20%5BThe%20thing%20that%20you%20are%20talking%20about%5D%0D%0AHow%20to%20properly%20credit%20it%3A%0D%0A%5BPlease%20give%20information.%20Example%3A%20add%20link%20to%20the%20profile%5D).
2 changes: 2 additions & 0 deletions Parakeet Simulator-win32-x64/resources/app/lib/Entity.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Entities from "./Entities.js";
import EntityType from "./EntityType.js";
import ActionResult from "./ActionResult.js";
export default class Entity {
constructor(type, x = 0, y = 0) {
if (!(type instanceof EntityType))
Expand All @@ -16,6 +17,7 @@ export default class Entity {
this.uuid = crypto.randomUUID();
this.type.onSpawn(this);
}
x = 0; y = 0;
type = Entities.AIR;
health = Infinity;
motion = {
Expand Down
4 changes: 3 additions & 1 deletion Parakeet Simulator-win32-x64/resources/app/lib/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ export default class Renderer {
}
x = 0; y = 0;
followingEntity = null;
canvas2d = null;
world = null;
render() {
if (this.followingEntity) {
this.x = this.followingEntity.x;
this.y = this.followingEntity.y;
}
this.canvas2d.assets = [];
var parallax = new Canvas2d.Parallax(this.world.background.data, "height");
var parallax = new Canvas2d.Parallax((this.world.background.data || new Image), "height");
parallax.x = this.x * 20;
parallax.y = this.y * -2;
this.canvas2d.add(parallax);
Expand Down
Git LFS file not shown

Large diffs are not rendered by default.

Binary file not shown.
804 changes: 402 additions & 402 deletions Parakeet Simulator-win32-x64/resources/app/msi/Parakeet Simulator.wxs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Parakeet Simulator-win32-x64/resources/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"scripts": {
"start": "electron .",
"build": "npx electron-packager . --icon=icon.ico \"Parakeet Simulator\"\n./msi",
"build": "npx electron-packager . --icon=icon.ico \"Parakeet Simulator\"",
"msi": "node build-msi.js"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions msi/Parakeet Simulator.msi
Git LFS file not shown
2 changes: 1 addition & 1 deletion msi/Parakeet Simulator.wixobj

Large diffs are not rendered by default.

Binary file modified msi/Parakeet Simulator.wixpdb
Binary file not shown.
804 changes: 402 additions & 402 deletions msi/Parakeet Simulator.wxs

Large diffs are not rendered by default.

0 comments on commit f61ee86

Please sign in to comment.