This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.littlesandbox.libeasy; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class EasyFile | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shader_type canvas_item; | |
render_mode unshaded; | |
uniform float size = 10.0; | |
uniform float alpha = 1.0; | |
uniform vec4 color1 : hint_color = vec4(0.7, 0.7, 0.7, 1.0); | |
uniform vec4 color2 : hint_color = vec4(1.0); | |
uniform vec2 offset = vec2(0.0); | |
uniform vec2 scale = vec2(0.0); | |
uniform vec2 rect_size = vec2(0.0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code taken and modified from Godot's source code | |
func _draw() -> void: | |
var transform := Transform2D() | |
var ruler_transform := Transform2D() | |
var major_subdivide := Transform2D() | |
var minor_subdivide := Transform2D() | |
var zoom: float = 1 / Global.camera.zoom.x | |
transform.x = Vector2(zoom, zoom) | |
# This tracks the "true" top left corner of the drawing: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = "@bg adobe.png 1.5" | |
console.log(a.split(/\s+/)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如果使用16进制编辑器打开你的exe文件的话,可以看到如图的效果,里面的hex code: 504500004C就表示是32位的,而hex code: 504500006486就表示是64_86,也就是64位的。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = string.split("apple,banana,stone","<,>") | |
console.log(table.unpack(a)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我贡献的项目是一个小说游戏引擎:suika2,作者人很好。特此记录。 | |
![image.png](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABG4AAAJQCAYAAADfbSKNAAAgAElEQVR4nOzdfViUdb748XeRTtGB1hyyDWsDzMiIBzvSIlAoHh8yNTwXPuwibIJ0FDwp1gnUBFwV3RJpRdxUbEHaVK4jgZYPq2EBsuJJHjIiE+hBdjPG3IVfbKPS/v6YGZgZZoYZGBDs87ourouZuee+77mf78/9+X6+t7T9cPVfCCGEEEIIIYQQQogB59YbPQNCCCGEEEIIIYQQwjQJ3AghhBBCCCGEEEIMUBK4EUIIIYQQQgghhBigJHAjhBBCCCGEEEIIMUBJ4EYIIYQQQgghhBBigJLAjRBCCCGEEEIIIcQAdduNnoGb0bXr17l+vZ329nZ+/LGzt/Vbb70FBwcHbrvNgSG3yaIXQgghhBBCCCGEZbe0/XD1X90PJqxx7fp11OqrBsEac2699RYUiqESwBFCCCGEEEIIIYRZPYoaqC5/R2l5BZ+dv0Dd+Qsoh9/d8Tfrmakoh99t7/kc8H5QX+Xq1WtWD//jj//in/9U0z70R25XDO3DObOd6vJ3P8l1KMTNSo7Z/afu/AWyc/6E6vJ3Nn3Pc/QoAgP8CQrw76M5E8I2xseMh0ePwlP7J4QQQoj+ZXPGzTuHjlB46AgAyuF3Exjgz+XL36G6/F3HyT0wwJ9nn5naJzM8ENkatDE2dOiQfg/evHPoCGXlFR03broLsbrzF9iUnsmbf8jo1/kR/cfaG0u5kbw5yDG7fz33X8vwHD2Kh/VubgsPHenynrHPzl9Adfk7Xl2/pj9m86b30qq1XY5xyuF34zl6FNFRv+oIZur2DePhfqrrQT9Yo1t+QQH+qLTHDN2DHd35QYI49rcpPVPOvUIIIbqwKeNmU3omdecv4Dl6FC8nxHf5XP9C6LPzF0wOc7O5dv16r4I2AFevXsPB4dZ+azZVd/4ChYeOMO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
![image.png](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABX8AAAPACAYAAABtngpsAAAgAElEQVR4nOzdd3gUdf4H8PdsGi2UUCWSRKlKhByCBUQFlIAHAt5JEbArJRQFNEhVmkSDSgmgqHcncGCjiUqRovxQEYQQQpOaAIogwRAQSHZnfn9M2e/Mzm42yYaE3Pv1PDHZ3dmZ78zOLI/v+cxnJEVRFJBfrubmlfQQiIiIiIiIiIiIqJQKCw0p6SGYOEp6AEREREREREREREQUeAx/iYiIiIiIiIiIiMoghr9EREREREREREREZRDDXyIiIiIiIiIiIqIyiOEvERERERERERERURnE8JeIiIiIiIiIiIioDGL4S0RERERERERERFQGMfwtq2RXSY+AiIiIiIiIiIiIShDD3zLI8fsxhC0dD+ncyZIeChEREREREREREZUQhr9lUPDPX2i/V5fwSIiIiIiIiIiIiKikMPwtYxxnMyD9eVr9+49M428iIiIiIiIiIiL638Lwt4wJ3rna8virEhoJERERERERERERlSSGv2WIdO4kpHOnTM85Th+GlHOuhEZEREREREREREREJYXhbxnircdv8K4vr/FIiIiIiIiIiIiIqKQx/C0jpD9/g+OPTNvXHCcPQPor+xqPiIiIiIiIiIiIiEoSw98yIniH7+re4F3s/UtERERERERERPS/hOFvGSBdOAvHmaM+p3Fk7IF05dI1GhERERERERERERGVNIa/ZUDwz/719A3avaaYR0JERERERERERESlBcPf65x0MQuO337xa9qgIz8DeVeLeURERERERERERERUGjD8vc4F/7y6YNPvXltMIyEiIiIiIiIiIqLShOHvdUz6KxuOUwcK9J6gX34EZGcxjYiIiIiIiIiIiIhKC4a/17GCVv0a79u9PsAjKSk7MSc6GjHRs7FTePbsqgGIiY7GwFVnSmxkREREREREREREJY3h73VKunwBjhN7C/XeoP1bAEUJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
![image.png](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA/oAAAHFCAYAAABCVYLwAAAgAElEQVR4nOzdeVxV9b7/8ZcWUpiaiYiilZCGiIp5xCG92ZHENDU8x6EraWroTdST08+hzBxyuA51UukUOaHeUE9SmuaYluZ4TFQk0pBSUARKg6QQld8fe2/YG/bebAYF8f18PHwIe631Xd/1Xd+12J/1HValnJycHERERERERESkQqhc1hkQERERERERkdKjQF9ERERERESkAlGgLyIiIiIiIlKBKNAXERERERERqUAU6IuIiIiIiIhUIAr0RURERERERCoQBfoiIiIiIiIiFYgCfREREREREZEKRIG+iIiIiIiISAWiQF9ERERERESkAlGgLyIiIiIiIlKBKNAXERERERERqUAU6IuIiIiIiIhUIAr0RURERERERCoQBfoiIiIiIiIiFYgCfREREREREZEKRIG+iIiIiIiISAWiQF9ERERERESkAlGgLyIiIiIiIlKBKNAXERERERERqUAU6IuIiIiIiIhUIAr0RURERERERCoQBfpyl0ljw3A/Gvn40WjBibLOzJ313SLDcfv4Mfe7ss6MOO4Ec43nLSQqrawzU0rMrsPhUaSWdXbKtXv4niUiIiJlRoG+iEhJ3Exi85iONPLpyMBVcWSVdX7k9riZQfyBKJbNGEevFzrmPnRr5NOG9r37EzpjHZtjksi6ebv2r3p2O13btYD+07Zx1eLT0ywfOp41p8soUyIiIiWgQF9EpCROrGPs9gwgg4PzthJb1vmR0nUzg9ioOfT9r450fXU6cyN3E3suw2yFLFLj4tgROYexfbvTKuw2tdqrnt1WCQkJuDRsyMPmHyad48wtTxp7FT/d7GPhDBkcylubkh3e5uq+cEZP20ZK8XcrIiKiQL+8Sz+3nzUzRjJ2U0Xp8nt3qNDlfiWBvZFzCJnw5R3rcl2hy7NFPxYFVgOq0W5iN3zKOj93k5tZJH4XxbuT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
@bg roof.png 0.5 | |
@ch c k13.png | |
"next line is cross_fade test!" | |
@ch c m16.png 2 | |
@click | |
``` |