Compare commits
47 Commits
world-obje
...
stable
| Author | SHA1 | Date |
|---|---|---|
|
|
4dff9566a4 | |
|
|
c4bfd44cc9 | |
|
|
51d6c3db8b | |
|
|
39710d33a7 | |
|
|
ac0a9217db | |
|
|
ce5906b768 | |
|
|
04eaf1434f | |
|
|
54229b1f2e | |
|
|
fe29860988 | |
|
|
3c2a62c7dd | |
|
|
f4608463e0 | |
|
|
93b2788c58 | |
|
|
4d2a630fce | |
|
|
87a4bf3a99 | |
|
|
175d572903 | |
|
|
5374bcaaeb | |
|
|
2ff6b06588 | |
|
|
a24bcce937 | |
|
|
7bc5996cf9 | |
|
|
02046f8fd3 | |
|
|
8bcc7b0714 | |
|
|
b1171ed4eb | |
|
|
91c3e87c6e | |
|
|
ed9b183c53 | |
|
|
afa487e78d | |
|
|
118f5299df | |
|
|
072774e2bf | |
|
|
97d6412ea7 | |
|
|
b7991cdb74 | |
|
|
9f59efc3d7 | |
|
|
7c0a3be105 | |
|
|
f19cfccf1a | |
|
|
0f73574f13 | |
|
|
58618b97bc | |
|
|
58e4c02dc1 | |
|
|
60529c9552 | |
|
|
46f75fa53c | |
|
|
493c81f779 | |
|
|
ecc9a7a99f | |
|
|
a205bad00f | |
|
|
9b12ee7417 | |
|
|
6bec854463 | |
|
|
0aed4f8625 | |
|
|
807e6a2a49 | |
|
|
3d0754f060 | |
|
|
18f4a33038 | |
|
|
76fa3b0f8a |
|
|
@ -3,3 +3,4 @@ out
|
||||||
output
|
output
|
||||||
SAVE_DATA.TXT
|
SAVE_DATA.TXT
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.vscode/graalvm
|
||||||
|
|
@ -12,7 +12,12 @@
|
||||||
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"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"
|
||||||
}
|
}
|
||||||
|
|
@ -0,0 +1,41 @@
|
||||||
|
#!/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();
|
||||||
6
pom.xml
6
pom.xml
|
|
@ -76,9 +76,9 @@
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
<groupId>org.yaml</groupId>
|
||||||
<artifactId>jackson-dataformat-yaml</artifactId>
|
<artifactId>snakeyaml</artifactId>
|
||||||
<version>2.13.4</version>
|
<version>1.21</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.lwjgl</groupId>
|
<groupId>org.lwjgl</groupId>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
items:
|
||||||
|
- name: Log
|
||||||
|
plural: Logs
|
||||||
|
texture: [48, 96, 16, 16]
|
||||||
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
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
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
https://opengameart.org/content/botton-sound-pack
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue