Hajime Hoshi
84f2571ee1
examples/isometric: Refactoring
2021-10-02 09:28:18 +09:00
Hajime Hoshi
b78aef480e
examples/isometric: Refactoring
2021-10-01 11:51:25 +09:00
Hajime Hoshi
2f33366f5f
examples/isometric: Simplify the logic
2021-10-01 11:42:31 +09:00
Hajime Hoshi
f3318a2cec
examples/isometric: Do not create an ebiten.Image every frame
2021-10-01 11:36:38 +09:00
Hajime Hoshi
234a3d8d2a
examples/isometric: Remove unused variables
2021-10-01 11:15:52 +09:00
Trevor Slocum
1019e15ccd
Add isometric demo ( #1823 )
...
Based on a prototype by Justin Cichra (@jrcichra).
Closes #1112
2021-10-01 11:10:48 +09:00
Hajime Hoshi
52d917eff0
go generate
2021-09-25 03:45:17 +09:00
Hajime Hoshi
0d673a68ab
examples/blocks/blocks: Support standard gamepad axes
2021-09-24 23:35:01 +09:00
Hajime Hoshi
159bc8dda1
examples/stars: Reduce the window size
2021-09-24 01:55:18 +09:00
Hajime Hoshi
2b6debf960
examples/windowsize: Bug fix: Wrong comment
2021-09-23 21:40:10 +09:00
Hajime Hoshi
f00bdc99f7
examples: Change the sample rate to 48000
...
Closes #1649
2021-09-23 01:36:00 +09:00
Hajime Hoshi
07c8cb0e23
examples: Misspelling (//go:generated -> //go:generate)
2021-09-20 15:23:43 +09:00
Hajime Hoshi
537bdb29f8
examples: Update comments
2021-09-20 15:16:09 +09:00
Hajime Hoshi
39dc58658f
examples/windowsize: Add -autorestore
...
Closes #1610
2021-09-19 17:50:55 +09:00
Hajime Hoshi
69300f0c4e
examples/windowsize: Rename -screentransparent -> -transparent
2021-09-19 17:49:03 +09:00
Hajime Hoshi
42cd923418
ebiten: Add FillRule
...
Closes #1715
2021-09-19 17:17:00 +09:00
Hajime Hoshi
4509f2aee4
text: Add FaceWithLineHeight
...
Closes #1760
2021-09-12 22:56:14 +09:00
Hajime Hoshi
82c41cea39
examples/gamepad: Fix the layout
2021-09-12 21:09:13 +09:00
Hajime Hoshi
ea12ede127
ebiten: Add StandardGamepadButtonValue
...
Closes #1721
2021-09-12 21:00:48 +09:00
Trevor Slocum
ffe9a6f72d
Minor style fixes (early returns) ( #1792 )
2021-09-04 00:22:37 +09:00
Hajime Hoshi
d967f0a591
examples/sprites: Make the window resizable
2021-08-08 15:31:49 +09:00
Hajime Hoshi
14f0fbf844
examples/windowsize: Reset TPS when resetting the Vsync mode
2021-08-05 03:01:11 +09:00
Hajime Hoshi
852c787743
examples/flappy: Bug fix: an audio context was created multiple times
...
Closes #1739
2021-08-04 14:54:06 +09:00
Hajime Hoshi
656d9dccc0
text: Add DrawWithOptions
...
Closes #1461
2021-07-27 17:36:21 +09:00
Hajime Hoshi
1706d9436a
ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame
...
This change adds these APIs:
* type FPSModeType
* func FPSMode
* func SetFPSMode
* func ScheduleFrame
and deprecates these APIs:
* func SetVsyncEnabled
* func IsVsyncEnabled
Closes #1556
2021-07-24 16:09:13 +09:00
Hajime Hoshi
c28bcc26fc
internal/clock: Rename UncappedTPS -> SyncWithFPS
...
Closes #1726
2021-07-22 22:46:24 +09:00
Hajime Hoshi
92bc5c1908
audio: Add (*Context).NewPlayer and (*Context).NewPlayerFromBytes
...
Closes #1708
2021-07-22 16:41:04 +09:00
Hajime Hoshi
1dc8002689
examples: Reduce global variables
...
Closes #1669
2021-07-22 01:38:55 +09:00
Hajime Hoshi
c54418c3e4
examples/flappy: Use A/B buttons for the standard gamepad layout
...
Also this change limits the available keys.
2021-07-20 20:53:19 +09:00
Hajime Hoshi
984275d0a0
examples/blocks: Skip the gamepad configuration if a standard layout is available
2021-07-20 03:48:01 +09:00
Hajime Hoshi
d32b58d050
examples/blocks/blocks: Unify the terms 'abstract' and 'virtual'
2021-07-20 03:02:37 +09:00
Hajime Hoshi
f192971080
ebiten: Rename HasGamepadStandardLayoutMapping -> IsStandardGamepadLayoutAvailable
...
Updates #1557
2021-07-20 02:46:12 +09:00
Hajime Hoshi
51f83b1527
inpututil: Add APIs for the standard gamepad layout
...
This change adds these APIs to inpututil:
* IsStandardGamepadButtonJustPressed
* IsStandardGamepadButtonJustReleased
* StandardGamepadButtonPressDuration
Closes #1557
2021-07-20 02:37:12 +09:00
Hajime Hoshi
aa694be6f6
ebiten: Add the standard gamepad layout
...
This change introduces the standard gamepad layout. This changes adds
these APIs:
* func HasGamepadStandardLayoutMapping
* func IsGamepadStandardButtonPressed
* func GamepadStandardAxisValue
* type StandardGamepadButton
* type StandardGamepadAxis
The standard gamepad layout is based on the web standard. See
https://www.w3.org/TR/gamepad/#remapping .
On desktops, the SDL's gamecontrllerdb.txt is used. If the gamepad is
listed in the text file, the mapping works. GLFW's mapping featrue is
not used.
On browsers, the property of a gamepad 'mapping' is used. When the
mapping value is 'standard', the gamepad is recognized to have the
standard mapping.
On mobiles, the implementation is still WIP.
Updates #1557
2021-07-20 01:32:28 +09:00
Hajime Hoshi
6b949cede8
examples/gamepad: Always show signs for axis values
2021-07-19 02:19:42 +09:00
Hajime Hoshi
700052519c
examples: Use GamepadAxisValue
...
Updates #1719
2021-07-19 01:31:20 +09:00
Hajime Hoshi
af150ad67b
examples/gamepad: Show SDL ID on the terminal
2021-07-18 15:41:20 +09:00
Hajime Hoshi
a9241a45c6
vector: Add Dir
...
Updates #844
2021-07-17 16:42:14 +09:00
Hajime Hoshi
70ef5e7d5b
vector: Add Arc
...
Updates #844
2021-07-17 01:34:06 +09:00
Hajime Hoshi
873bb35587
vector: Add ArcTo
...
Updates #844
2021-07-16 22:52:32 +09:00
Hajime Hoshi
cea0aa72cb
vector: Rename AppendVerticesAndIndices to AppendVerticesAndIndicesForFilling
...
Updates #844
2021-07-16 17:20:09 +09:00
Hajime Hoshi
5c4885c988
inpututil: Add AppendJustConnectedTouchIDs
...
Closes #1705
2021-07-10 23:30:04 +09:00
Hajime Hoshi
e8ea4046cb
inpututil: Add AppendJustConnectedGamepadIDs
...
Updates #1705
2021-07-10 22:32:19 +09:00
Hajime Hoshi
a79c287bb7
inpututil: Add AppendPressedKeys
...
Updates #1705
2021-07-10 22:18:15 +09:00
Hajime Hoshi
30e3047d29
examples/typewriter: Fix comments
2021-07-10 04:38:26 +09:00
Hajime Hoshi
431cd33839
ebiten: Add AppendInputChars, AppendGamepadIDs, and AppendTouchIDs
...
These functions reduce unnecessary allocations of arrays.
Closes #1692
2021-07-10 03:03:24 +09:00
Hajime Hoshi
b466a0cbd7
ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions
...
Updates #844
Closes #1684
2021-07-05 03:35:55 +09:00
Hajime Hoshi
8ff42f55a1
internal/graphicsdriver/opengl: Give up restorign on browsers
...
Using restorable images is expensive as this sometimes requires to
load pixels from GPU. On browsers, just reloading the application
should be fine when the context lost happens.
Closes #1603
2021-06-26 16:54:21 +09:00
Hiroki KUMAZAKI
eb5fde74af
examples: Add an example "stars" ( #1679 )
2021-06-24 22:50:47 +09:00
Hajime Hoshi
a615be69c7
examples: Add //go:build
2021-06-24 21:49:37 +09:00