This file contains hidden or 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
| spacing=1 | |
| id=1 | |
| nodes={} | |
| rects={} | |
| parent=nil | |
| child=nil | |
| function setpos(node) | |
| local d=0 | |
| local p=node.p |
This file contains hidden or 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
| // Copyright 2022 stillwwater@gmail.com | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for | |
| // any purpose with or without fee is hereby granted, provided that the | |
| // above copyright notice and this permission notice appear in all copies. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL | |
| // WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | |
| // WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | |
| // AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
This file contains hidden or 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
| #define DEFER_CAT_(A, B) A ## B ## _ | |
| #define DEFER_CAT(A, B) DEFER_CAT_(A, B) | |
| template <typename Func> | |
| struct Defer { | |
| Func fn; | |
| Defer(Func fn_) : fn(fn_) {} | |
| ~Defer() { fn(); } | |
| }; |
This file contains hidden or 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
| // Copyright (c) 2023 stillwwater@gmail.com | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // 1. Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // 2. Redistributions in binary form must reproduce the above copyright | |
| // notice, this list of conditions and the following disclaimer in the | |
| // documentation and/or other materials provided with the distribution. | |
| // |
This file contains hidden or 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
| #include "SDL.h" | |
| #include "stb/stb_image.h" | |
| #define CAMERA_BORDER 1 | |
| typedef struct { | |
| SDL_Renderer *renderer; | |
| SDL_Texture *target; | |
| int width; |
This file contains hidden or 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
| ------------------------------------------------------------------------ | |
| -- Export texture atlas file format | |
| -- | |
| -- The file format is as follows: | |
| -- | |
| -- # version VERSION_NUMBER | |
| -- # ASEPRITE_FILE | |
| -- i IMAGE_FILE NUMBER_OF_FRAMES | |
| -- s SPRITE_X SPRITE_Y SPRITE_W SPRITE_H SPRITE_PIVOT_X SPRITE_PIVOT_Y | |
| -- a ANIM_NAME ANIM_START ANIM_END ANIM_DIRECTON ANIM_FRAME_TIME_SECONDS |
This file contains hidden or 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
| " _ | |
| " (_) | |
| " __ ___ _ __ ___ _ __ ___ | |
| " \ \ / / | '_ ` _ \| '__/ __| | |
| " \ V /| | | | | | | | | (__ | |
| " (_)_/ |_|_| |_| |_|_| \___| | |
| " | |
| syntax on | |
| set mouse=a " :O |
This file contains hidden or 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
| using System.Collections.Generic; | |
| using UnityEngine; | |
| class Pool<T> where T : Component | |
| { | |
| readonly List<T> pool; | |
| readonly T prefab; | |
| readonly Transform parent; | |
| int id; |
This file contains hidden or 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
| ! vim-nebula terminal colors | |
| ! theme | |
| *.cursorColor: #c9cbd1 | |
| *.foreground: #c9cbd1 | |
| *.background: #0a121d | |
| ! black | |
| *.color0: #273845 | |
| *.color8: #273845 |
This file contains hidden or 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
| { | |
| Converts .var files to INI, YAML, or .var with stripped comments. | |
| input: | |
| """ | |
| This string documents | |
| the file. | |
| """ | |
| :name | |
| key value # this is a comment |