The GameView is a blindingly fast container for game development with a physics engine and PIXI as underlying sprite container which uses the GPU to render graphics.

gmv = app.CreateGameView( width, height, options? ) → app object: GameView

The GameView runs a standalone script which can communicate with the main app via gfx.Execute or gmv.Execute vice versa.

Starting from DS 2.05 the GameView supports the same options as CreateGame.

You can find references of GameView scripting here:
- official DS GameView tutorials (Start with lesson 1; Sample SPK)

GameView in web browsers

If you prefer to work on a PC you can even run and debug your GameView code in a regular web-browser. Check out these demos to see how it works: http://androidscript.org/beta/GameViewWeb

Example - Script click to expand contents 

Properties

The following properties are available on the GameView object:

dataObject: { key, value }

Methods

The following methods are available on the GameView object:

Execute( js )
Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options? ) → Number
GetLeft( options? ) → Number
GetParent() → app object
GetPosition( options? ) → Object: { left, top, width, height }
GetTop( options? ) → Number
GetType() → String: “GameView”
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options? ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth? ) → Boolean
IsVisible() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types
Resize()
SetScale( x, y )
Show()