Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26,754 changed files
with
5,357,731 additions
and
1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1,43 @@ | |||
# coregrounds | # Coregrounds | ||
|
|||
![Coregrounds](https://i.imgur.com/R8iVVF5.gif) | |||
|
|||
# History | |||
|
|||
After working on the concept for the game for two years, Mario "ehmprah" Kaiser built a | |||
proof-of-concept version of Coregrounds for half a year and released it by the end of 2015. | |||
Together with a small community the core gameplay was evolved and battle-tested before Mario | |||
teamed up with Dominic "DNKpp" Koepke to level up the technology behind Coregrounds. This current version was released on Steam in April 2018. Due tue performance issues, the mobile versions weren't released, a rework of the client graphics was started but not completed. Ultimately, the devs weren't able to support this project the way it deserved, but maybe the community will! | |||
|
|||
# License | |||
|
|||
Copyright (C) 2019 Mario Kaiser (client, lobby, web) & Dominic Koepke (server) | |||
|
|||
This program is free software: you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation, either version 3 of the License, or | |||
any later version. | |||
|
|||
This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | |||
|
|||
You should have received a copy of the GNU General Public License | |||
along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
|
|||
# Community | |||
|
|||
[http://discord.gg/coregrounds](http://discord.gg/coregrounds) | |||
|
|||
[https://www.reddit.com/r/coregrounds](https://www.reddit.com/r/coregrounds) | |||
|
|||
# Contact | |||
|
|||
Get in touch at info@coregrounds.com | |||
|
|||
# Coregrounds uses | |||
|
|||
[Exo 2](http://www.ndiscovered.com/) by Natanael Gama | |||
[Material Icons](https://material.io/icons/) by Google | |||
[Subtle Patterns](https://www.toptal.com/designers/subtlepatterns) by TopTal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
root = true | |||
|
|||
[*] | |||
indent_style = space | |||
indent_size = 2 | |||
end_of_line = lf | |||
charset = utf-8 | |||
insert_final_newline = true | |||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,61 @@ | |||
{ | |||
"extends": ["eslint:recommended", "prettier"], | |||
"root": true, | |||
"env": { | |||
"browser": true, | |||
"es6": true, | |||
"node": true | |||
}, | |||
"globals": { | |||
"$": true, | |||
"$$": true, | |||
"Screens": true, | |||
"setBodyClass": true | |||
}, | |||
"plugins": ["prettier"], | |||
"parserOptions": { | |||
"sourceType": "module" | |||
}, | |||
"rules": { | |||
"quotes": [ | |||
"error", | |||
"single", | |||
{ | |||
"allowTemplateLiterals": true | |||
} | |||
], | |||
"no-use-before-define": [ | |||
"error", | |||
{ | |||
"functions": false | |||
} | |||
], | |||
"no-bitwise": ["off"], | |||
"consistent-return": [0], | |||
"no-underscore-dangle": [0], | |||
"max-nested-callbacks": [1, 3], | |||
"no-plusplus": [ | |||
1, | |||
{ | |||
"allowForLoopAfterthoughts": true | |||
} | |||
], | |||
"no-param-reassign": [0], | |||
"no-prototype-builtins": [0], | |||
"valid-jsdoc": [ | |||
1, | |||
{ | |||
"prefer": { | |||
"returns": "return", | |||
"property": "prop" | |||
}, | |||
"requireReturn": false | |||
} | |||
], | |||
"brace-style": ["error", "1tbs"], | |||
"no-unused-vars": [1], | |||
"import/prefer-default-export": "off", | |||
"prefer-destructuring": "off", | |||
"no-console": "off" | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
node_modules/ | |||
*.log | |||
|
|||
apps/darwin/* | |||
!apps/darwin/coregrounds.app/ | |||
apps/darwin/coregrounds.app/* | |||
!apps/darwin/coregrounds.app/Contents/ | |||
apps/darwin/coregrounds.app/Contents/* | |||
!apps/darwin/coregrounds.app/Contents/Resources/ | |||
apps/darwin/coregrounds.app/Contents/Resources/* | |||
!apps/darwin/coregrounds.app/Contents/Resources/app.nw | |||
apps/darwin/coregrounds.app/Contents/Resources/app.nw/* | |||
!apps/darwin/coregrounds.app/Contents/Resources/app.nw/package.json | |||
!apps/darwin/coregrounds.app/Contents/Resources/app.nw/index.html | |||
|
|||
apps/linux/* | |||
!apps/linux/package.json | |||
!apps/linux/package.nw/ | |||
apps/linux/package.nw/* | |||
!apps/linux/package.nw/index.html | |||
|
|||
apps/windows/* | |||
!apps/windows/package.json | |||
!apps/windows/package.nw/ | |||
apps/windows/package.nw/* | |||
!apps/windows/package.nw/index.html | |||
|
|||
apps/windows-32bit/* | |||
!apps/windows-32bit/package.json | |||
!apps/windows-32bit/package.nw/ | |||
apps/windows-32bit/package.nw/* | |||
!apps/windows-32bit/package.nw/index.html | |||
|
|||
apps/windows-debug/* | |||
!apps/windows-debug/package.json | |||
!apps/windows-debug/package.nw/ | |||
apps/windows-debug/package.nw/* | |||
!apps/windows-debug/package.nw/index.html | |||
|
|||
mobile/Coregrounds/platforms/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
{ | |||
"trailingComma": "es5", | |||
"singleQuote": true | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
# Coregrounds Client # | |||
|
|||
## Dependencies | |||
|
|||
Get the nwjs binaries from https://dl.nwjs.io/v0.26.6/ and extract them to the respective /apps folder. | |||
|
|||
## Development ## | |||
|
|||
For the first run, you'll need to install development dependencies by opening a shell windows, navigating to the project root and entering `npm install --dev`. You only have to do this once. | |||
|
|||
For regular development, you'll open the shell, navigate to project root and enter `npm start` to open the development app. Open another shell window, navigate to project root and enter `gulp`. You're good to go! | |||
|
|||
## Compiling ## | |||
|
|||
When done developing enter `gulp dist` to update the apps. |
46 changes: 46 additions & 0 deletions
46
client/apps/darwin/coregrounds.app/Contents/Resources/app.nw/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>COREGROUNDS</title> | |||
<link type="text/css" rel="stylesheet" href="styles.css" media="all" /> | |||
<script> | |||
const PLATFORM = 'steam'; | |||
const CGS_ENDPOINT = 'https://coregrounds.com/'; | |||
const CGS_LOBBY = '35.196.132.229:8080'; | |||
const CGS_PORT = 1337; | |||
</script> | |||
<script type="text/javascript" src="coregrounds.js"></script> | |||
</head> | |||
<script> | |||
// Steam Integration | |||
greenworks = require('./lib/greenworks/greenworks.js'); | |||
// Open links in new window | |||
const win = nw.Window.get(); | |||
const defaultBrowser = (frame, url, policy) => { | |||
policy.ignore(); | |||
nw.Shell.openExternal(url); | |||
}; | |||
win.on('new-win-policy', defaultBrowser); | |||
win.on('navigation', defaultBrowser); | |||
// Keybord shortcuts | |||
document.addEventListener('keyup', (e) => { | |||
// Toggle fullscreen with F11 | |||
if (e.keyCode === 122) toggleFullscreen(); | |||
}, false); | |||
function toggleFullscreen() { | |||
win.toggleFullscreen(); | |||
win.resizeTo(1280, 800); | |||
} | |||
</script> | |||
<body class="color-2408 background-2106"> | |||
<div id="game"> | |||
<div id="wrapper"> | |||
<canvas id="coregrounds"></canvas> | |||
</div> | |||
</div> | |||
<screen id="layer-0" class="active"> | |||
<throbber>LOADING</throbber> | |||
</screen> | |||
<screen id="layer-1"></screen> | |||
</body> | |||
</html> |
12 changes: 12 additions & 0 deletions
12
client/apps/darwin/coregrounds.app/Contents/Resources/app.nw/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
{ | |||
"name": "coregrounds", | |||
"main": "index.html", | |||
"window": { | |||
"title": "Coregrounds", | |||
"toolbar": false, | |||
"frame": true, | |||
"fullscreen": true, | |||
"icon": "icons/png/64x64.png" | |||
}, | |||
"chromium-args": "" | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
{ | |||
"name": "coregrounds", | |||
"main": "package.nw/index.html", | |||
"window": { | |||
"title": "Coregrounds", | |||
"toolbar": false, | |||
"frame": true, | |||
"fullscreen": true, | |||
"icon": "package.nw/icon/64x64.png" | |||
}, | |||
"chromium-args": "--in-process-gpu --disable-transparency" | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>COREGROUNDS</title> | |||
<link type="text/css" rel="stylesheet" href="styles.css" media="all" /> | |||
<script> | |||
const PLATFORM = 'steam'; | |||
const CGS_ENDPOINT = 'https://coregrounds.com/'; | |||
const CGS_LOBBY = '35.196.132.229:8080'; | |||
const CGS_PORT = 1337; | |||
</script> | |||
<script type="text/javascript" src="coregrounds.js"></script> | |||
</head> | |||
<script> | |||
// Steam Integration | |||
greenworks = require('./lib/greenworks/greenworks.js'); | |||
// Open links in new window | |||
const win = nw.Window.get(); | |||
const defaultBrowser = (frame, url, policy) => { | |||
policy.ignore(); | |||
nw.Shell.openExternal(url); | |||
}; | |||
win.on('new-win-policy', defaultBrowser); | |||
win.on('navigation', defaultBrowser); | |||
// Keybord shortcuts | |||
document.addEventListener('keyup', (e) => { | |||
// Toggle fullscreen with F11 | |||
if (e.keyCode === 122) toggleFullscreen(); | |||
}, false); | |||
function toggleFullscreen() { | |||
win.toggleFullscreen(); | |||
win.resizeTo(1280, 800); | |||
} | |||
</script> | |||
<body class="color-2408 background-2106"> | |||
<div id="game"> | |||
<div id="wrapper"> | |||
<canvas id="coregrounds"></canvas> | |||
</div> | |||
</div> | |||
<screen id="layer-0" class="active"> | |||
<throbber>LOADING</throbber> | |||
</screen> | |||
<screen id="layer-1"></screen> | |||
</body> | |||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
{ | |||
"name": "coregrounds", | |||
"main": "package.nw/index.html", | |||
"window": { | |||
"title": "Coregrounds", | |||
"toolbar": false, | |||
"frame": true, | |||
"fullscreen": true, | |||
"icon": "package.nw/icons/png/64x64.png" | |||
}, | |||
"chromium-args": "--in-process-gpu --disable-transparency" | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,46 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<title>COREGROUNDS</title> | |||
<link type="text/css" rel="stylesheet" href="styles.css" media="all" /> | |||
<script> | |||
const PLATFORM = 'steam'; | |||
const CGS_ENDPOINT = 'https://coregrounds.com/'; | |||
const CGS_LOBBY = '35.196.132.229:8080'; | |||
const CGS_PORT = 1337; | |||
</script> | |||
<script type="text/javascript" src="coregrounds.js"></script> | |||
</head> | |||
<script> | |||
// Steam Integration | |||
greenworks = require('./lib/greenworks/greenworks.js'); | |||
// Open links in new window | |||
const win = nw.Window.get(); | |||
const defaultBrowser = (frame, url, policy) => { | |||
policy.ignore(); | |||
nw.Shell.openExternal(url); | |||
}; | |||
win.on('new-win-policy', defaultBrowser); | |||
win.on('navigation', defaultBrowser); | |||
// Keybord shortcuts | |||
document.addEventListener('keyup', (e) => { | |||
// Toggle fullscreen with F11 | |||
if (e.keyCode === 122) toggleFullscreen(); | |||
}, false); | |||
function toggleFullscreen() { | |||
win.toggleFullscreen(); | |||
win.resizeTo(1280, 800); | |||
} | |||
</script> | |||
<body class="color-2408 background-2106"> | |||
<div id="game"> | |||
<div id="wrapper"> | |||
<canvas id="coregrounds"></canvas> | |||
</div> | |||
</div> | |||
<screen id="layer-0" class="active"> | |||
<throbber>LOADING</throbber> | |||
</screen> | |||
<screen id="layer-1"></screen> | |||
</body> | |||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
{ | |||
"name": "coregrounds-debug", | |||
"main": "package.nw/index.html", | |||
"window": { | |||
"title": "Coregrounds", | |||
"toolbar": false, | |||
"frame": true, | |||
"fullscreen": true, | |||
"icon": "package.nw/icons/png/64x64.png" | |||
}, | |||
"chromium-args": "--in-process-gpu --disable-transparency" | |||
} |
Oops, something went wrong.