Skip to content

Commit

Permalink
mobile notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulydev committed Apr 2, 2018
1 parent 2c238f4 commit f789487
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@ push:apply(operation)
```
**operation** should be equal to "start" or "end", meaning "before" or "after" your main drawing logic

Mobile support
----------------

**push** does *not* have built-in support for mobile platforms, but it is trivial to handle mobile screens correctly.

A possible solution is to initialize **push** in fullscreen mode:
```lua
local screenWidth, screenHeight = love.window.getDesktopDimensions()
push:setupScreen(gameWidth, gameHeight, screenWidth, screenHeight, { fullscreen = true, resizable = false, ... })
```

And listen to screen orientation changes:
```lua
function love.resize(w, h)
return push:resize(w, h)
end
```

Advanced canvases/shaders
----------------

Expand Down

0 comments on commit f789487

Please sign in to comment.