forked from mozilla/BrowserQuest
-
Notifications
You must be signed in to change notification settings - Fork 216
Game
Brynn Bateman edited this page Aug 2, 2013
·
3 revisions
Source file: client/js/game.js
Class to handle game state and events
init(app)setup(bubbleContainer, canvas, background, foreground, input)setStorage(storage)setRenderer(renderer)setUpdater(updater)setPathfinder(pathfinder)setChatInput(element)setBubbleManager(bubbleManager)loadMap()initPlayer()initShadows()initCursors()initAnimations()initHurtSprites()initSilhouettes()initAchievements()getAchievementById(id)loadSprite(name)setSpriteScale(scale)loadSprites()spritesLoaded()setCursor(name, orientation)updateCursorLogic()focusPlayer()addEntity(entity)removeEntity(entity)addItem(item, x, y)removeItem(item)initPathingGrid()initEntityGrid()initRenderingGrid()initItemGrid()initAnimatedTiles()addToRenderingGrid(entity, x, y)removeFromRenderingGrid(entity, x, y)removeFromEntityGrid(entity, x, y)