The most Half Arsed Physics game on this planet

Overview

half-arsed-phys

The most Half Arsed Physics game on this planet! Please bully me about this, much appreciated!

Glowstik's Idea go subscribe to him!

How to compile the game (electron)

npx electron-packager `${file location}` phys-ed --win32 --electron-version=17.1.1 --overwrite

Or.. You could also use the already packaged thing, this is just for people who want to update the game.

How to edit the game

There are two things to keep in mind when editing the game:

  1. package.json
  2. main.js

main.js

const { app, BrowserWindow } = require("electron");
const url = require("url");

function newApp() {
  mainWindow = new BrowserWindow({
    width: 1920, << You can edit this
    height: 1080, << You can edit this
    icon: __dirname + './addatives/physed-logo.png' << You can edit this
  });
  mainWindow.loadURL(`file://${__dirname}/index.html`);
}

app.on("ready", newApp);

package.json

{
  "name": "phys-ed", << You can edit this
  "version": "1.0.0", << You can edit this
  "description": "Half arsed physics simulator", << You can edit this
  "main": "main.js", << You can edit this
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "NicohlasDev", << You CAN'T edit this
  "license": "ISC", << You CAN'T edit this
  "devDependencies": {
    "electron-packager": "^15.4.0"
  },
  "dependencies": {
    "balanced-match": "^1.0.2",
    "at-least-node": "^1.0.0",
    "asar": "^3.1.0",
    "author-regex": "^1.0.0",
    "base64-js": "^1.5.1",
    "brace-expansion": "^1.1.11",
    "boolean": "^3.2.0",
    "bluebird": "^3.7.2",
    "buffer-alloc-unsafe": "^1.1.0",
    "buffer-crc32": "^0.2.13",
    "buffer-fill": "^1.0.0",
    "buffer-alloc": "^1.2.0",
    "cacheable-request": "^6.1.0",
    "chromium-pickle-js": "^0.2.0",
    "clone-response": "^1.0.2",
    "compare-version": "^0.1.2",
    "commander": "^5.1.0",
    "concat-map": "^0.0.1",
    "cross-spawn": "^7.0.3",
    "config-chain": "^1.1.13",
    "cross-spawn-windows-exe": "^1.2.0",
    "decompress-response": "^3.3.0",
    "debug": "^4.3.3",
    "define-properties": "^1.1.3",
    "defer-to-connect": "^1.1.3",
    "detect-node": "^2.1.0",
    "duplexer3": "^0.1.4",
    "electron-notarize": "^1.1.1",
    "end-of-stream": "^1.4.4",
    "electron-osx-sign": "^0.5.0",
    "encodeurl": "^1.0.2",
    "env-paths": "^2.2.1",
    "error-ex": "^1.3.2",
    "es6-error": "^4.1.1",
    "escape-string-regexp": "^4.0.0",
    "extract-zip": "^2.0.1",
    "fd-slicer": "^1.1.0",
    "filename-reserved-regex": "^2.0.0",
    "find-up": "^2.1.0",
    "filenamify": "^4.3.0",
    "flora-colossus": "^1.0.1",
    "galactus": "^0.2.1",
    "get-package-info": "^1.0.0",
    "fs-extra": "^9.1.0",
    "glob": "^7.2.0",
    "get-stream": "^5.2.0",
    "global-agent": "^3.0.0",
    "global-tunnel-ng": "^2.7.1",
    "globalthis": "^1.0.2",
    "function-bind": "^1.1.1",
    "got": "^9.6.0",
    "graceful-fs": "^4.2.9",
    "http-cache-semantics": "^4.1.0",
    "has": "^1.0.3",
    "hosted-git-info": "^2.8.9",
    "fs.realpath": "^1.0.0",
    "inflight": "^1.0.6",
    "inherits": "^2.0.4",
    "ini": "^1.3.8",
    "is-core-module": "^2.8.1",
    "is-docker": "^2.2.1",
    "isexe": "^2.0.0",
    "isbinaryfile": "^3.0.3",
    "is-wsl": "^2.2.0",
    "json-buffer": "^3.0.0",
    "json-stringify-safe": "^5.0.1",
    "is-arrayish": "^0.2.1",
    "jsonfile": "^6.1.0",
    "junk": "^3.1.0",
    "keyv": "^3.1.0",
    "load-json-file": "^2.0.0",
    "locate-path": "^2.0.0",
    "lodash": "^4.17.21",
    "lodash.get": "^4.4.2",
    "lru-cache": "^6.0.0",
    "lowercase-keys": "^1.0.1",
    "matcher": "^3.0.0",
    "mimic-response": "^1.0.1",
    "minimatch": "^3.1.2",
    "minimist": "^1.2.5",
    "ms": "^2.1.2",
    "normalize-package-data": "^2.5.0",
    "normalize-url": "^4.5.1",
    "npm-conf": "^1.1.3",
    "object-keys": "^1.1.1",
    "once": "^1.4.0",
    "p-cancelable": "^1.1.0",
    "p-locate": "^2.0.0",
    "p-limit": "^1.3.0",
    "p-try": "^1.0.0",
    "parse-author": "^2.0.0",
    "path-exists": "^3.0.0",
    "parse-json": "^2.2.0",
    "path-is-absolute": "^1.0.1",
    "path-parse": "^1.0.7",
    "path-key": "^3.1.1",
    "path-type": "^2.0.0",
    "pend": "^1.2.0",
    "pify": "^3.0.0",
    "prepend-http": "^2.0.0",
    "plist": "^3.0.4",
    "progress": "^2.0.3",
    "pump": "^3.0.0",
    "proto-list": "^1.2.4",
    "rcedit": "^3.0.1",
    "read-pkg": "^2.0.0",
    "resolve": "^1.22.0",
    "read-pkg-up": "^2.0.0",
    "responselike": "^1.0.2",
    "roarr": "^2.15.4",
    "semver": "^7.3.5",
    "semver-compare": "^1.0.0",
    "serialize-error": "^7.0.1",
    "shebang-command": "^2.0.0",
    "shebang-regex": "^3.0.0",
    "spdx-correct": "^3.1.1",
    "spdx-exceptions": "^2.3.0",
    "spdx-expression-parse": "^3.0.1",
    "sprintf-js": "^1.1.2",
    "spdx-license-ids": "^3.0.11",
    "strip-outer": "^1.0.1",
    "strip-bom": "^3.0.0",
    "supports-preserve-symlinks-flag": "^1.0.0",
    "to-readable-stream": "^1.0.0",
    "sumchecker": "^3.0.1",
    "trim-repeated": "^1.0.0",
    "tunnel": "^0.0.6",
    "type-fest": "^0.13.1",
    "universalify": "^2.0.0",
    "wrappy": "^1.0.2",
    "which": "^2.0.2",
    "url-parse-lax": "^3.0.0",
    "xmlbuilder": "^9.0.7",
    "validate-npm-package-license": "^3.0.4",
    "yallist": "^4.0.0",
    "yargs-parser": "^20.2.9",
    "yauzl": "^2.10.0"
  }
}

Extras

LICENSE

README

You might also like...

A clone of the popular game Wordle made using React, Typescript, and Tailwind

Wordle Clone Go play the real Wordle here Read the story behind it here Try a demo of this clone project here Inspiration: This game is an open source

Jan 8, 2023

๐ŸŽฉ 2048 game is cloned with ReactJS, CSS3.

2048-react This is a clone of 2048 implemented using React. It's running live here. The game logic is implemented in ./src/components/mainBoard.jsx. I

Jul 31, 2022

A tiny game to practice AoE building shortcuts.

Aegis A tiny game to practice Age of Empires IV building shortcuts. Using โš›๏ธ Create-React-App and ๐Ÿป Zustand. License With the exception of all visual

Jan 1, 2023

Provides 5 keywords with which to narrow down your wordle game. I ruin nice things.

Widdle?? I hate fun so I wrote a script that ruins Wordle. This script can be used to find a Widdle, a set of five words that cover nearly all letters

Mar 12, 2022

WORDLEBOARD prototype: Show your Wordle game on a Vestaboard as you play.

WORDLEBOARD prototype: Show your Wordle game on a Vestaboard as you play.

WORDLEBOARD prototype Show your Wordle game on a Vestaboard as you play. Copyright (c) 2022, Scott Schiller. MIT license. Made with love and fun in mi

Dec 20, 2022

Snake game using pure HTML, CSS and JavaScript with GameBoy look and feel using Nano editor

Snake game using pure HTML, CSS and JavaScript with GameBoy look and feel using Nano editor

Snake game using pure HTML, CSS and JavaScript with GameBoy look and feel using Nano editor. 100% commented code in Portuguese

Jul 2, 2022

EarthDefender is a simple personal project JS game

EarthDefender is a simple personal project JS game

EarthDefender is a simple personal project JS game, the goal of it is to stop the meteors from hitting Earth.

Jan 25, 2022

A Wordle-like game where you have to guess the unsigned 8-bit binary number

A Wordle-like game where you have to guess the unsigned 8-bit binary number

Bytle A Wordle-like game where you have to guess the unsigned 8-bit binary number! Game coded in 2h 14m 50.570s, but it's not like I'm counting how lo

Jun 30, 2022

Raid menu for the online game gartic.io

Raid menu for the online game gartic.io

Gartic.io Raid Tools Raid menu for the online game gartic.io Written by Eld3rly Installation

Sep 8, 2022
Releases(v1.1.1)
  • v1.1.1(May 17, 2022)

    fullrelase

    v1.1.1 - Weight and Density Update

    Welcome to v1.1.1 (The Weight and Density Update) within this update you will find yourself with full overhauls of the base Phys-Ed and more! Please keep reading though.

    Base Updates:

    • New Background
    • New Drop Mechanics

    Stay tuned for the new mods you can edit within the actual source code though!

    Source Mod Updates:

    DENSITY!

    image

    • ^ Snippet of the Density code you can find inside the physics.js file within the app folder.

    WEIGHT!

    image

    • ^ Snippet of the Weight code you can find inside the physics.js file within the app folder.

    UPDATED ELECTRODYNAMICS!

    image

    • ^ Snippet of the Updated Electrodynamics code you can find inside the physics.js file within the app folder.

    CAUTION! READ WITH DETAIL, PLEASE.

    Version 1.1.1 may possibly be the last update to Phys-Ed, indefinitely. Though most may not care, some of the supporters of the project are, but always, please put suggestions in the Issues section of the main GitHub page, anyways, enjoy the new update everyone!

    The new EXE file:

    https://drive.google.com/file/d/1_EdrmB1VBgpjFmGPjdhO31jkVtJXrOxI/view?usp=sharing

    Source code(tar.gz)
    Source code(zip)
  • v1.1.1-Beta(Apr 18, 2022)

    v1.1.1-Beta - BIGGEST UPDATE SO FAR

    Added Physics Branches:

    • Thermodynamics
    • Electrodynamics

    Added Mechanics:

    • Thermonuclear Fusion
    • Nuclear Fusion
    • Electrodynamic Magnetic Fields

    And much more!

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Apr 13, 2022)

  • v1.0.9(Apr 5, 2022)

    v1.0.9 - Better Collisions Update

    Thanks to a bit of Stackoverflow and courage.. 2 hours

    We now have (sorta) realistic collisions (sparks-type), it's still a big work in progress, but you can create "sparks" by cleverly overlapping the second "electron" with the main "electron"

    Have fun!

    Code:

        function detectColl() {
            var element = document.getElementById("electron"),
                rect = element.getBoundingClientRect(),
                displayte = element.style.display;
    
            element.style.display = "none";
    
            var topElement = document.elementFromPoint(rect.left, rect.top, rect.right, rect.bottom);
    
            element.style.display = displayte;
    
            if (topElement.className.match(/electron/)) {
    
                electron.style.backgroundColor = "yellow";
                setTimeout(() => { electron.style.backgroundColor = "transparent"; }, 365);
    
                electron2.style.backgroundColor = "orange";
                setTimeout(() => { electron2.style.backgroundColor = "transparent"; }, 365);
            }
            else {
                // 
            }
        }
    
        // this code will check for collision every 10ms
    
        const timer = setInterval(() => {
            detectColl();
            clearInterval(timer);
        }, 10);
    
    Source code(tar.gz)
    Source code(zip)
  • v1.0.8(Apr 3, 2022)

  • v1.0.7(Apr 3, 2022)

    v1.0.7 - Multiple "Entity" Testing

    Basically I am testing an update where you can have more than one "electron" in your sandbox at once. You can find the second "electron" in the Script Hub Menu!

    Source code(tar.gz)
    Source code(zip)
  • v1.0.6(Mar 31, 2022)

    Saving Update: v1.0.6

    You can now save the state/whereabouts of the electron in Local Storage! Please remember that this is not perfected, make sure to read the code to figure out how to use the unfinished saving system

    /*
         _________________________________________________
        /                                                 \
        |            HOW TO SAVE                           |
        |                                                  |   
        |  Click the "Save Button" to save your state      |
        |  Click the "Load Button" to then load your state |
        |  Repeat this again once                          |
        |                                                  |
        |                                                  |
        |  Have fun!                                       |
        \__________________________________________________/
    */
    

    Have Fun!

    Source code(tar.gz)
    Source code(zip)
  • v1.0.5(Mar 27, 2022)

  • v1.0.4(Mar 23, 2022)

  • v1.0.3(Mar 19, 2022)

  • v1.0.2(Mar 17, 2022)

  • v1.0.1(Mar 16, 2022)

Owner
nic
nic
WordleGameCB - a game inspired by the Wordle word game developed by Josh Wardle

Technologies WordleGameCB WordleGameCB is a game inspired by the Wordle word game developed by Josh Wardle. This application was developed with the ai

@Encoding 4 Feb 20, 2022
A lightweight 3D game engine for the web.

A lightweight 3D game engine for the web. Built with three.js and cannon-es.

null 667 Dec 31, 2022
๐ŸŽ Open source racing game developed by everyone willing

?? Open source racing game developed by everyone willing

Poimandres 2k Dec 26, 2022
LittleJS Logo LittleJS - The Tiny JavaScript Game Engine That Can

The Tiny JavaScript Game Engine That Can! ??

Frank Force 2.4k Dec 31, 2022
Golf it! is a game designed to let you show off your code-fu by solving problems

Golf it! Golf it! is a game designed to let you show off your code-fu by solving problems in the least number of characters โœจ Explore the docs ยป View

Ashikka Gupta 5 Aug 18, 2022
Excalibur.js 1.3k Dec 30, 2022
Pig is a simple two player dice game.

Pig game Pig is a simple two player dice game. Play here: formidablae.github.io/pig_game or formaidablae-pig-game.netlify.app Each turn, a player repe

null 10 Oct 5, 2022
Quizpetitive - A quiz game to learn new knowledge and terms in the field of project management.

Quizpetitive A quiz game to learn new knowledge and terms in the field of project management. The key element to the success of this project was the c

LMF 1 May 16, 2022
Bitburner Game

Bitburner Bitburner is a programming-based incremental game that revolves around hacking and cyberpunk themes. The game can be played at https://danie

null 2.6k Dec 30, 2022
A clone of the popular Wordle game.

Wordle Clone How to play locally: yarn install

null 2 Jan 9, 2022