Skip to content

Commit

Permalink
Merge pull request #20 from egeexyz/2024-patch
Browse files Browse the repository at this point in the history
2024 patch
  • Loading branch information
egeexyz authored May 29, 2024
2 parents a08667e + df407ed commit 49052bc
Show file tree
Hide file tree
Showing 10 changed files with 175 additions and 1,915 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:lts-alpine
WORKDIR /app
COPY package*.json /app
COPY public/ /app/public
RUN npm install
CMD [ "npm", "run", "serve" ]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Egee
Copyright (c) 2024 Egee

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# jumper [![Build Status](https://travis-ci.org/egee-irl/jumper.svg?branch=master)](https://travis-ci.org/egee-irl/jumper)
# jumper ![example workflow](https://github.com/egeexyz/jumper/actions/workflows/nodejs-ci.yaml/badge.svg)

[![Maintainability](https://api.codeclimate.com/v1/badges/04601514cd7b18f394a8/maintainability)](https://codeclimate.com/github/egee-irl/jumper/maintainability)
[![Discord](https://discordapp.com/api/guilds/183740337976508416/widget.png?style=shield)](https://discord.gg/tVyBHAU)

A basic platformer game written with [PhaserJS](https://phaser.io/) **2.0** to demonstrate basic game functions.
A basic platformer game written with [PhaserJS](https://phaser.io/) **2.0** to demonstrate basic game functions. It is a spirtual fork of the original PhaserJS 2.0 tutorial when it was first released. Watch how I built it on [YouTube](https://youtu.be/88DS3Z8nOdY).

## Getting Started

This repository is configured to be as simple as possible; build, deploy, and play with all with **npm**.
This repository is configured to be as simple as possible; build, deploy, and play with all with **npm**! The game's [code](https://github.com/egeexyz/jumper/blob/master/public/src/game.js) is neatly written and annotated to help you figure out how it all works.

### Build Dependencies 🚧
First, clone or download this repository and run `npm install`.

The only dependencies are NodeJS & npm. Any NodeJS LTS version will work. Simply clone this repo and run `npm install`.
There are a few ways to run Jumper:

### Play The Game 🕹️

Just run `npm start` and go to `localhost:8080` in your favorite web browser.
- Run `npm start` and the game window should appear.
- Run `npm start` and go to `localhost:8080` in a web browser.
- Run `docker-compose` and go to `localhost:8080` in a web browser. (requires Docker & Docker-Compose to be installed.)
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.8"
services:
jumper:
image: ghcr.io/egeexyz/jumper:latest
container_name: jumper
ports:
- 8080:8080
5 changes: 2 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
const { app, BrowserWindow } = require('electron')
const { app, BrowserWindow, Menu } = require('electron')
const path = require('path')
const url = require('url')

let win

function createWindow () {
Menu.setApplicationMenu(null)
win = new BrowserWindow({
width: 820,
height: 620,
icon: path.join(__dirname, 'public/favicon.ico')
})
win.setMenu(null)

win.loadURL(url.format({
pathname: path.join(__dirname, 'public/index.html'),
protocol: 'file:',
Expand Down
Loading

0 comments on commit 49052bc

Please sign in to comment.