Skip to content

Commit

Permalink
add the license notice
Browse files Browse the repository at this point in the history
  • Loading branch information
eihigh committed Sep 17, 2023
1 parent d1d381e commit 4116ae4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BSD Zero Clause License

Copyright (C) 2023 by eihigh <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted.

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 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ Due to Ebitengine specifications, Ebitengine's window control functions such as

Basically, if the aspect ratio of the screen resolution returned by the `Layout` function in `main.go` matches the aspect ratio of the display area in the HTML, the game will display well without black bars. For example, in this repository, `Layout` returns `1280, 720`, so the aspect ratio of the element on which the game is displayed is set to `aspect-ratio: 16 / 9`.

### License
This repository is licensed under the BSD Zero Clause License (0BSD). You may omit the original license notice when duplicating or forking this repository.
3 changes: 3 additions & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ Go と Ebitengine でブラウザゲームを開発し、無料でインター
Ebitengine の仕様上、ブラウザゲームとしてビルドすると、`SetWindowSize` など Ebitengine のウィンドウ制御関数は無効になります。代わりに、HTML上でゲームが画面上のどこに配置されるか制御する必要があります。`index.html``<style>` タグ内を参照してください。

基本的に、`main.go``Layout` 関数が返す画面の解像度の縦横比とHTML内の表示領域の縦横比が一致するように制御すると、黒帯無しでうまく表示されます。例えば、このリポジトリでは `Layout``1280, 720` を返すので、ゲームが表示される領域の縦横比を `aspect-ratio: 16 / 9` に設定しています。

### ライセンス
このリポジトリはBSD Zero Clause License (0BSD) の下でライセンスされています。このリポジトリを複製やフォークした際は、元のライセンス表記は省略したり削除してかまいません。

0 comments on commit 4116ae4

Please sign in to comment.