Skip to content

samael65535/examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fireball Editor Examples

A collection of examples to demonstrate how basic components and scripting works in Fireball.

Fireball is a hackable game editor for creating mobile and HTML5 games, built with extremely extendable structure.

Developed with Fireball v0.4.0

If you're reading this doc in your local file system, go to https://github.com/fireball-x/examples for better reading experience.

How To Use

You should get started by loading a scene from /assets/scene. Each scene has entities and components set up properly with a README entity that explain what we do here.

Then hit the play button at the top of the editor to see what it does. Then check out each entity and component to see how it's done.

Also you should read the source code of the component we created for the example. All of the source code files are filled with detailed comments.

Examples

Components

  • Static Sprite: basic sprite renderer example showing just a static sprite.
  • Sprite Animation: play sprite animation on a sprite, automatically and with scripting.
  • Sliced Sprite: scale a sprite without losing border sharpness. Best use case is scalable UI backgrounds and buttons.
  • Bitmap Font: display text using BitmapFont resources and change text content with scripting.
  • Dynamic Font: display text using system font to avoid including a big font file in your game!
  • Simple Animation: use Animation view to edit animation curve and change any component property value over time!
  • Spine Skeleton: learn how to import and play spine skeleton animation in Fireball.
  • Particle System

Gameplay

  • Entity Movement: moves an entity from one position to another overtime, with the help of Entity.animate function.
  • Entity Movement with Update: moves an entity from one position to another overtime. This time we hand crafted the position setting in update function called each frame.
  • Keyboard Input: catch keyboard input with Fire.Input.on('keydown').
  • Character Controller: using Spineboy with skeleton animation, we move the character around with keyboard input. We show how to manipulate character moving speed with keyboard input and switch animation state with speed changes.

UI

About

Contains a series of example to demonstrate how basic components of Fireball works.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%