SlideShare a Scribd company logo
Chapter 4
Scenes
mrbash.com| stencyl development
Lesson Objectives
• Define each scene basics namely tiles, layers,
coordinates and boundaries.Scene Basics
• Explain the behavioral control of the camera
view.Camera View
• Describe the features of Heads Up Display
(HUD) within the game.HUD
Scenes and game flow
Scenes are basically where all the game play
takes place in.
Scenes control the story flow of a game.
Scenes usually take the form of the following,
1. Prologue
2. Title screen
3. Menu Screen
4. Levels
5. Credits
Scenes and game flow
Many scenes are put together in to form
the entire game.
An overview of scenes in a game can be
created using storyboarding technique.
Scenes possess different customizable
parameters.
Title Scene
Menu
Scene
Stage 1 Stage 2
Stage 3 End Scene
Scene basics
Tiles
The terrain or
land.
Layers –
Different
groups of
actors and
tiles placed
together.
Coordinates
Position of a
game
element in a
scene.
Boundaries
Scene size.
Scene basics
(Tiles)
Refer to a scene’s terrain or land.
Usually a platform for game actors to step on.
Similar to real world tiles such as floor, bathroom,
wall and kitchen tiles.
Scene basics
(Tiles)
Uniform in size (default: 32 pixels)
Can be arranged according to grids.
Tiles are spaced out equally according to tile size.
Scene basics
(Tiles)
Benefits of using tiles
1. Easily re-usable for creating game stages
and levels.
2. Not a need for creating different actors
for different land terrain.
3. Same set of tiles can be used to easily
set a wide variety of maps
Scene basics
(Layers)
Layers define the group of actors and tiles
that are drawn together.
Need for layers arise when certain actors or
tiles need to be on top of another.
Determines the order of drawing game actors
or tiles.
Scene basics
(Managing Layers)
The layers pane in the scene designer is used to
manage scenes layers.
Layers can be created, removed, renamed and re-
arranged using the layers pane.
A layer is specified by its name and layer ID.
Coordinates are basically referring to the position (x , y) of
an actor in a scene.
X coordinate – horizontal
Y coordinate – vertical
Coordinate of the top left most point of a scene is (0 , 0)
Increasing x coordinate moves an actor towards the right
Increasing y coordinate moves an actor towards the bottom
Scene basics
(Coordinates)
(0,0) X
Y
Scene basics
(Boundaries)
Boundaries refers to the initial scene size
upon creation of a scene.
Scenes size is defined in terms of tiles or
pixels.
Scene basics
(Boundaries)
Boundaries control how far the camera
can travel.
Boundaries control and how far tiles can
extend.
Boundaries also restrict game play areas
for actors.
The Camera
Camera zooms in on the current gameplay
revolving around the main player.
Not all game scenes take place within a single
screen.
The need of a camera arises when extending
beyond a single screen.
The Camera
(Scrolling)
Scrolling of the camera takes place when the camera view screen extends beyond 1
screen.
Instances when scrolling happen are side scrolling games.
Scrolling zooms in on the visibility of a screen.
The Camera
(Camera follow player)
Camera of a game usually follows the player.
There is not a need to re-invent the wheel as a
this pre-defined behaviour is included.
The Camera
(Moving the camera)
2 code of blocks associated with moving the
camera,
1. Set the camera’s (x,y) position.
2. Set the camera to follow the centre point of
an actor.
The Camera
(Off screen actors)
Actors become inactive as they gets off screen.
It is as if they stop in time and stop simulating.
In instances where an actor is required to be
active, the following block of code always keeps
an actor in the state of simulation.
Drawing text
Drawing text on the game scene is essential to
any game.
Text displays real time information in a game such
as the number of lives, hp, mp and others.
HUD (Heads Up Display) provides a graphical
display information as the uppermost layer above
everything else.
Drawing Text
(Fonts)
Fonts are used for styling of text.
Font options are similar to almost any text editor.
Include options such as its text size, colour, font
type and stroke.
Drawing Text
(Creating Fonts)
File > Create New > Font
Key in the name of the font for example, “Score
Font”.
This will launch the font editor.
Drawing Text
(Creating Fonts)
TTF (True Type Fonts) are used for the creation of
fonts.
3 default TTF are included within Stencyl.
Any TTF that is available within you computer OS
or downloaded off the internet may be used.
Drawing Text
(Draw Event)
The drawing of a text can be initialised by using
the “Draw Event”
An event or a behaviour containing the “Draw
Event” with the following block of codes can used
to draw text with the font that is created at
specified coordinates.
Drawing Text
(HUD)
A HUD is a statistical dashboard that displays
information regarding the game.
A HUD defies the camera view and permanently
anchors itself on the game scene.
A HUD is a separate layer from the actual
gameplay.
Drawing Text
(Draw Timer)
Create a new behaviour called “Draw Timer.”
File > Create New > Scene Behaviour
Within the behaviour, add a number attribute
called “seconds.”
Drawing Text
(Draw Timer)
Add a “Every N Seconds” Event such as the
following.
Basically what this block of code does is to
increment the value of “seconds” by 1 for
every second.
Next, using the draw event learnt earlier, the
attribute of time is being drawn on the
scene using the following block of codes.
Questions?

More Related Content

What's hot

Unit 78: Task 1 Artistic styles used in games
Unit 78: Task 1 Artistic styles used in gamesUnit 78: Task 1 Artistic styles used in games
Unit 78: Task 1 Artistic styles used in games
ConnahTilley
 
Game design document
Game design document Game design document
Game design document
ARshut Syabrin
 
Sln skill cards
Sln skill cardsSln skill cards
Sln skill cards
Barbara M. King
 
Star logo nova code cookbook
Star logo nova  code cookbookStar logo nova  code cookbook
Star logo nova code cookbook
Barbara M. King
 
Replika Presentation
Replika PresentationReplika Presentation
Replika Presentation
bpatatas
 
Work flow
Work flowWork flow
Work flow
Deightonater
 
Green My Place Game7 Switch Search
Green My Place Game7 Switch SearchGreen My Place Game7 Switch Search
Green My Place Game7 Switch Search
Ben Cowley
 
7 gate game design document
7 gate game design document 7 gate game design document
7 gate game design document
ARshut Syabrin
 
Scratch for Data Logging and Graphing
Scratch for Data Logging and GraphingScratch for Data Logging and Graphing
Scratch for Data Logging and Graphing
Brian Huang
 
The games factory 2 alien wars
The games factory 2 alien warsThe games factory 2 alien wars
The games factory 2 alien wars
Chaffey College
 
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
dendipermadi
 
Up cloth - GameDesignDoccument
Up cloth - GameDesignDoccumentUp cloth - GameDesignDoccument
Up cloth - GameDesignDoccument
Eléonore Arbaux
 
4.4 advanced games
4.4   advanced games4.4   advanced games
4.4 advanced games
allenbailey
 
4.3 collision detection
4.3   collision detection4.3   collision detection
4.3 collision detection
allenbailey
 
Freed d week_11 style guide_v5
Freed d week_11 style guide_v5Freed d week_11 style guide_v5
Freed d week_11 style guide_v5
Douglas Freed
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
Ashutosh Kumar
 
Gamemaker
GamemakerGamemaker
Sirodgze colorfoundation firstyear
Sirodgze colorfoundation firstyearSirodgze colorfoundation firstyear
Sirodgze colorfoundation firstyear
Angelo Lao
 
snake game
snake gamesnake game
snake game
Shailesh kumar
 
report on snake game
report on snake game report on snake game
report on snake game
azhar niaz
 

What's hot (20)

Unit 78: Task 1 Artistic styles used in games
Unit 78: Task 1 Artistic styles used in gamesUnit 78: Task 1 Artistic styles used in games
Unit 78: Task 1 Artistic styles used in games
 
Game design document
Game design document Game design document
Game design document
 
Sln skill cards
Sln skill cardsSln skill cards
Sln skill cards
 
Star logo nova code cookbook
Star logo nova  code cookbookStar logo nova  code cookbook
Star logo nova code cookbook
 
Replika Presentation
Replika PresentationReplika Presentation
Replika Presentation
 
Work flow
Work flowWork flow
Work flow
 
Green My Place Game7 Switch Search
Green My Place Game7 Switch SearchGreen My Place Game7 Switch Search
Green My Place Game7 Switch Search
 
7 gate game design document
7 gate game design document 7 gate game design document
7 gate game design document
 
Scratch for Data Logging and Graphing
Scratch for Data Logging and GraphingScratch for Data Logging and Graphing
Scratch for Data Logging and Graphing
 
The games factory 2 alien wars
The games factory 2 alien warsThe games factory 2 alien wars
The games factory 2 alien wars
 
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
Ac fr ogbzlj0hfgtuukn7qgwbjin09jlfvybtul26nfmcsos0gwpnx_im_kpn1bvazhycx3m6xcq...
 
Up cloth - GameDesignDoccument
Up cloth - GameDesignDoccumentUp cloth - GameDesignDoccument
Up cloth - GameDesignDoccument
 
4.4 advanced games
4.4   advanced games4.4   advanced games
4.4 advanced games
 
4.3 collision detection
4.3   collision detection4.3   collision detection
4.3 collision detection
 
Freed d week_11 style guide_v5
Freed d week_11 style guide_v5Freed d week_11 style guide_v5
Freed d week_11 style guide_v5
 
project on snake game in c language
project on snake game in c languageproject on snake game in c language
project on snake game in c language
 
Gamemaker
GamemakerGamemaker
Gamemaker
 
Sirodgze colorfoundation firstyear
Sirodgze colorfoundation firstyearSirodgze colorfoundation firstyear
Sirodgze colorfoundation firstyear
 
snake game
snake gamesnake game
snake game
 
report on snake game
report on snake game report on snake game
report on snake game
 

Similar to Chapt 4 scene parameters

98 374 Lesson 03-slides
98 374 Lesson 03-slides98 374 Lesson 03-slides
98 374 Lesson 03-slides
Tracie King
 
Md2010 jl-wp7-sl-game-dev
Md2010 jl-wp7-sl-game-devMd2010 jl-wp7-sl-game-dev
Md2010 jl-wp7-sl-game-dev
Jose Luis Latorre Millas
 
Silverlight as a Gaming Platform
Silverlight as a Gaming PlatformSilverlight as a Gaming Platform
Silverlight as a Gaming Platform
goodfriday
 
Game Design Document - Step by Step Guide
Game Design Document - Step by Step GuideGame Design Document - Step by Step Guide
Game Design Document - Step by Step Guide
DevBatch Inc.
 
Unity
UnityUnity
Game design true nature
Game design true natureGame design true nature
Game design true nature
Anton Gromov
 
Shootemup report
Shootemup reportShootemup report
Shootemup report
Vivek Prasad
 
Ui in unity
Ui in unityUi in unity
Ui in unity
Noam Gat
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
Ahmed Hani Ibrahim
 
WP7 HUB_XNA
WP7 HUB_XNAWP7 HUB_XNA
WP7 HUB_XNA
MICTT Palma
 
Work flow
Work flowWork flow
Work flow
Shaz Riches
 
Work flow the pain is reel
Work flow the pain is reelWork flow the pain is reel
Work flow the pain is reel
Shaz Riches
 
Production RPG Maker.
Production RPG Maker. Production RPG Maker.
Production RPG Maker.
Jordi Martos
 
Lecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_processLecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_process
Sayed Ahmed
 
Fundamentals of game development overview
Fundamentals of game development overviewFundamentals of game development overview
Fundamentals of game development overview
Chaffey College
 
Presentación Unity
Presentación UnityPresentación Unity
Presentación Unity
Laura Milena Parra Navarro
 
Introduction to game_design
Introduction to game_designIntroduction to game_design
Introduction to game_design
Sayed Ahmed
 
Introduction To 3D Gaming
Introduction To 3D GamingIntroduction To 3D Gaming
Introduction To 3D Gaming
Clint Edmonson
 
The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30
Mahmoud Samir Fayed
 
Visual Styles
Visual StylesVisual Styles
Visual Styles
Victory Media
 

Similar to Chapt 4 scene parameters (20)

98 374 Lesson 03-slides
98 374 Lesson 03-slides98 374 Lesson 03-slides
98 374 Lesson 03-slides
 
Md2010 jl-wp7-sl-game-dev
Md2010 jl-wp7-sl-game-devMd2010 jl-wp7-sl-game-dev
Md2010 jl-wp7-sl-game-dev
 
Silverlight as a Gaming Platform
Silverlight as a Gaming PlatformSilverlight as a Gaming Platform
Silverlight as a Gaming Platform
 
Game Design Document - Step by Step Guide
Game Design Document - Step by Step GuideGame Design Document - Step by Step Guide
Game Design Document - Step by Step Guide
 
Unity
UnityUnity
Unity
 
Game design true nature
Game design true natureGame design true nature
Game design true nature
 
Shootemup report
Shootemup reportShootemup report
Shootemup report
 
Ui in unity
Ui in unityUi in unity
Ui in unity
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
 
WP7 HUB_XNA
WP7 HUB_XNAWP7 HUB_XNA
WP7 HUB_XNA
 
Work flow
Work flowWork flow
Work flow
 
Work flow the pain is reel
Work flow the pain is reelWork flow the pain is reel
Work flow the pain is reel
 
Production RPG Maker.
Production RPG Maker. Production RPG Maker.
Production RPG Maker.
 
Lecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_processLecture 02 game_design_components_and_process
Lecture 02 game_design_components_and_process
 
Fundamentals of game development overview
Fundamentals of game development overviewFundamentals of game development overview
Fundamentals of game development overview
 
Presentación Unity
Presentación UnityPresentación Unity
Presentación Unity
 
Introduction to game_design
Introduction to game_designIntroduction to game_design
Introduction to game_design
 
Introduction To 3D Gaming
Introduction To 3D GamingIntroduction To 3D Gaming
Introduction To 3D Gaming
 
The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30The Ring programming language version 1.4 book - Part 14 of 30
The Ring programming language version 1.4 book - Part 14 of 30
 
Visual Styles
Visual StylesVisual Styles
Visual Styles
 

Recently uploaded

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 

Recently uploaded (20)

Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 

Chapt 4 scene parameters

  • 2. Lesson Objectives • Define each scene basics namely tiles, layers, coordinates and boundaries.Scene Basics • Explain the behavioral control of the camera view.Camera View • Describe the features of Heads Up Display (HUD) within the game.HUD
  • 3. Scenes and game flow Scenes are basically where all the game play takes place in. Scenes control the story flow of a game. Scenes usually take the form of the following, 1. Prologue 2. Title screen 3. Menu Screen 4. Levels 5. Credits
  • 4. Scenes and game flow Many scenes are put together in to form the entire game. An overview of scenes in a game can be created using storyboarding technique. Scenes possess different customizable parameters. Title Scene Menu Scene Stage 1 Stage 2 Stage 3 End Scene
  • 5. Scene basics Tiles The terrain or land. Layers – Different groups of actors and tiles placed together. Coordinates Position of a game element in a scene. Boundaries Scene size.
  • 6. Scene basics (Tiles) Refer to a scene’s terrain or land. Usually a platform for game actors to step on. Similar to real world tiles such as floor, bathroom, wall and kitchen tiles.
  • 7. Scene basics (Tiles) Uniform in size (default: 32 pixels) Can be arranged according to grids. Tiles are spaced out equally according to tile size.
  • 8. Scene basics (Tiles) Benefits of using tiles 1. Easily re-usable for creating game stages and levels. 2. Not a need for creating different actors for different land terrain. 3. Same set of tiles can be used to easily set a wide variety of maps
  • 9. Scene basics (Layers) Layers define the group of actors and tiles that are drawn together. Need for layers arise when certain actors or tiles need to be on top of another. Determines the order of drawing game actors or tiles.
  • 10. Scene basics (Managing Layers) The layers pane in the scene designer is used to manage scenes layers. Layers can be created, removed, renamed and re- arranged using the layers pane. A layer is specified by its name and layer ID.
  • 11. Coordinates are basically referring to the position (x , y) of an actor in a scene. X coordinate – horizontal Y coordinate – vertical Coordinate of the top left most point of a scene is (0 , 0) Increasing x coordinate moves an actor towards the right Increasing y coordinate moves an actor towards the bottom Scene basics (Coordinates) (0,0) X Y
  • 12. Scene basics (Boundaries) Boundaries refers to the initial scene size upon creation of a scene. Scenes size is defined in terms of tiles or pixels.
  • 13. Scene basics (Boundaries) Boundaries control how far the camera can travel. Boundaries control and how far tiles can extend. Boundaries also restrict game play areas for actors.
  • 14. The Camera Camera zooms in on the current gameplay revolving around the main player. Not all game scenes take place within a single screen. The need of a camera arises when extending beyond a single screen.
  • 15. The Camera (Scrolling) Scrolling of the camera takes place when the camera view screen extends beyond 1 screen. Instances when scrolling happen are side scrolling games. Scrolling zooms in on the visibility of a screen.
  • 16. The Camera (Camera follow player) Camera of a game usually follows the player. There is not a need to re-invent the wheel as a this pre-defined behaviour is included.
  • 17. The Camera (Moving the camera) 2 code of blocks associated with moving the camera, 1. Set the camera’s (x,y) position. 2. Set the camera to follow the centre point of an actor.
  • 18. The Camera (Off screen actors) Actors become inactive as they gets off screen. It is as if they stop in time and stop simulating. In instances where an actor is required to be active, the following block of code always keeps an actor in the state of simulation.
  • 19. Drawing text Drawing text on the game scene is essential to any game. Text displays real time information in a game such as the number of lives, hp, mp and others. HUD (Heads Up Display) provides a graphical display information as the uppermost layer above everything else.
  • 20. Drawing Text (Fonts) Fonts are used for styling of text. Font options are similar to almost any text editor. Include options such as its text size, colour, font type and stroke.
  • 21. Drawing Text (Creating Fonts) File > Create New > Font Key in the name of the font for example, “Score Font”. This will launch the font editor.
  • 22. Drawing Text (Creating Fonts) TTF (True Type Fonts) are used for the creation of fonts. 3 default TTF are included within Stencyl. Any TTF that is available within you computer OS or downloaded off the internet may be used.
  • 23. Drawing Text (Draw Event) The drawing of a text can be initialised by using the “Draw Event” An event or a behaviour containing the “Draw Event” with the following block of codes can used to draw text with the font that is created at specified coordinates.
  • 24. Drawing Text (HUD) A HUD is a statistical dashboard that displays information regarding the game. A HUD defies the camera view and permanently anchors itself on the game scene. A HUD is a separate layer from the actual gameplay.
  • 25. Drawing Text (Draw Timer) Create a new behaviour called “Draw Timer.” File > Create New > Scene Behaviour Within the behaviour, add a number attribute called “seconds.”
  • 26. Drawing Text (Draw Timer) Add a “Every N Seconds” Event such as the following. Basically what this block of code does is to increment the value of “seconds” by 1 for every second. Next, using the draw event learnt earlier, the attribute of time is being drawn on the scene using the following block of codes.

Editor's Notes

  1. Regarding an actor behaviour.
  2. Regarding an actor behaviour.
  3. Regarding an actor behaviour.
  4. Regarding an actor behaviour.
  5. Regarding an actor behaviour.
  6. Regarding an actor behaviour.
  7. Regarding an actor behaviour.
  8. Regarding an actor behaviour.
  9. Regarding an actor behaviour.
  10. Regarding an actor behaviour.
  11. Regarding an actor behaviour.