First commit

This commit is contained in:
Bram Dingelstad 2020-08-12 15:05:48 +03:00
commit f24ad2d00b
14 changed files with 691 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.import
.DS_Store

30
Game.gd Normal file
View file

@ -0,0 +1,30 @@
extends Node
var table
func _ready():
$StaticBody2D/Polygon2D.polygon = $StaticBody2D/CollisionPolygon2D.polygon
$Notion.get_page()
table = $Notion.get_table('https://www.notion.so/4564a0a4d8b847919ad25ef705c097a1?v=9694b8b608634ea4bd802d83cddf0122')
func _on_Notion_block(id, block, _url):
if id == $Notion.blocks[0]:
var text = ''
for piece in block.value.properties.title:
text += piece[0]
$UI/RichTextLabel.text = text
func _on_Notion_data(data, return_id):
if table == return_id:
for row in data:
if row.Name == 'Movement speed':
$Player.movement_speed = int(row.Value)
if row.Name == 'Button label':
$UI/Button.text = row.Value
if row.Name == 'Jumping enabled':
$Player.jumping_enabled = row.Value.to_lower() == 'true'
func _on_Button_pressed():
var url = 'https://notion.so/' + $Notion.page.replace('-', '')
OS.shell_open(url)

80
Game.tscn Normal file
View file

@ -0,0 +1,80 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://addons/NotionGodot/Notion.gd" type="Script" id=1]
[ext_resource path="res://Game.gd" type="Script" id=2]
[ext_resource path="res://notion_godot.svg" type="Texture" id=3]
[ext_resource path="res://Player.gd" type="Script" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 57.685, 59.8311 )
[node name="Game" type="Node2D"]
script = ExtResource( 2 )
[node name="Notion" type="Node" parent="."]
script = ExtResource( 1 )
page = "77351428-f2f8-4386-a559-a5da7eebffa4"
blocks = [ "https://www.notion.so/NotionGodot-77351428f2f84386a559a5da7eebffa4#a6ea70faa47f4ec1831a0c609b5ed9a1" ]
[node name="UI" type="Control" parent="."]
margin_right = 1024.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="UI"]
margin_left = 147.47
margin_top = 43.7246
margin_right = 229.47
margin_bottom = 57.7246
rect_scale = Vector2( 4, 4 )
text = "NotionGodot"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RichTextLabel" type="RichTextLabel" parent="UI"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -450.0
margin_top = -149.0
margin_right = 6.0
margin_bottom = 28.0
rect_scale = Vector2( 2, 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Button" type="Button" parent="UI"]
margin_left = 806.089
margin_top = 23.0736
margin_right = 976.089
margin_bottom = 81.0736
text = "Placeholder text"
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2( 0, 104 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"]
polygon = PoolVector2Array( 1.30652, 468.015, 575.402, 462.353, 634.284, 364.972, 706.754, 428.383, 1029.47, 428.383, 1027.21, -3.03777, 1031.73, 669.571, 0.174164, 665.042, -3.22284, -4.1701 )
[node name="Polygon2D" type="Polygon2D" parent="StaticBody2D"]
color = Color( 0.329412, 0.0431373, 0.00784314, 1 )
[node name="Player" type="KinematicBody2D" parent="."]
position = Vector2( 80, 64 )
script = ExtResource( 4 )
movement_speed = 250
[node name="Sprite" type="Sprite" parent="Player"]
scale = Vector2( 0.466924, 0.466924 )
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource( 1 )
[connection signal="block" from="Notion" to="." method="_on_Notion_block"]
[connection signal="data" from="Notion" to="." method="_on_Notion_data"]
[connection signal="pressed" from="UI/Button" to="." method="_on_Button_pressed"]

35
Player.gd Normal file
View file

@ -0,0 +1,35 @@
extends KinematicBody2D
export var movement_speed = 100
export var jumping_enabled = false
var gravity = 0
var direction = Vector2.ZERO
var jump_strength = 50
func _ready():
pass
func _input(event):
if event is InputEventKey:
if event.pressed:
match event.scancode:
KEY_A:
direction.x = -1
KEY_D:
direction.x = 1
KEY_SPACE:
if is_on_floor() and jumping_enabled:
gravity = -9.81 * jump_strength
else:
if [KEY_A, KEY_D].has(event.scancode):
direction = Vector2.ZERO
func _physics_process(delta):
gravity += 9.81 * 100 * delta
move_and_slide(Vector2(direction.x * movement_speed, gravity), Vector2(0, -1))
if is_on_floor():
gravity = 0

BIN
addons/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -0,0 +1,96 @@
tool
extends Node
signal data(data, url)
signal block(id, block, url)
const API_ENDPOINT = 'https://notion-api.splitbee.io/v1'
export(String) var page setget set_page
export(String) var table setget set_table
export(String) var token
export(Array, String) var blocks
func _ready():
assert(token != null, 'No token given')
func get_page(id = page):
assert(id != null, 'No page selected')
if id.begins_with('https://'):
id = strip_url_to_id(id)
return do_request('/page/' + id)
func get_table(id = table):
assert(id != null, 'No table selected')
if id.begins_with('https://'):
id = strip_url_to_id(id)
return do_request('/table/' + id)
func do_request(url):
var http = HTTPRequest.new()
var random_id = randi()
add_child(http)
http.connect('request_completed', self, '_on_request_completed', [http, random_id])
var headers = [
'Authorization: Bearer ' + token,
'Pragma: no-cache',
'Cache-Control: no-cache'
]
http.request(API_ENDPOINT + url, headers)
return random_id
func id_to_dashed_id(id):
return id.substr(0, 8) + '-' + id.substr(8, 4) + '-' + id.substr(12, 4) + '-' + id.substr(16, 4) + '-' + id.substr(20)
func strip_url_to_id(url):
if url.find('/') != -1:
url = url.split('/', false)[url.split('/', false).size() - 1]
if url.find('-') != -1 and url.find('-') == url.rfind('-'):
url = url.split('-')[1]
if url.find('-') == -1:
url = id_to_dashed_id(url)
return url
func _on_request_completed(result, response_code, headers, body, http, return_id):
remove_child(http)
http.queue_free()
var json_result = JSON.parse(body.get_string_from_utf8())
if json_result.error != OK:
printerr('Something went wrong parsing the JSON we got back from Notion')
return
var data = json_result.result
emit_signal('data', data, return_id)
for block in blocks:
var id
if block.find('#') == -1:
id = block
else:
id = block.split('#')[1]
if id.find('-') == -1:
id = id_to_dashed_id(id)
if data.has(id):
emit_signal('block', block, data[id], return_id)
func set_page(_page):
if _page == null or _page == '':
page = ''
return
page = strip_url_to_id(_page)
func set_table(_table):
if _table == null or _table == '':
table = ''
return
table = strip_url_to_id(_table)

View file

@ -0,0 +1,10 @@
tool
extends EditorPlugin
func _enter_tree():
add_custom_type("Notion", "Node", preload("Notion.gd"), preload("notion_godot_list.svg"))
func _exit_tree():
remove_custom_type("Notion")

View file

@ -0,0 +1,164 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:version="1.0 (4035a4f, 2020-05-01)"
sodipodi:docname="notion_godot_list.svg"
id="svg849"
version="1.1"
viewBox="0 0 16 16"
fill="none"
height="16"
width="16">
<metadata
id="metadata855">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs853" />
<sodipodi:namedview
inkscape:current-layer="layer3"
inkscape:window-maximized="1"
inkscape:window-y="23"
inkscape:window-x="0"
inkscape:cy="7.423862"
inkscape:cx="3.2210713"
inkscape:zoom="19.023514"
showgrid="false"
id="namedview851"
inkscape:window-height="755"
inkscape:window-width="1280"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff"
inkscape:document-rotation="0" />
<g
transform="translate(-10,-9.0000004)"
inkscape:label="Layer 1"
id="layer1"
inkscape:groupmode="layer">
<path
id="path1438"
d="m 11.622513,10.377189 9.738345,-0.8468125 3.689683,2.7823845 V 23.38181 l -11.250511,0.9073 -0.0026,-1.343286 z"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.522879px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<g
transform="translate(-10,-9.0000004)"
style="display:inline"
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer">
<path
style="stroke-width:0.522879"
id="path847"
clip-rule="evenodd"
d="m 20.334113,9.1306984 -8.705827,0.6406198 c -0.701965,0.060762 -0.94662,0.5183818 -0.94662,1.0669868 v 9.515035 c 0,0.427505 0.152472,0.792892 0.519219,1.281261 l 2.046495,2.653244 c 0.336159,0.427245 0.641625,0.518644 1.28351,0.488056 l 10.110018,-0.610043 c 0.855064,-0.06071 1.099667,-0.457467 1.099667,-1.128373 V 12.33285 c 0,-0.346826 -0.137309,-0.44701 -0.542122,-0.742332 -0.02227,-0.01621 -0.04539,-0.03304 -0.06928,-0.05056 L 22.350177,9.5881957 C 21.678225,9.1004447 21.40319,9.0390688 20.334113,9.1306984 Z M 14.76012,12.157266 c -0.825416,0.05568 -1.012973,0.06834 -1.481734,-0.31221 L 12.08638,10.899691 c -0.12157,-0.122248 -0.06061,-0.27472 0.244654,-0.304995 l 8.369669,-0.6099901 c 0.70233,-0.06113 1.068816,0.1832691 1.343851,0.3966031 l 1.435564,1.037026 c 0.06113,0.03038 0.213596,0.213125 0.03023,0.213125 l -8.643656,0.518643 z m -0.962777,10.788558 v -9.087841 c 0,-0.396395 0.122197,-0.579507 0.488526,-0.610304 l 9.926958,-0.579245 c 0.336734,-0.03048 0.489206,0.183164 0.489206,0.579245 v 9.026926 c 0,0.396761 -0.06128,0.732658 -0.611298,0.76288 L 14.591388,23.58677 C 14.041633,23.617 13.797343,23.434245 13.797343,22.945824 Z"
fill-rule="evenodd"
fill="#000000"
sodipodi:nodetypes="ccssccccssccccccccccccccssccssccs" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3">
<g
style="stroke-width:0.320312"
transform="matrix(4.162611,0,0,-4.162611,421.68271,169.53828)"
id="g78">
<path
inkscape:connector-curvature="0"
id="path80"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.320312"
d="m 0,0 c 0,0 -0.325,1.994 -0.515,1.976 l -36.182,-3.491 c -2.879,-0.278 -5.115,-2.574 -5.317,-5.459 l -0.994,-14.247 -27.992,-1.997 -1.904,12.912 c -0.424,2.872 -2.932,5.037 -5.835,5.037 h -38.188 c -2.902,0 -5.41,-2.165 -5.834,-5.037 l -1.905,-12.912 -27.992,1.997 -0.994,14.247 c -0.202,2.886 -2.438,5.182 -5.317,5.46 l -36.2,3.49 c -0.187,0.018 -0.324,-1.978 -0.511,-1.978 l -0.049,-7.83 30.658,-4.944 1.004,-14.374 c 0.203,-2.91 2.551,-5.263 5.463,-5.472 l 38.551,-2.75 c 0.146,-0.01 0.29,-0.016 0.434,-0.016 2.897,0 5.401,2.166 5.825,5.038 l 1.959,13.286 h 28.005 l 1.959,-13.286 c 0.423,-2.871 2.93,-5.037 5.831,-5.037 0.142,0 0.284,0.005 0.423,0.015 l 38.556,2.75 c 2.911,0.209 5.26,2.562 5.463,5.472 l 1.003,14.374 30.645,4.966 z" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.6437305,-0.30934072,0.1092884,-4.5513602,-436.99744,-53.922381)"
id="g82-3">
<path
inkscape:connector-curvature="0"
id="path84-6"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.0720702;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 95.721941,-20.229517 v -0.425942 -0.0541 -0.04924 c 9.4e-4,-10e-6 0.002,-4.6e-5 0.0029,-1.35e-4 l 0.32448,-0.03129 c 0.017,-0.0016 0.03032,-0.01532 0.0315,-0.03236 l 0.01,-0.143235 0.283046,-0.0202 0.0195,0.132201 c 0.0026,0.01714 0.01723,0.02984 0.03457,0.02984 h 0.342338 c 0.01733,0 0.03203,-0.0127 0.03456,-0.02984 l 0.0195,-0.132201 0.283056,0.0202 0.01,0.143235 c 0.0012,0.01704 0.01451,0.03071 0.0315,0.03236 l 0.324359,0.03129 c 8.54e-4,8.9e-5 0.0017,1.25e-4 0.0026,1.35e-4 v 0.04224 l 1.37e-4,4.5e-5 v 0.486998 h 8.55e-4 c 0.043,0.05486 0.08275,0.112676 0.120904,0.174352 -0.05069,0.08624 -0.112724,0.163308 -0.179073,0.23471 -0.06153,-0.03097 -0.1213,-0.06606 -0.177749,-0.103397 -0.02825,0.02808 -0.06007,0.05104 -0.09131,0.07505 -0.0307,0.02466 -0.06531,0.04274 -0.09812,0.06381 0.0098,0.07276 0.0146,0.1444 0.01655,0.219165 -0.08468,0.04262 -0.174979,0.07087 -0.266319,0.09117 -0.03647,-0.06129 -0.06981,-0.127664 -0.09886,-0.19255 -0.03444,0.0057 -0.06904,0.0079 -0.103692,0.0083 v 5.4e-5 c -3.07e-4,0 -4.6e-4,-5.4e-5 -6.13e-4,-5.4e-5 -1.53e-4,0 -4.6e-4,5.4e-5 -6.13e-4,5.4e-5 v -5.4e-5 c -0.03471,-4.14e-4 -0.06929,-0.0026 -0.103739,-0.0083 -0.02903,0.06489 -0.06236,0.131259 -0.09888,0.19255 -0.09129,-0.02029 -0.181603,-0.04855 -0.266274,-0.09117 0.002,-0.07476 0.0068,-0.146401 0.01657,-0.219165 -0.03288,-0.02106 -0.06744,-0.03915 -0.09815,-0.06381 -0.03121,-0.02401 -0.06308,-0.04697 -0.09133,-0.07505 -0.05645,0.03734 -0.116199,0.07243 -0.17775,0.103397 -0.06635,-0.0714 -0.128382,-0.148471 -0.179058,-0.23471 0.03812,-0.06167 0.07793,-0.119488 0.120905,-0.174352 z" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.6437305,-0.30934072,0.1092884,-4.5513602,313.24879,214.13459)"
id="g86-7">
<path
inkscape:connector-curvature="0"
id="path88-5"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.0720702;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m -66.023235,49.097896 -0.01005,-0.143997 c -0.0012,-0.01735 -0.01502,-0.03117 -0.03237,-0.03242 l -0.345628,-0.02466 c -8.43e-4,-6.3e-5 -0.0017,-9e-5 -0.0025,-9e-5 -0.01717,0 -0.032,0.0126 -0.03453,0.02985 l -0.01982,0.134415 h -0.282016 l -0.01982,-0.134415 c -0.0026,-0.01809 -0.01883,-0.0311 -0.03705,-0.02976 l -0.345629,0.02466 c -0.01735,0.0013 -0.03116,0.01506 -0.03237,0.03241 l -0.01005,0.143998 -0.291769,0.02813 c 1.34e-4,-0.03136 5.36e-4,-0.06571 5.36e-4,-0.07255 0,-0.308148 0.390899,-0.45626 0.876563,-0.457963 h 5.97e-4 5.98e-4 c 0.485663,0.0017 0.876428,0.149815 0.876428,0.457963 0,0.0069 4.29e-4,0.04118 5.66e-4,0.07255 z"
sodipodi:nodetypes="ccccscccccccccscccscc" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.593635,0,0,-4.593635,-120.41182,24.920684)"
id="g90-3">
<path
inkscape:connector-curvature="0"
id="path92-5"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
d="m 27.984321,3.5223373 c 0,-0.1080407 -0.08754,-0.1955616 -0.195544,-0.1955616 -0.107951,0 -0.195516,0.087521 -0.195516,0.1955616 0,0.107969 0.08757,0.195445 0.195516,0.195445 0.108005,0 0.195544,-0.087476 0.195544,-0.195445" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.6437305,-0.30934072,0.1092884,-4.5513602,-146.73074,41.527521)"
id="g94-6">
<path
inkscape:connector-curvature="0"
id="path96-2"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
d="m 33.185893,4.804578 c 0,-0.071663 -0.05808,-0.1297439 -0.129797,-0.1297439 -0.07168,0 -0.129797,0.058082 -0.129797,0.1297439 0,0.071663 0.05812,0.1297977 0.129797,0.1297977 0.07172,0 0.129797,-0.058136 0.129797,-0.1297977" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.6437305,-0.30934072,0.1092884,-4.5513602,12.15224,133.21158)"
id="g98-9">
<path
inkscape:connector-curvature="0"
id="path100-1"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
d="m -1.2468179,27.10859 c -0.034764,0 -0.06294,0.02562 -0.06294,0.0572 v 0.180017 c 0,0.03156 0.028175,0.0572 0.06294,0.0572 0.034764,0 0.063003,-0.02564 0.063003,-0.0572 V 27.16579 c 0,-0.03158 -0.028239,-0.0572 -0.063003,-0.0572" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.593635,0,0,-4.593635,150.58855,24.920684)"
id="g102-2">
<path
inkscape:connector-curvature="0"
id="path104-7"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
d="m -30.481574,3.5223373 c 0,-0.1080407 0.08754,-0.1955616 0.195562,-0.1955616 0.107942,0 0.195499,0.087521 0.195499,0.1955616 0,0.107969 -0.08756,0.195445 -0.195499,0.195445 -0.108023,0 -0.195562,-0.087476 -0.195562,-0.195445" />
</g>
<g
style="stroke-width:0.320312"
transform="matrix(4.6437305,-0.30934072,0.1092884,-4.5513602,175.97754,20.030407)"
id="g106-0">
<path
inkscape:connector-curvature="0"
id="path108-9"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
d="m -35.684461,4.804578 c 0,-0.071663 0.05807,-0.1297439 0.129727,-0.1297439 0.07174,0 0.129797,0.058082 0.129797,0.1297439 0,0.071663 -0.05807,0.1297977 -0.129797,0.1297977 -0.07167,0 -0.129727,-0.058136 -0.129727,-0.1297977" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/notion_godot_list.svg-d06ab3cc860cb3496e8b90d172a0fb42.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://addons/NotionGodot/notion_godot_list.svg"
dest_files=[ "res://.import/notion_godot_list.svg-d06ab3cc860cb3496e8b90d172a0fb42.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=2.0

View file

@ -0,0 +1,7 @@
[plugin]
name="NotionGodot"
description=""
author="Bram Dingelstad"
version="0.1"
script="NotionGodot.gd"

7
default_env.tres Normal file
View file

@ -0,0 +1,7 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
[resource]
background_mode = 2
background_sky = SubResource( 1 )

164
notion_godot.svg Normal file
View file

@ -0,0 +1,164 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="16"
height="16"
fill="none"
viewBox="0 0 16 16"
version="1.1"
id="svg849"
sodipodi:docname="notion_godot.svg"
inkscape:version="1.0 (4035a4f, 2020-05-01)">
<metadata
id="metadata855">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs853" />
<sodipodi:namedview
inkscape:document-rotation="0"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1280"
inkscape:window-height="755"
id="namedview851"
showgrid="false"
inkscape:zoom="25.782805"
inkscape:cx="5.5402809"
inkscape:cy="11.061866"
inkscape:window-x="0"
inkscape:window-y="23"
inkscape:window-maximized="1"
inkscape:current-layer="layer3" />
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer 1"
transform="translate(-10,-9.0000004)">
<path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.473817px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 12.240727,11.20307 8.824589,-0.767355 3.343477,2.521311 v 10.030433 l -10.194867,0.822167 -0.0024,-1.217244 z"
id="path1438" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2"
style="display:inline"
transform="translate(-10,-9.0000004)">
<path
sodipodi:nodetypes="ccssccccssccccccccccccccssccssccs"
fill="#000000"
fill-rule="evenodd"
d="m 20.134911,10.073539 -7.888953,0.58051 c -0.636099,0.05506 -0.857798,0.469742 -0.857798,0.966871 v 8.622232 c 0,0.387392 0.138165,0.718495 0.4705,1.16104 l 1.854471,2.404288 c 0.304617,0.387156 0.581421,0.469979 1.163078,0.442261 l 9.161388,-0.552802 c 0.774832,-0.05501 0.996484,-0.414543 0.996484,-1.022497 V 12.97523 c 0,-0.314283 -0.124425,-0.405066 -0.491254,-0.672678 -0.02018,-0.01469 -0.04113,-0.02994 -0.06278,-0.04582 l -2.518241,-1.768623 c -0.608902,-0.441985 -0.85813,-0.4976019 -1.826895,-0.41457 z m -5.050981,2.742583 c -0.747967,0.05046 -0.917925,0.06193 -1.342702,-0.282916 l -1.080159,-0.85666 c -0.110163,-0.110778 -0.05492,-0.248943 0.221698,-0.276377 l 7.584337,-0.552755 c 0.63643,-0.05539 0.968528,0.166073 1.217756,0.35939 l 1.300864,0.939721 c 0.05539,0.02753 0.193554,0.193127 0.02739,0.193127 l -7.832616,0.469979 z m -0.872439,9.77626 v -8.235123 c 0,-0.359201 0.110731,-0.525131 0.442687,-0.553039 l 8.995505,-0.524894 c 0.305138,-0.02762 0.443303,0.165978 0.443303,0.524894 v 8.179924 c 0,0.359532 -0.05553,0.663912 -0.553939,0.691298 l -8.608017,0.497745 c -0.498171,0.02739 -0.719539,-0.138213 -0.719539,-0.580805 z"
clip-rule="evenodd"
id="path847"
style="stroke-width:0.473817" />
</g>
<g
inkscape:label="Layer 3"
id="layer3"
inkscape:groupmode="layer">
<g
id="g78"
transform="matrix(4.162611,0,0,-4.162611,421.68271,169.53828)"
style="stroke-width:0.320312">
<path
d="m 0,0 c 0,0 -0.325,1.994 -0.515,1.976 l -36.182,-3.491 c -2.879,-0.278 -5.115,-2.574 -5.317,-5.459 l -0.994,-14.247 -27.992,-1.997 -1.904,12.912 c -0.424,2.872 -2.932,5.037 -5.835,5.037 h -38.188 c -2.902,0 -5.41,-2.165 -5.834,-5.037 l -1.905,-12.912 -27.992,1.997 -0.994,14.247 c -0.202,2.886 -2.438,5.182 -5.317,5.46 l -36.2,3.49 c -0.187,0.018 -0.324,-1.978 -0.511,-1.978 l -0.049,-7.83 30.658,-4.944 1.004,-14.374 c 0.203,-2.91 2.551,-5.263 5.463,-5.472 l 38.551,-2.75 c 0.146,-0.01 0.29,-0.016 0.434,-0.016 2.897,0 5.401,2.166 5.825,5.038 l 1.959,13.286 h 28.005 l 1.959,-13.286 c 0.423,-2.871 2.93,-5.037 5.831,-5.037 0.142,0 0.284,0.005 0.423,0.015 l 38.556,2.75 c 2.911,0.209 5.26,2.562 5.463,5.472 l 1.003,14.374 30.645,4.966 z"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.320312"
id="path80"
inkscape:connector-curvature="0" />
</g>
<g
id="g82-3"
transform="matrix(4.208006,-0.28031506,0.09903379,-4.1243029,-395.22321,-47.907702)"
style="stroke-width:0.320312">
<path
d="m 95.721941,-20.229517 v -0.425942 -0.0541 -0.04924 c 9.4e-4,-10e-6 0.002,-4.6e-5 0.0029,-1.35e-4 l 0.32448,-0.03129 c 0.017,-0.0016 0.03032,-0.01532 0.0315,-0.03236 l 0.01,-0.143235 0.283046,-0.0202 0.0195,0.132201 c 0.0026,0.01714 0.01723,0.02984 0.03457,0.02984 h 0.342338 c 0.01733,0 0.03203,-0.0127 0.03456,-0.02984 l 0.0195,-0.132201 0.283056,0.0202 0.01,0.143235 c 0.0012,0.01704 0.01451,0.03071 0.0315,0.03236 l 0.324359,0.03129 c 8.54e-4,8.9e-5 0.0017,1.25e-4 0.0026,1.35e-4 v 0.04224 l 1.37e-4,4.5e-5 v 0.486998 h 8.55e-4 c 0.043,0.05486 0.08275,0.112676 0.120904,0.174352 -0.05069,0.08624 -0.112724,0.163308 -0.179073,0.23471 -0.06153,-0.03097 -0.1213,-0.06606 -0.177749,-0.103397 -0.02825,0.02808 -0.06007,0.05104 -0.09131,0.07505 -0.0307,0.02466 -0.06531,0.04274 -0.09812,0.06381 0.0098,0.07276 0.0146,0.1444 0.01655,0.219165 -0.08468,0.04262 -0.174979,0.07087 -0.266319,0.09117 -0.03647,-0.06129 -0.06981,-0.127664 -0.09886,-0.19255 -0.03444,0.0057 -0.06904,0.0079 -0.103692,0.0083 v 5.4e-5 c -3.07e-4,0 -4.6e-4,-5.4e-5 -6.13e-4,-5.4e-5 -1.53e-4,0 -4.6e-4,5.4e-5 -6.13e-4,5.4e-5 v -5.4e-5 c -0.03471,-4.14e-4 -0.06929,-0.0026 -0.103739,-0.0083 -0.02903,0.06489 -0.06236,0.131259 -0.09888,0.19255 -0.09129,-0.02029 -0.181603,-0.04855 -0.266274,-0.09117 0.002,-0.07476 0.0068,-0.146401 0.01657,-0.219165 -0.03288,-0.02106 -0.06744,-0.03915 -0.09815,-0.06381 -0.03121,-0.02401 -0.06308,-0.04697 -0.09133,-0.07505 -0.05645,0.03734 -0.116199,0.07243 -0.17775,0.103397 -0.06635,-0.0714 -0.128382,-0.148471 -0.179058,-0.23471 0.03812,-0.06167 0.07793,-0.119488 0.120905,-0.174352 z"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.0720702;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path84-6"
inkscape:connector-curvature="0" />
</g>
<g
id="g86-7"
transform="matrix(4.208006,-0.28031506,0.09903379,-4.1243029,284.62689,194.9973)"
style="stroke-width:0.320312">
<path
sodipodi:nodetypes="ccccscccccccccscccscc"
d="m -66.023235,49.097896 -0.01005,-0.143997 c -0.0012,-0.01735 -0.01502,-0.03117 -0.03237,-0.03242 l -0.345628,-0.02466 c -8.43e-4,-6.3e-5 -0.0017,-9e-5 -0.0025,-9e-5 -0.01717,0 -0.032,0.0126 -0.03453,0.02985 l -0.01982,0.134415 h -0.282016 l -0.01982,-0.134415 c -0.0026,-0.01809 -0.01883,-0.0311 -0.03705,-0.02976 l -0.345629,0.02466 c -0.01735,0.0013 -0.03116,0.01506 -0.03237,0.03241 l -0.01005,0.143998 -0.291769,0.02813 c 1.34e-4,-0.03136 5.36e-4,-0.06571 5.36e-4,-0.07255 0,-0.308148 0.390899,-0.45626 0.876563,-0.457963 h 5.97e-4 5.98e-4 c 0.485663,0.0017 0.876428,0.149815 0.876428,0.457963 0,0.0069 4.29e-4,0.04118 5.66e-4,0.07255 z"
style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.0720702;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path88-5"
inkscape:connector-curvature="0" />
</g>
<g
id="g90-3"
transform="matrix(4.162611,0,0,-4.162611,-108.34304,23.537463)"
style="stroke-width:0.320312">
<path
d="m 27.984321,3.5223373 c 0,-0.1080407 -0.08754,-0.1955616 -0.195544,-0.1955616 -0.107951,0 -0.195516,0.087521 -0.195516,0.1955616 0,0.107969 0.08757,0.195445 0.195516,0.195445 0.108005,0 0.195544,-0.087476 0.195544,-0.195445"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
id="path92-5"
inkscape:connector-curvature="0" />
</g>
<g
id="g94-6"
transform="matrix(4.208006,-0.28031506,0.09903379,-4.1243029,-132.19244,38.586069)"
style="stroke-width:0.320312">
<path
d="m 33.185893,4.804578 c 0,-0.071663 -0.05808,-0.1297439 -0.129797,-0.1297439 -0.07168,0 -0.129797,0.058082 -0.129797,0.1297439 0,0.071663 0.05812,0.1297977 0.129797,0.1297977 0.07172,0 0.129797,-0.058136 0.129797,-0.1297977"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
id="path96-2"
inkscape:connector-curvature="0" />
</g>
<g
id="g98-9"
transform="matrix(4.208006,-0.28031506,0.09903379,-4.1243029,11.782442,121.66735)"
style="stroke-width:0.320312">
<path
d="m -1.2468179,27.10859 c -0.034764,0 -0.06294,0.02562 -0.06294,0.0572 v 0.180017 c 0,0.03156 0.028175,0.0572 0.06294,0.0572 0.034764,0 0.063003,-0.02564 0.063003,-0.0572 V 27.16579 c 0,-0.03158 -0.028239,-0.0572 -0.063003,-0.0572"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
id="path100-1"
inkscape:connector-curvature="0" />
</g>
<g
id="g102-2"
transform="matrix(4.162611,0,0,-4.162611,137.22918,23.537463)"
style="stroke-width:0.320312">
<path
d="m -30.481574,3.5223373 c 0,-0.1080407 0.08754,-0.1955616 0.195562,-0.1955616 0.107942,0 0.195499,0.087521 0.195499,0.1955616 0,0.107969 -0.08756,0.195445 -0.195499,0.195445 -0.108023,0 -0.195562,-0.087476 -0.195562,-0.195445"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
id="path104-7"
inkscape:connector-curvature="0" />
</g>
<g
id="g106-0"
transform="matrix(4.208006,-0.28031506,0.09903379,-4.1243029,160.2359,19.106044)"
style="stroke-width:0.320312">
<path
d="m -35.684461,4.804578 c 0,-0.071663 0.05807,-0.1297439 0.129727,-0.1297439 0.07174,0 0.129797,0.058082 0.129797,0.1297439 0,0.071663 -0.05807,0.1297977 -0.129797,0.1297977 -0.07167,0 -0.129727,-0.058136 -0.129727,-0.1297977"
style="fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.00287145"
id="path108-9"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

34
notion_godot.svg.import Normal file
View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/notion_godot.svg-314204e7313cb5b9656f6c08d41886e0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://notion_godot.svg"
dest_files=[ "res://.import/notion_godot.svg-314204e7313cb5b9656f6c08d41886e0.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=16.0

28
project.godot Normal file
View file

@ -0,0 +1,28 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=4
_global_script_classes=[ ]
_global_script_class_icons={
}
[application]
config/name="NotionGodot"
run/main_scene="res://Game.tscn"
config/icon="res://icon.png"
[editor_plugins]
enabled=PoolStringArray( "NotionGodot" )
[rendering]
environment/default_environment="res://default_env.tres"