暫無描述

Hajime Hoshi d46c677327 Revert "internal/shader: bug fix: an index must be a constant for vectors" 7 小時之前
.builds 5f2c02eb1a .builds: remove or replace GLU lib 1 年之前
.github c346c1d75b all: update dependencies and Go version 1 周之前
audio 4bccf9d009 all: use math/rand/v2 1 周之前
cmd f63a757b1e cmd/ebitenmobile: bug fix: need toolchain for the temporary go.mod 6 天之前
colorm ba1af60480 all: update comments 1 月之前
ebitenutil 0281ac7bd2 all: use bufio.NewWriter to improve writing speed 1 月之前
examples 4b1ae72f59 ebiten: add Draw{Image,Triangles}Options.DisableMipmaps 1 周之前
exp 42209606b1 internal/ui: disable IME and enable it only when necessary 3 周之前
inpututil 82f2319020 internal/hook: rename hooks -> hook 11 月之前
internal d46c677327 Revert "internal/shader: bug fix: an index must be a constant for vectors" 7 小時之前
misc 5c0935d2da misc: update README 2 年之前
mobile 07d29fa729 cmd/ebitenmobile: bug fix: consider EbitenSurfaceView recreation 1 周之前
playstation5 789388618d all: add playstation5 dummy package 1 月之前
text 60883e1a44 text/v2: add comments 1 周之前
vector fbf40a4455 vector: bug fix: isPointCloseToSegment didn't work when two p0 and p1 are the same 1 月之前
.clang-format 6555375b06 all: add .clang-format 1 月之前
.gitignore 10d9660125 shaderprecomp: implement for Windows 4 月之前
CODE_OF_CONDUCT.md 9259951c36 update CODE_OF_CONDUCT.md 1 年之前
CONTRIBUTING.md d05afcbcfa all: fix typos (#2859) 9 月之前
LICENSE c00a4985d4 Adjust LICENSE file 7 年之前
README.md db454548be all: update README 4 月之前
blend.go b8df1217c3 all: fix typos (#2864) 9 月之前
colorm.go ba1af60480 all: update comments 1 月之前
colorscale.go d23567c92e ebiten: add ColorScale.ScaleWithColorScale 1 年之前
compositemode.go b1048025d9 ebiten: separate graphics.go into compositemode.go and it 1 年之前
cursor.go 429e0d8183 ebiten: refactoring 4 天之前
doc.go a5235eea86 internal/graphicsdriver/opengl/gl: always prefer OpenGL ES to OpenGL 1 月之前
ebiten_test.go 35e29a29e7 internal/ui: bug fix: wrong property names were specified 4 月之前
export_test.go 673556d03f internal/ui: move the error handlings to the ui package 2 年之前
gameforui.go 46cf09197b internal/graphicscommand: enable to show shader names 1 周之前
gamepad.go 08ae0f4a94 ebiten: add type GamepadAxisType 9 月之前
generate.go 4d2a0287b5 Bug fix: some generators did not work due to a lacked package 4 年之前
genkeys.go 0281ac7bd2 all: use bufio.NewWriter to improve writing speed 1 月之前
geom.go b17ae6135e ebiten: update GeoM.Rotate() comment (#3106) 2 天之前
geom_test.go 57c45a13e4 Remove dot imports from tests - Remove dot imports (#1837) 3 年之前
go.mod c346c1d75b all: update dependencies and Go version 1 周之前
go.sum c346c1d75b all: update dependencies and Go version 1 周之前
graphics.go f98003bcd5 ebiten: add ColorSpace and RunGameOptions.ColorSpace 3 周之前
image.go a113687d56 ebiten: don't create a vertex copy in DrawTriangles() / DrawTrianglesShader() (#3104) 3 天之前
image_test.go 4bccf9d009 all: use math/rand/v2 1 周之前
imagedumper.go 3d1df32f43 ebiten: bug fix: wrong screenshot file names 10 月之前
imagetobytes.go 02ef92f4cd ebiten: Remove copying pixels from ReplacePixels and copyImage (renamed to imageToBytes) 4 年之前
imagetobytes_test.go 57c45a13e4 Remove dot imports from tests - Remove dot imports (#1837) 3 年之前
input.go ab414558e8 ebiten: replace alias types with ints for better documentation 4 天之前
keys.go 7389f9ddb2 ebiten: add KeyIntlBackslash 6 月之前
monitor.go 9a8d6e7b41 internal/ui: implement (*Monitor).Size for mobiles 3 天之前
mousebuttons.go ab414558e8 ebiten: replace alias types with ints for better documentation 4 天之前
run.go 429e0d8183 ebiten: refactoring 4 天之前
run_mobile.go 27fd10595b internal/ui: refactoring: reduce global functions and prefer Get() 11 月之前
shader.go 46cf09197b internal/graphicscommand: enable to show shader names 1 周之前
shader_test.go 9693ce8382 internal/shader: allow less arguments at Fragment 3 周之前
vibrate.go ac651def3b ebiten: typo 2 年之前
window.go ab414558e8 ebiten: replace alias types with ints for better documentation 4 天之前

README.md

Ebitengine (v2)

Go Reference Build Status

A dead simple 2D game engine for Go

Ebitengine (formerly known as Ebiten) is an open source game engine for the Go programming language. Ebitengine's simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.

Overview

Platforms

For installation on desktops, see the installation instruction.

Features

  • 2D Graphics (Geometry and color transformation by matrices, Various composition modes, Offscreen rendering, Text rendering, Automatic batches, Automatic texture atlas, Custom shaders)
  • Input (Mouse, Keyboard, Gamepads, Touches)
  • Audio (Ogg/Vorbis, MP3, WAV, PCM)

Packages

Community

License

Ebitengine is licensed under Apache license version 2.0. See LICENSE file.

The Ebitengine logo by Hajime Hoshi is licensed under the Creative Commons Attribution-NoDerivatives 4.0.

GLFW

https://github.com/glfw/glfw

Copyright (c) 2002-2006 Marcus Geelnard

Copyright (c) 2006-2019 Camilla Löwy

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
   claim that you wrote the original software. If you use this software
   in a product, an acknowledgment in the product documentation would
   be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not
   be misrepresented as being the original software.

3. This notice may not be removed or altered from any source
   distribution.

Go

https://cs.opensource.google/go/go

Copyright (c) 2009 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
   * 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.
   * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

go-gl/gl

https://github.com/go-gl/gl

The MIT License (MIT)

Copyright (c) 2014 Eric Woroshow

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

go-gl/glfw

https://github.com/go-gl/glfw

Copyright (c) 2012 The glfw3-go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
   * 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.
   * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.