Skip to content

Instantly share code, notes, and snippets.

@richtaur
Created September 3, 2012 04:06
Show Gist options
  • Save richtaur/3606670 to your computer and use it in GitHub Desktop.
Save richtaur/3606670 to your computer and use it in GitHub Desktop.
define([
"djinn/intl",
"djinn/stage",
"djinn/View",
"djinn/TileMapView",
"djinn/Collection",
"djinn/utils/keys",
"djinn/ViewCollection",
"djinn/masks/Letterbox",
"djinn/math/core",
"djinn/TextView",
"djinn/utils/Blur",
"./style",
"./Button",
"./ScrollingView",
"./objectStyles",
"./Screen",
"./PainOverlay",
"./MenuButton",
"./ProgressBar",
"./HealthBar",
"./GamePlayMenuModal",
"./Wallet",
"./DeathModal",
"./ResultsModal",
"./Charge",
"./Weapon",
"../model/game",
"../model/stages"
], function (
intl, stage, View, TileMapView, Collection, keys, ViewCollection, Letterbox, math, TextView, Blur,
style, Button, ScrollingView, objectStyles, Screen, PainOverlay, MenuButton,
ProgressBar, HealthBar, GamePlayMenuModal, Wallet, DeathModal, ResultsModal, Charge, Weapon,
game, stages
) {
// …
}
@jrburke
Copy link

jrburke commented Sep 3, 2012

The commonjs sugar form is better for this case:
http://requirejs.org/docs/whyamd.html#sugar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment