AAdaptiveTileRefresh(ATR),111addUselessmethod,367AdobeEdgeAnimate,102afterInitmethods,367AlmostNativeGraphicsLayerEngine(ANGLE)library,149Analoginputs,333Applicationprogramminginterfaces(APIs),307Arrayserror-pronechanges,63indexedproperties,61JITcompilers,63logicalgroups,63singleinterleaved,62structureof,61Artificialintelligence(AI),311Asm.
jscode,287Assetgrouping,39Audioformats,31Automatedworkflowadvantage,384command-lineprimer,387gameoptimizationandpackaging,383Gruntcreation,391fileinstallation,390HTML5games,383,394Node.
jsinstallationBashcommandline,385command-lineintegration,384defaultsettings,384GitBash,385http://nodejs.
org,384screen,386npm,388reproduciblebuildprocess,384Autotilestechniqueabyss,90shadows,87smoothtransitionsdesignpurposes,97magicnumber,95neighbors,92noSurfaceflag,97objecttile,95perfection,97symmetry,93tileunprocessed,94upper-leftcorner,93upper-righttile,92uselesscorners,94BBashcommands,387BinaryJSON(BSON),186Bucketingmethodalphavalues,77BucketGridclass,74BucketGridinsertion,76complexpixelcoveragearea,80findClickedSpritefunction,79getImageDatamethod,78innerloop,75isPixelTransparentfunction,80min/maxboundaries,74off-screencanvas,77pixelperfectpicking,76PNGs/GIFs,78precisionissues,76Pythonscript,78spatialaccelerationstructure,73Index437SpriteProtoupdation,782Dbinningalgorithm,732Dgrid,74zIndex,79Bufferusageenumeration,162CCanvas2DAPI,288affinetransformation,249batteryproblems,261bitmapimageDrawImage,246Get/PutImageData,247illustrator/flash,246ImageDataoutput,247browsercompatibility,260colortransformationalpha,256browserimplementation,255"darker"operator,255FAandFB,256formula,256get/putImageData,254globalCompositeOperationproperty,254–255RGBchannels,257CSS,246DirtyRect,252drawImage,250drawingpaths,258GPUcache,259in-memorycanvas,251memoryproblems,260PathAPIcharacter,248drawing,248output,248Canvaspickingboundingboxmethod,73bruteforcetechnique,69bucketing(seeBucketingmethod)convexhullpicking(seeConvexhullpicking)spriteprototypedefinition,70drawSprites()function,72loadProtosfunction,70rendering,72SpriteInstanceclass,71CanvasProfiler,156Chords,334Clang,285–286_clearOnErrormethod,345Client-sidestorage,23Cocos2daction,400animation,400Cocos2d-html5(seeCocos2d-html5)Cocos2dJSB(seeCocos2dJSB)community,433coordinatesystem,399–400creation,395director,397gametypes,434layer,398–399nodes,397scene,397scheduler,401sprite,399touchevent,401–4022Dgamedevelopment,395websites,433Cocos2d-html5built-inexamplesdownloadpage,404FruitAttack,406indexpage,405MoonWarriors,406testcases,405webserverinstallation,404vs.
Cocos2d,396creation,396directorystructure,402JavaScriptBinding,397templatestructure,407tilededitor,403towerdefencegameapplicationDidFinishLaunching()function,412backgroundtilemaps,412collisiondetection,422componentdesign,409deploying,425directorystructure,410enemiesandactions,421GameLayer.
jsfile,414,416GameMaps,416gameoverscene,423mainmenuscenecreation,413menuitems,418multi-resolutionadaptation,410–411musicandsoundeffects,423projectsettingconfiguration,411–412scenesandlayers,409SystemMenuLayerclass,413–414toolbarlayer,417towersandbullets,419index438Bucketingmethod(cont.
)Cocos2dJSBAndroidprojectdevelopmentsetup,431hybridprojectscreen,432iOSprojectconfiguration,429–430copybundleresources,430creation,428hybridprojectscreen,431resourceaddition,428nativecode,427projectcreationlog,428Coercionautomaticallyconvert,8equalitychecking,9parseIntandparseFloat,8truthiness,9Contentdistributionnetworks(CDNs),16,36Convexhullpickingadvanceddatastructures,82hullgenerationprocess,83industrialstrengthimplementation,86raycasting,84spriteprototype,83textureatlases,85trade-off,82vs.
traditionalboundingbox,81CrunchCrunchtextureformat,347dxt-util.
jsfile,358Emscripten/Javascriptinterface,348compilecommandline,350Crunchconstants,351crunch_lib.
jsfile,350decompressCRNfunction,351–352dxt_utils.
jsfile,351EXPORTED_FUNCTIONSarray,350loadCRNmethod,354WebWorkersCrunchPendingTextureclass,356crunch-worker.
jsmessagehandling,355DXTLoaderconstructor,356loadCRNmethod,358DDart,325devicePixelRatioproperty,217Digitalinput,333DirtyRectmethod,252drawImage()method,141DXTLoaderconstructorandSupportsTypemethod,344EECMAScript3(ES3),303ECMAScript5(ES5),303ECMAScript6(ES6),299Emscriptencompilerarithmetic,287asm.
js,287clang,285–286gameportAstroMenacerenderer,296FreeType,293gamebuilding,293gamechoosing,292gamecontentloading,294liboggandlibvorbis,293LinuxorMaccommandlines,292mainloop,296multipleplatforms,297OpenGL,295SDL_Delayfunction,295lerpfunction,286LLVMIRtranslates,286memoryrepresentation,287vs.
native,284strlenfunction,286toolchain(seeEmscriptentoolchain)workflow,285EmscriptentoolchainCanvas,288debugging,291HelloWorldprogram,288inputevents,290performance,290WebAudioAPI,289–290WebGL,288FFastcanvasrendering1,024*024canvastileboundaries,1,27364*64tileboundarygrid,272box-boxintersectioncode,277CanvasTile,273–276,278fillCanvasTile,275mapdrawing,280trade-off,278FastermaprenderingDrawMapfunction,265fastcanvasrendering(seeFastcanvasrendering)loadfunction,264Index439mapobject,263–264tiledmap(seeTiledmap)Firebase,192–193Flashassetsauthoringtool,102cutoutanimation,101devicesandbrowsers,99fonts,102nine-sliceimages,102sounds,102spritesheets,99vectorization,100Float32Array,66Freeobject,49FrightCyclegameclient-sideprediction,209dependencies,202–203gamestate,204nodebuild.
js,203–204nodeserver/app.
js,204serverandclientcommunication,205servercommands,209synchronizingtime,208FullscreenAPIbuttoncreation,232deviceorientation,241disablingzoom,241enteringandexitingfullscreen,231homescreenAndroid,244Chromemenu,242detectingstandalone,244FirefoxOS,244icons,243iOS,244metatags,242shortcut,243losingfullscreen,233lowerresolutioncanvas,235computingframerate,235GPUs,234graphicquality,235running,236SindreSorhus,234spritessharpCSSscaling,238motionblur,240pixelgrid,236–237stayingsharp,237systemandaddressbar,231–232Ggame_loop,326GamepadAPIbrowserssupportGoogleChrome,165MozillaFirefox,163–164devicessupport,165draftstage,163HungryFridgemobilevs.
desktop,173Phasergameframework,173startscreen,173implementationaxisevents,169buttonPressedfunction,168gamepadconnectedfunction,166gamepaddisconnectedfunction,167gamepadobject,169projectsetup,165sourcecode,171Geolocatingassets,36GirlsRaisedinTennesseeScience(GRITS),189–190,265Globaldeopt,54GoogleWebDesigner,102Graphicsprocessingunit(GPU),53,149GruntFile.
js*in,391HHelloWorldprogram,288High-PerformanceJavaScriptdiscardingoffscreenparticles,52–53objectpoolsdemosourcecode,46free-indexesarray,50freeobject,49garbagecollection,45getFreemethod,49goal,45iteration,50looping,51memoryspikes,44memoryusage,45particlesarray,45recyclableobjects,48structure,48profiling,52renderingloop,53virtualmachinebenchmarking,55deoptimization,54index440Fastermaprendering(cont.
)functionoptimization,55optimization,54warm-upphase,54WebGLdemo,43HTMLCanvasElement,307HTML5gamebuildscripts,394HTTPcaching,18Iinitmethods,366Inputlatency,197isPixelTransparentfunction,80JJavaScriptOOPmodelclass-basedlanguage,12prototypicalinheritance,10operatorscoercion(seeCoercion)instanceofoperator,7stringsandbooleans,7typesarrays,5–6booleans,4null,6numbers,3objects,4–5strings,4undefined,6variablesandscopingrulesdeclarationhoisting,2–3declarationscoping,1JavaScriptdatastructuresarrayserror-pronechanges,63indexedproperties,61JITcompilers,63logicalgroups,63singleinterleaved,62structureof,61encodeddata,67executionperformance,59flattening,60garbagecollection,60memoryandcodeprofilers,67memoryusagecharacteristics,59null-outreferences,67objectcount,60performancedata,64resources,59stringname,59TypedArrayadvantage,66ArrayBuffer,65ArrayBufferView,65drawbacks,66Float32Array,66Math.
froundfunction,66memorybuffer,65JavaScriptObjectNotation(JSON),99,264file,388format,368object,302KKaazing,193LLoadandsavemethods,369loadDDSmethod,346Localdeopt,54lockOrientationmethod,241Lockstepmethod,198MMainloopbrowsercontrollinginputs,327outputs,328gamebuildupaccumulatingtime,329demandrendering,331extrapolation,332fallingbehind,330internalgameclock,331interpolation,331timedelta,329userinput,330userinputprocessinganaloginput,333chords,334digitalinputs,333game-specificinputvalues,333positionalinputs,333sequences,334Memorycaching,23MessagePack,187MobilewebgametechniquesCanvas(seeCanvas2DAPI)HTML5games,245realdevices,261Index441MozillaShumway,100Multiplatformgamesassetsizes,228audio,228controlmethodbaselinerequirements,223gamedesign,222joypad,222mobiles/tablets,222mouseandkeyboard,222touchscreen,222trapsetting,223Venndiagram,222interactiondesign,225interfacedesign,229maintenance,230performancetestingbenchmarkingsystems,223BugmarkTestSuite,224DOMmanipulation,225Scooby-Doogame,224physicsengineintersectionpoint,227JavaScriptgameloops,226lineintersection,226linkedlistcollection,226slopeandfriction,227ScoobyDooFunfairFreak-Out,221NNetworktimeprotocol(NTP),200Non-deterministicgamelogic,329OObject-orientedprogramming(OOP),10Old-schoolvideogametechniquesanimationsbackgroundimage,134bouncingball,138drawImage()method,141in-memorycanvas,137paintball()function,138–139painting,135–136viewports,136colorcyclinggetImageData(),143HTML5,142metadata,142paintPixels()function,145spritesheet-basedapproach,142updateloop,144variables,143dirtyrectanglesapplication,112–113boundingbox,118circle,117–118graphicalalgorithms,111modifiedcells,111–112paintPlayer()function,117radius,119smallredcircle,113–117renderingmassivegridsfor()loops,127gridperformance,121intervalandshouldRepaintflag,126paintCell()function,125process,124renderingroutine,125simplegrid,121–124update()function,126updateroutine,126updateloopsATR,111definition,105DOMHighResTimeStamp,109optimization,106processingtime,106RequestAnimationFramePolyfill,108setIntervalfunction,107setTimeoutfunction,106shouldRepaint,110OpenGLlegacyemulationlayer,295OpenGraphicsLibraryforEmbeddedSystems(OpenGLES),147Optimalassetloadingassethostingassetgrouping,39CDNs,36geolocatingassets,36servercompression,36cachingdataclient-sidestorage,23HTTPcaching,18mappingtable,19memorycaching,23serverandclientcommunicationprocess,22serverandclientsidelocation,17staticassetloading,20textureCache.
getfunction,28dataformatsaudioformats,31JSONformat,35textureformats,29,31index442P,QpaintBall()function,138–139paintPixels()function,145paintPlayer()function,117Pointclass,314Polymorphism,312Poolstructure,48Positionalinputs,333Pusher,193Pythonscript,78RRawkets,190,192Real-timemultiplayernetworkprogrammingchallengesbandwidth,196broadcastvs.
lockstep,198client-sideprediction,198–199fast-forwardingthegamestate,200latency,197NTPsynchronization,200statebroadcastvs.
lockstep,198statelatency,198synchronization,197codewritingtipschecksums,202floatingpoint,201gameengine,201gamestateindependent,201inputdelaycalculations,201interpolation,202particulargame-statechange,202FrightCycle(seeFrightCyclegame)Recyclableobjects,48RequestAnimationFrame(RAF),46Responsivedesigncanvasaspectratioanddpi,215fitinsidescreen,216floatmiddle,215ReadPixels,217stretch,215cloud-computingresources,219–220commontabletresolutions,212development-processviewpoint,219devicePixelRatio,212hardware,212layout,217MainRoach,211normalvs.
high-ppiscreens,211–212screendimensionsdesktopbrowser,213mobiledevice,213–214two-dimensionalcontent,218SScalablevectorgraphics(SVG),100Sequences,334Servercompression,36Socket.
IOapp.
js.
file,183–184clientcode,183customevent,184getandsetfunctions,185mobileoperatingsystems,182Node.
jsinstallation,182quizgame,186sendingchatmessage,184sendingrandomquestion,185Softwareskeletalanimationbenchmark,284Spriter,102Statebroadcastmethod,198Statelatency,197Synchronization,197TTarfiles,40Textureformats,29Texturesextension,29Texturesheet,162Tilededitor,265–266Tiledmapcodeform,269–270coordinatespaces,270dataformat,268GID-to-rangetable,269GRITSproject,265imgLoadCountvariable,267JSON.
parsemethod,266layers,268TILEDMap.
jsfile,268view-rect,271Two-dimensionalmapeditoraddSpriteSheetmethod,364addUselessmethod,367afterInitmethods,367autotilesoff,362autotileson,362builderwindow,374camera,370editortool,373extendTilefunction,363gameapplication,381graphiceditor,361index.
html,jQueryUI,378initmethods,366Loadandsavemethods,369localStoage,374mainwindow,376Index443MapField,368ObjectTiletype,366renderer,371serialization,368SpriteList,364SurfaceTiletype,366Tile.
id,363TileList,363Tilesetversion2–366TypeScriptBooleantype,300canvasdrawingCanvasMapRenderer,313,316clearMapmethod,316drawmethod,310drawTilemethod,315gameloop,309IMapRenderer,312requestAnimationFrame,309two-dimensionalarray,311compiler,301definition,299enginefunctionalityenemiesandtreasureadding,323renderinglargermaps,324renderingsprites,324gameclasscreationcommandprompt,307JavaScriptfile,308keyword"export",307rogue,definition,306handlingmovementkeyupmethod,321map'spublicproperties,317newDirectionproperty,321placeholderpositioncreation,319numbers,300projectdirectorycreationconcat,304connect,303deploydirectory,304developerDependencies,302game.
cssfile,305game.
jsfile,303game'sindexpage,306GruntFile.
js,302Gruntintallation,301grunt.
loadNpmTask,303index.
htmlfile,304main.
tsfile,305Node.
js,301npm,302package.
jsonfile,301RogueTS,301VisualStudio,301stringtype,299Uupdate()function,126Userinputprocessinganaloginput,333chords,334digitalinput,333game-specificinputvalues,333positionalinputs,333sequences,334VVertexarrayobject(VAO),157W,X,Y,ZWebGL,288ANGLElibrary,149blinkdataflow,148browsersupportedimagesBMP,339GIF,339JPEG,340PNG,339WEBP,340compressedtextures,341DDSfiles_clearOnErrormethod,345constants,342DXTLoaderconstructorandSupportsTypemethod,344vs.
JPEGimagefilesizes,347loadDDSMethod,346parsingutilityfunctions,342_uploadDXTmethod,345debugging,155–156drawingmodel,148extensionsdrawbuffers,157instancedarray,158VAOextension,157WebGL2,158Google'sMountainViewcampus,339GPUprocess,149graphicslibrary,153–154index444Two-dimensionalmapeditor(cont.
)Index445memoryuse,340modifystatefunctions,152OpenGLES,147querystatefunctions,152scenerenderingbatching,161frustumculling,159OpenGLES2.
0pipeline,161texturebinding,154WebGLimagegallery,337–338WebIDL,149WebGLinspector,156WebGraphicsLibrary(WebGL),43Webinterfacedefinitionlanguage(WebIDL),148WebSocketapplication-programminginterface(seeWebSocketAPI)channelsandevents,193connectionsettingup,177datasendingandreceiving,178–179encodingdata,181Firebase,192GRITS,189–190JSONkeyvalues,182Kaazing,193Pusher,193Rawkets,190,192scalingandreducingoverheadautonomousClients/Echoserver,188BSON,186deltasandInfrequentworldviews,188DumbClients/AuthoritativeServer,189MessagePack,188Socket.
IO(seeSocket.
IO)WebSocketAPIeventhandlers,180interfacefunctions,179simpleechoserver,180–181
EtherNetservers是一家成立于2013年的英国主机商,提供基于OpenVZ和KVM架构的VPS,数据中心包括美国洛杉矶、新泽西和杰克逊维尔,商家支持使用PayPal、支付宝等付款方式,提供 60 天退款保证,这在IDC行业来说很少见,也可见商家对自家产品很有信心。有需要便宜VPS、多IP VPS的朋友可以关注一下。优惠码SUMMER-VPS-15 (终身 15% 的折扣)SUMMER-...
六一云 成立于2018年,归属于西安六一网络科技有限公司,是一家国内正规持有IDC ISP CDN IRCS电信经营许可证书的老牌商家。大陆持证公司受大陆各部门监管不好用支持退款退现,再也不怕被割韭菜了!主要业务有:国内高防云,美国高防云,美国cera大带宽,香港CTG,香港沙田CN2,海外站群服务,物理机,宿母鸡等,另外也诚招代理欢迎咨询。官网www.61cloud.net最新直销劲爆...
近日华纳云商家正式上线了美国服务器产品,这次美国机房上线的产品包括美国云服务器、美国独立服务器、美国高防御服务器以及美国高防云服务器等产品,新产品上线华纳云推出了史上优惠力度最高的特价优惠活动,美国云服务器低至3折,1核心1G内存5Mbps带宽低至24元/月,20G ddos高防御服务器低至688元/月,年付周期再送2个月、两年送4个月、三年送6个月,终身续费同价,有需要的朋友可以关注一下。华纳云...
jquerysetinterval为你推荐
请务必阅读正文之后的免责条款部分支持ipadxp如何关闭445端口请大家帮帮忙,怎样关闭135和445端口?ipad如何上网苹果ipad无线上网卡怎么设置?iexplore.exe应用程序错误iexplore.exe应用程序错误win10445端口Win10系统开放端口号怎样查看?css下拉菜单CSS如何把下拉菜单改为上拉菜单icloudiphone自己用icloud把iPhone抹掉了.激活却不是自己的id怎么破icloudiphone怎么利用iCloud使iPhone内存达到扩容目的win7勒索病毒补丁我的电脑是windows7系统,为什么打不了针对勒索病毒的补丁(杀毒软件显
国际域名抢注 美国和欧洲vps 购买域名和空间 什么是域名地址 过期域名抢注 com域名抢注 免费cn域名 云网数据 linkcloud 优key idc评测网 账号泄露 xen web服务器架设软件 域名接入 流量计费 优酷黄金会员账号共享 七夕快乐英语 美国独立日 监控服务器 更多