Skip to content

Commit 56d1770

Browse files
committed
Initial commit
0 parents  commit 56d1770

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Main
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, macos-latest]
11+
python-version: ['3.6', '3.7', '3.8', 'pypy-3.6']
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
pip install pylint
23+
- name: Prepare Linux
24+
if: contains(matrix.os, 'ubuntu')
25+
run: |
26+
sudo apt-get update -y
27+
sudo apt-get install python3 python3-setuptools -y
28+
- name: Pylint
29+
run: pylint *.py

.pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[TYPECHECK]
2+
ignored-modules=twmap
3+

dark.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python3
2+
"""
3+
BlmapChill
4+
5+
dark design by fokkonaut
6+
"""
7+
8+
import sys
9+
import twmap
10+
11+
if len(sys.argv) != 3:
12+
print("usage: dark.py IN_MAP OUT_MAP")
13+
sys.exit(0)
14+
15+
16+
m = twmap.Map(sys.argv[1])
17+
18+
#unfr+grassm
19+
m.groups[17].layers[1].color = (200, 200, 200, 255)
20+
21+
# Stone
22+
m.groups[17].layers[2].color = (130, 130, 130, 255)
23+
24+
# Unhook
25+
m.groups[17].layers[4].color = (130, 130, 130, 255)
26+
27+
# TXT+Deep (farm tiles)
28+
m.groups[17].layers[5].color = (130, 130, 130, 255)
29+
30+
# BG
31+
m.groups[1].layers[0].quads[0].colors = [(206, 136, 115, 255), (196, 101, 76, 255),
32+
(202, 168, 137, 255), (191, 154, 134, 255)]
33+
34+
m.save(sys.argv[2])

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
twmap
2+

0 commit comments

Comments
 (0)