This repository was archived by the owner on Dec 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Scene Elements
Ángel Serrano edited this page Mar 20, 2014
·
6 revisions
Scene elements are interactive elements in a scene. They should a have a renderer, and can have effects and behaviors.
Scene elements also contain a list of collision polygons, that defines the area of the scene elements. These polygons will be used to perform different operations, e.g., check if user touches/clicks over it.
Scene elements contains a ref property that allows inheritance from already defined scene elements. ref is an URI that points to the json file storing the base scene element.
For example, having in button.json the next json:
{
renderer: {
type: image,
uri: "images/button.png"
}
}If we define a scene like:
{
children: [
{
ref: "button.json",
transformation: {
x: 10,
y: 25
}
}
]
}the scene will contain a scene element, situated in (10, 25) with image button.png as renderer.
eAdventure - eUCM research group
- Setting up a Development Environment
- Contributing Guidelines
- Build Process
- Project structure
- Schema
-
Engine
- Files paths and FileResolver
- Binding Schema elements with Engine elements
- Managing the game view through Layers
- Game loop and scene management
- IO
- File Resolver
- Assets: Converting schema objects to engine objects
- Engine Objects
- Actors
- Effects
- Testing the engine
- Editor
- Remote communication
- Release Process
- Other documentation