Compare commits

..

No commits in common. "stable" and "world-object-unification-project" have entirely different histories.

303 changed files with 1589 additions and 19078 deletions

1
.gitignore vendored
View File

@ -3,4 +3,3 @@ out
output output
SAVE_DATA.TXT SAVE_DATA.TXT
.DS_Store .DS_Store
.vscode/graalvm

5
.vscode/launch.json vendored
View File

@ -12,12 +12,7 @@
"projectName": "hadean", "projectName": "hadean",
"console": "internalConsole", "console": "internalConsole",
"internalConsoleOptions": "neverOpen", "internalConsoleOptions": "neverOpen",
"osx": { "osx": {
"type": "java",
"name": "Launch App",
"request": "launch",
"mainClass": "xyz.valnet.hadean.HadeanGame",
"vmArgs": "-XstartOnFirstThread" "vmArgs": "-XstartOnFirstThread"
} }
} }

View File

@ -1,5 +1,4 @@
{ {
"java.configuration.updateBuildConfiguration": "automatic", "java.configuration.updateBuildConfiguration": "automatic",
"java.dependency.packagePresentation": "hierarchical", "java.dependency.packagePresentation": "hierarchical"
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m -Xlog:disable"
} }

View File

@ -1,41 +0,0 @@
#!/usr/bin/env node
const { readdirSync, readFileSync } = require('fs');
const { resolve, parse, relative } = require('path');
const trimWhitespace = true;
const base = "./src";
let lines = 0;
let files = [];
function processDir(path) {
const children = readdirSync(path, {
withFileTypes: true
});
for(const entity of children) {
const { name } = entity
const full = resolve(path, name);
if(entity.isFile()) {
processFile(full);
} else if(entity.isDirectory()) {
processDir(full);
}
}
}
function processFile(path) {
const parsed = parse(path);
const rel = relative(resolve(base), path)
const type = parsed.ext;
const text = readFileSync(path);
console.log(path);
}
function printStats() {
console.log("")
}
processDir(base);
printStats();

View File

@ -76,9 +76,9 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.yaml</groupId> <groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>snakeyaml</artifactId> <artifactId>jackson-dataformat-yaml</artifactId>
<version>1.21</version> <version>2.13.4</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.lwjgl</groupId> <groupId>org.lwjgl</groupId>

View File

@ -1,5 +0,0 @@
items:
- name: Log
plural: Logs
texture: [48, 96, 16, 16]

View File

@ -1,46 +0,0 @@
import yaml
dataStr = open("res/names.yml").read()
print("loading data")
data = yaml.safe_load(dataStr)
# data = [
# {
# "name": 'fonk',
# "sex": 'donk'
# },
# {
# "name": 'fonk',
# "sex": 'donk'
# },
# {
# "name": 'tonk',
# "sex": 'donk'
# }
# ]
newData = []
def findPairInArray(arr, n, s):
for pair in arr:
name = pair["name"]
sex = pair["sex"]
if n == name and s == sex:
return pair
return None
for pair in data:
name = pair["name"]
sex = pair["sex"]
print("" + name + " " + sex)
match = findPairInArray(newData, name, sex)
print(match)
if match == None:
newData.append({
"name": name,
"sex": sex
})
print(newData)
with open('res/output.yaml', 'w') as file:
outputs = yaml.dump(newData, file)

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
https://opengameart.org/content/botton-sound-pack

Some files were not shown because too many files have changed in this diff Show More