├── .gitattributes ├── WebGLTemplates └── BetterMinimal │ ├── thumbnail.png │ └── index.html ├── README.md └── LICENSE /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /WebGLTemplates/BetterMinimal/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seleb/Better-Minimal-WebGL-Template/HEAD/WebGLTemplates/BetterMinimal/thumbnail.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Better-Minimal-WebGL-Template 2 | 3 | Minimal WebGL build template. 4 | 5 | ## Features 6 | 7 | - Scales canvas to fit the window horizontally + vertically while maintaining aspect ratio (can be disabled) 8 | - Centers canvas in window 9 | - Customizable background 10 | 11 | ## To use 12 | 13 | 1. Download and unzip 14 | 2. Copy the `WebGLTemplates` folder into your project's `Assets` folder 15 | 3. File -> Build Settings... -> WebGL -> Player Settings... -> Select the `BetterMinimal` template 16 | 4. (Optional) Customize colour in the `Background` field; enter `false` in the `Scale to fit` field to disable scaling 17 | 18 | Ideal for embedding on sites like itch.io which provide an external full-screen button. 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Sean S. LeBlanc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /WebGLTemplates/BetterMinimal/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{{ PRODUCT_NAME }}} 8 | 43 | 44 | 45 | 46 |
47 | 48 | 49 | 119 |
120 | 121 | 122 | 123 | --------------------------------------------------------------------------------