rename /data/ to /common-data/
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
THIS SKY WAS UPDATED AT THE 27TH
|
||||
THE ORIG HAD SOME ERRORS
|
||||
|
||||
MIRAMAR
|
||||
high res 1024^2 environment map
|
||||
ships as TGA.
|
||||
|
||||
|
||||
By Jockum Skoglund aka hipshot
|
||||
hipshot@zfight.com
|
||||
www.zfight.com
|
||||
Stockholm, 2005 08 25
|
||||
|
||||
|
||||
Modify however you like, just cred me for my work, maybe link to my page.
|
||||
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.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/bin/env python3
|
||||
# curl based lfs link fetcher, for systems that don't have git-lfs easily available (haiku, for example)
|
||||
|
||||
from subprocess import getoutput
|
||||
from urllib.parse import urlsplit
|
||||
from getpass import getpass
|
||||
from os import walk
|
||||
import random, string, json, mimetypes
|
||||
|
||||
def randomword(length):
|
||||
letters = string.ascii_lowercase
|
||||
return ''.join(random.choice(letters) for i in range(length))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
origin = getoutput(["git remote get-url origin"])
|
||||
print("Origin:", origin)
|
||||
parts = urlsplit(origin)
|
||||
location = parts.netloc
|
||||
|
||||
name = input("Username: ")
|
||||
passw = getpass("Password: ")
|
||||
|
||||
query_data = '{"name": "%s"}' % (randomword(6),)
|
||||
query = f"curl -s -H 'Content-Type: application/json' -d '{query_data}' -u '{name}:{passw}' https://{location}/api/v1/users/{name}/tokens"
|
||||
token_response = getoutput(query)
|
||||
token = json.loads(token_response)["sha1"]
|
||||
|
||||
for root, dirs, files in walk("."):
|
||||
for file in files:
|
||||
path = root + '/' + file
|
||||
with open(path, 'r') as f:
|
||||
file_result = getoutput(f"file -b {path}")
|
||||
if file_result != "ASCII text":
|
||||
continue
|
||||
header = f.readline()
|
||||
if header != "version https://git-lfs.github.com/spec/v1\n":
|
||||
continue
|
||||
sha = f.readline().split(':')[1].strip()
|
||||
size = f.readline().split(' ')[1].strip()
|
||||
|
||||
query_data = '{"operation": "download", "transfer": ["basic"], "objects": [{"oid": "%s", "size": %s}]}' % (sha, size)
|
||||
query = f"curl -s -X POST -H 'Authorization: token {token}' -H 'Accept: application/vnd.git-lfs+json' -H 'Content-type: application/json' -d '{query_data}' {origin}.git/info/lfs/objects/batch"
|
||||
response = getoutput(query)
|
||||
|
||||
href = json.loads(response)["objects"][0]["actions"]["download"]["href"]
|
||||
query = f"curl -s -X GET -H 'Authorization: token {token}' {href} > {path}"
|
||||
response = getoutput(query)
|
||||
|
||||
print("Processed", path)
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,31 @@
|
||||
ORIGIN = { x = 320, y = 180 }
|
||||
RADIUS = 48
|
||||
offset = { x = 0, y = 0 }
|
||||
angle = 0
|
||||
|
||||
function game_tick()
|
||||
rectangle {
|
||||
rect = { x = 0, y = 0, w = 640, h = 360 },
|
||||
color = { r = 127, g = 0, b = 127, a = 255 },
|
||||
}
|
||||
|
||||
sprite {
|
||||
path = "/assets/title.png",
|
||||
rect = {
|
||||
x = 320 - (320 / 2),
|
||||
y = 180 - (128 / 2),
|
||||
w = 320,
|
||||
h = 128,
|
||||
},
|
||||
}
|
||||
|
||||
text {
|
||||
string = "IT KEEPS HAPPENING",
|
||||
position = offset,
|
||||
font = "/fonts/kenney-pixel.ttf",
|
||||
}
|
||||
|
||||
offset.x = ORIGIN.x + (math.cos(angle) * RADIUS)
|
||||
offset.y = ORIGIN.y + (math.sin(angle) * RADIUS)
|
||||
angle = angle + 0.1
|
||||
end
|
||||
@@ -0,0 +1,27 @@
|
||||
# This file contains everything about the engine and your game that can be
|
||||
# configured before it runs.
|
||||
#
|
||||
# Optional settings are commented out, with their default values shown.
|
||||
# Invalid values in these settings will be ignored.
|
||||
|
||||
# Data about your game as an application
|
||||
[about]
|
||||
title = "It's TownEngine!"
|
||||
developer = "Somebody"
|
||||
app_id = "townengine"
|
||||
dev_id = "somebody"
|
||||
|
||||
# Game runtime details
|
||||
[game]
|
||||
base_render_width = 640
|
||||
base_render_height = 360
|
||||
#debug = true
|
||||
|
||||
# Engine tweaks. You probably don't need to change these
|
||||
[engine]
|
||||
#ticks_per_second = 60 # minimum of 8
|
||||
#keybind_slots = 3 # minimum of 1
|
||||
#texture_atlas_size = 2048 # minimum of 32
|
||||
#font_texture_size = 2048 # minimum of 1024
|
||||
#font_oversampling = 4 # minimum of 0
|
||||
#font_filtering = "linear" # possible values: "nearest", "linear"
|
||||
Reference in New Issue
Block a user