Commit Graph

24 Commits

Author SHA1 Message Date
Hajime Hoshi
4179e6c122 Introduce 'monogame' build tag experimentally
Updates #1078
2020-04-01 23:42:17 +09:00
Hajime Hoshi
e89605fc4a docs: Draw function's signature was wrong (again) 2020-04-01 04:25:32 +09:00
Hajime Hoshi
3d03599882 docs: Fix a wrong function name 2020-04-01 04:18:59 +09:00
Hajime Hoshi
237498e51f
ui: Add an optional function Draw function to Game interface (#1107)
This change adds an optional function Draw to the Game interface.
With Draw function, the game logic and rendering are separate.
There are some benefits:

  * The API is clearer and easier to understand.
  * When TPS < FPS, smoother rendering can be performed without
    changing the game logic depending on TPS.
  * Porting to XNA, which has separate functions Update and Draw,
    would be a little easier.

Draw is optional due to backward compatibility. Game interface was
already used before v1.11.x in mobile packages, and adding a
function would break existing code unfortunately. Then, we adopted
switching the behavior based on whether Draw is implemented or not
by type assertions.

IsDrawingSkipped will always return false when Draw is implemented.

Fixes #1104
2020-03-24 12:01:37 +09:00
hiroebe
64e838584a Fix doc (#1046) 2020-01-06 19:43:29 +09:00
Hajime Hoshi
807f91e6ca docs: Update comments 2019-12-22 12:59:28 +09:00
Hajime Hoshi
0e63241bcb Update comments 2019-12-22 03:50:30 +09:00
Hajime Hoshi
7d56e4335e ui: Add RunGame, WindowSize and SetWindowSize
This change introduces the new APIs RunGame, WindowSize and
SetWindowSize. These new APIs hides the notion of 'scale', and is
more flexible with the outside size change. This means that we can
introduce a resizable window.

This change also adds -legacy flag to examples/windowsize. If the
flag is off, the new APIs are used.

This change deprecates these functions since the notion of 'scale'
is deprecated:

  * ScreenScale
  * ScreenSizeInFullscreen
  * SetScreenScale
  * SetScreenSize

Fixes #943, #571
Updates #320
2019-12-22 03:35:31 +09:00
Hajime Hoshi
4907cee128 Update documents 2019-10-13 17:33:10 +09:00
Hajime Hoshi
83f93df78b Add 'ebitengl' build tag to force to use GL
Fixes #958
2019-10-13 16:58:33 +09:00
Hajime Hoshi
dd59d8ae6e Fix comments 2019-01-19 02:30:06 +09:00
Hajime Hoshi
65294f2e24 Fix doc 2018-12-05 02:34:39 +09:00
Hajime Hoshi
3abbe26f7f Remove dependency on internal/png on mobiles and browsers
Fixes #735
2018-11-14 00:37:51 +09:00
Hajime Hoshi
3600c8aa6c ui: Add documents about concurrent-safety
Fixes #709.
2018-10-10 23:23:30 +09:00
Hajime Hoshi
3cd9dfd800 Rename IsRunningSlowly to IsDrawingSkipped
Fixes #643
2018-07-10 22:31:26 +09:00
Hajime Hoshi
b1e4c3c8f0 Add 'ebitendebug' build tag
EBITEN_INTERNAL_IMAGES_KEY is now disabled by default, and enabled
only when a build tag 'ebitendebug' is specified. It is because
game developers might want to disable EBITEN_INTERNAL_IMAGES_KEY
when they release their games, or anyone can dump the internal
images.

Fixes #632.
2018-06-25 23:59:32 +09:00
Hajime Hoshi
452a9b14a4 graphics: Rename EBITEN_DUMP_IMAGES_KEY to EBITEN_INTERNAL_IMAGES_KEY 2018-04-28 22:24:03 +09:00
Hajime Hoshi
a36bb5dffd graphics: Changed screenshot image location for consistency 2018-04-28 22:19:24 +09:00
Hajime Hoshi
613f384cb5 graphics: Add EBITEN_DUMP_IMAGES_KEY
Fixes #589
2018-04-28 22:08:20 +09:00
Hajime Hoshi
30cb4bad90 doc: Add explanation about EBITEN_SCREENSHOT_KEY 2018-04-11 01:08:44 +09:00
Hajime Hoshi
861c737495 docs: Add explanation about IsRunningSlowly
Fixes #508
2018-04-01 20:44:39 +09:00
Jeremy Jackins
25665682ff Update example in doc.go
The function argument to ebiten.Run takes an *ebiten.Image,
and must return an error.
2015-01-29 15:40:53 +09:00
Hajime Hoshi
fff7d9f21c Add favicon.png 2014-12-28 16:54:13 +09:00
Hajime Hoshi
f17b5faea3 Add doc.go 2014-12-27 18:18:44 +09:00