catch.jp-wiki
¥×¥í¥°¥é¥ß¥ó¥°
±Ñ¸ì³Ø½¬
ÍúÎò
¸¡º÷
Dropdown
ÊÔ½¸
źÉÕ
°ìÍ÷
phaser
/
tutorial_02
phaser/tutorial_02
¤ÎÊÔ½¸
https://www.catch.jp:443/wiki/editedit.php?phaser%2Ftutorial_02
-- ¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸ --
ASP.net
AppleScript
BSD-MIT¥é¥¤¥»¥ó¥¹Èæ³Óɽ
Blockly/CustomBlock
Blockly/Documents
Blockly/Toolbox_WorkSpace
Blockly/Tutorial
Bookmarklet¤Îºî¤êÊý
BracketName
Build_Blockly-Games_Win
CSS_Framework
Chrome
CodingSkill
Desktop Movie
Desktop Movie Mac
Education_and_Programing
Education_and_Programing_toools
English/English-NReading
English/English-News
English/English-Word
Firebug
Firefox OS
FormattingRules
Free_Open_Document
FrontPage
Git_Github
Git_Github/Git_Githubhub for Windows
Git_Github/TortoiseGit_Github
Github_pages
Google_Closure_Tools
Google_code
HTML5+JavaScript
Help
History
Inkscape Function-Plot
Inno-setup
InterWiki
InterWikiName
InterWikiSandBox
JavaScript¥á¥â
Light weight Desktop
Linux_Desktop_Select
MDwiki
MenuBar
MenuBar2
NIHONGO_Programing
Nadeshiko_programming4JapaneseStyle
OSI_History
OpenOffice.org/Impress_template
PHP
PaintShopPro
PanDoc
ParserGenerator
Phaser
PowerPoint¤Ç¥¹¥¯¥ê¡¼¥ó¥»¡¼¥Ð¡¼
Processing.js´ðÁúÇ®ÆþÌç
Processing¤Ç¥µ¥¦¥ó¥É
Processing´ðÁúÇ®ÆþÌç
Programing
Programing/Blockly2014
Programing/Blockly2017
Programing/LibreLogo
Programing/MIT App Inventor2
Programing/scratch
Project_Management_tools
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
ReVIEW
RecentDeleted
RegularExpression
SSH
SandBox
Selenium
Sociology_psychology
SoftwareTest
SoraMame.Block
SoraMame.ps.js
SoraMame.ps.js/Reference
SoraMame.ps.js/Samples
SoraMame.ps.js/Syntax_Style
SoraMame.ps.js/ÆþÌç
SoraMame.ps.js/ÆþÌç/Casestudy
SoraMame.ps.js/ÆþÌç/Glossary
SoraMame.ps.js/ÆþÌç/Practice
SoraMame.ps.js/ÆþÌç/introduction
SoraMame.ps.js/ÆþÌç/object
SoraMame.ps.js/ÆþÌç/part.1
SoraMame.ps.js/ÆþÌç/part.2
SoraMame.ps.js/ÆþÌç/part.3
SoraMame.ps.js/ÆþÌç/part.4
SoraMame.ps.js/ÆþÌç/reason
Test
TortoiseSVN
Web Platform Installer
Web_Design
Web_services
Webforms
WikiEngines
WikiName
WikiWikiWeb
Windows ¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È
Windows+Mac-mini+WiFi
Windows¥æ¡¼¥¶¡¼¤Î¤¿¤á¤ÎEmacsÆþÌç2
Windows¥æ¡¼¥¶¡¼¤Î¤¿¤á¤ÎViÆþÌç
YukiWiki
aoi
aoi_hi-school_maker
archive
atom
basic_of_SoftwareLicense
corporate_philosophy
easyModal.js
educational_programing
enchant.js
english
english/800_Basic_English
english/Ankidroid
excel
framin
gimp
gmail
good_skill
https
iGoogle
ideas
infographics
inkscape
javaja22
javascript_file
keymacro4Mac
kotsubaki-wiki
make_for_Windows
making_script01
making_script02
making_script03
making_wiki
markdown
mediawiki
memo_word
memories
mozilla/docfest
nadeshiko_cgi
nadesiko_hi-school_maker
nadesiko_password
node.js
opensource_like
p5.js
p5.play.js
phaser/original_01
phaser/tutorial_01
phaser/tutorial_02
phpmyadmin
programer_training
proof
pukiwiki
scheme
search
story_telling
suzuka
thesaurus
trademark_patent
tsubaki-wiki
tsubaki-wiki-installer
tutorial_1
tutorial_2
tutorial_3
tutorial_4
vbs
voice
web_programing
windows_apache
windows_hosting_service
windows_http
windows_iis
windows_rails
windows_xampp
windows_xp_end
wordpress
writing
xampp
xoops
xyzzy
xyzzy/key_map
xyzzy_reference
¤Ê¤Ç¤·¤³
¤Ê¤Ç¤·¤³RegularExpression
¤Ê¤Ç¤·¤³Wiki(²¾)
¤Ê¤Ç¤·¤³¤ÇCGI_IIS
¤Ê¤Ç¤·¤³Ã±ÂΥƥ¹¥È
¥ª¡¼¥×¥ó¥½...C¥¹¤ÎÎò»Ë
¥ª¡¼¥×¥ó¥½¡¼¥¹¤ÎÎò»Ë
¾®Çþ¤Í¤ó¤É
ÅŻҽÐÈÇ¡¿ÅŻҽñÀÒ
ʸ¾Ïɽ¸½¾å¡¢¤È¤Æ¤â´ðËÜŪ¤Ê¥Æ¥¯¥Ë¥Ã¥¯
1
2
3
4
1111
[[Programing]] > [[Phaser]] > ¥Á¥å¡¼¥È¥ê¥¢¥ë2 #title(Phaser¤Î¥²¡¼¥à¤ò²þÎɤ·¤Æ¤ß¤¿) #ref(Phaser/jumping_dude.png) * ³µÍ× [#u86e3885] [[Á°²ó¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë>phaser/tutorial_01]]¤Ï¡¢Phaser¤Ë¤è¤ë´ðËÜŪ¤Ê¥²¡¼¥à¤Îºî¤êÊý¤òËÝÌõ¤·¤¿¤â¤Î¤À¤Ã¤¿¡£ º£²ó¡¢¤³¤ì¤òÆÈ¼«¤Ë²þÎɤ·¤Æ¡¢¤â¤¦¾¯¤·¥²¡¼¥à¤Ý¤¯¤·¤Æ¤ß¤ë¡£ ¤¢¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ç¤ÏÉÔ¤·¤Æ¤¤¤¿¾ðÊ󤬡¢¤¤¤¯¤Ä¤«Êä´°¤Ç¤¤Æ¤¤¤ë¤È»×¤¦¡£ ¤Þ¤¢¡¢¥½¡¼¥¹¥³¡¼¥É¤ò¸«¤Æ¤â¤é¤¨¤Ðʬ¤«¤ëÉôʬ¤â¤¢¤ë¤È»×¤¦¤±¤É¡¢¤¤¤Á¤ª¤¦´Êñ¤Ë²òÀ⤷¤Æ¤ß¤Þ¤¹¡£ ¤³¤³¤Ç¤Ï¡¢½çÈ֤˥½¡¼¥¹¥³¡¼¥É¤òÁȤßΩ¤Æ¤Æ¤¤¤¯¤Î¤Ç¤Ï¤Ê¤¯¡¢´°À®ÈǤÎÁ´ÂÎÁü¤ò¸«¤Æ¤â¤é¤Ã¤Æ¡¢ÆÃħŪ¤Ê¤È¤³¤í¤ò¥Ô¥ó¥Ý¥¤¥ó¥È¤Ç¼è¤ê¾å¤²¤Æ¤¤¤Þ¤¹¡£ - ´°À®Èǥǥ⠡ä http://www.catch.jp/program/phaser/002/index.html - ¥½¡¼¥¹¥³¡¼¥É > https://github.com/ycatch/games-phaser-jumping-dude ¥ì¥¹¥Ý¥ó¥·¥Ö¤Ë¤¹¤ëÊýË¡¤Ê¤É¡¢¾ÜºÙ¤ÏËöÈø¤ò»²¾È¡£ - ¥ì¥¹¥Ý¥ó¥·¥ÖÈǥǥ⠡ä http://www.catch.jp/program/phaser/003/index.html - ¥½¡¼¥¹¥³¡¼¥É > https://github.com/ycatch/games-phaser-jumping-dude-Responsive ** ÍøÍѾò·ï [#b43143bd] Copyright 2014 Yutaka Kachi released under MIT license. ´Ö°ã¤¤¤Ê¤É¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£ ¤â¤·¤â¸«¤Ä¤±¤¿¤é¡¢[[Twitter @y_catch:https://twitter.com/y_catch]]¤ØÏ¢Íí¤¤¤¿¤À¤±¤ë¤È½õ¤«¤ê¤Þ¤¹¡£ * Ìܼ¡ [#ccab2b01] #contents * ²þÎÉÅÀ [#o061741e] - ¥ë¡¼¥ë¡ÊÀ±¤¬¤É¤ó¤É¤óÁý¤¨¤Æ¤¤¤¯¡£À©¸Â»þ´ÖÀ©¡Ë - ¥¿¥¤¥Þ¡¼¤ò»È¤¤¡¢»þ´ÖÀ©¸Â¥²¡¼¥à¤Ë¤·¤¿ - Phaser¤ËƱº¤ÎBasic Project Template¤ò»È¤¦ - ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»È¤ï¤º¡¢¥²¡¼¥à¤Î¥¹¥Æ¡¼¥¿¥¹¤¬Á«°Ü¤·¤Æ¤¤¤¯ - ¥á¥¤¥ó¥á¥Ë¥å¡¼¤È¥²¡¼¥à¥ª¡¼¥Ð¡¼²èÌ̤ÎÄɲà - ¸ú²Ì²» * Project Template [#d7625bd6] Á°²ó¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ï¡¢Ã±°ì¤Îindex.htm¥Õ¥¡¥¤¥ë¤Ë100¹Ô¤¯¤é¤¤¤ÎJavascript¥³¡¼¥É¤òËä¤á¹þ¤ó¤Ç¤¤¤¿¡£¤³¤ì¤Ï¡¢Ã±½ã¤À¤·¥µ¥¯¥µ¥¯ºî¤ì¤ë¤ó¤À¤±¤É¡¢°ìÊý¤Ç¡¢¤â¤¦¾¯¤·µ¡Ç½¤Î¿¤¤¥²¡¼¥à¤òºî¤ê¤¿¤¤¾ì¹ç¤È¤«¸«Ä̤·¤¬°¤¤¤·¡¢¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»È¤¤¤¹¤®¤Æ¤¤¤ë¡£ ¤½¤³¤Ç¡¢Phaser¤ËƱº¤µ¤ì¤Æ¤¤¤ë¡¢Project Template¤Î¡ÖBasic ¡×¤ò»È¤¦¡£ ¤³¤ì¤Ï¡¢Phaser¤Îresources/Project Templates ¤Ë¤¢¤ëPhaser¥²¡¼¥à¤Î¹üÁȤߤǡ¢Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ç¹½À®¤µ¤ì¤Æ¤¤¤ë¡£ ¾Ü¤·¤¤»È¤¤Êý¤Ï¡¢¥³¥á¥ó¥È¤È¤·¤ÆµºÜ¤µ¤ì¤Æ¤¤¤ë¡£ ¤Þ¤À¹üÁȤߤÀ¤±¤Ê¤Î¤Ç¡£¥Õ¥¡¥¤¥ë¤ò³«¤¤¤Æ¤â¤Ê¤Ë¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£ * ¥Õ¥¡¥¤¥ë¹½À® [#nbee0dff] ´°À®ÈǤΥ²¡¼¥à¤Î¥Õ¥¡¥¤¥ë¹½À®¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£ JavaScript¤Ï¡¢Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ëʬ¤«¤ì¤Æ¤¤¤Æ¡¢js¥Õ¥©¥ë¥À¤ËÃÖ¤¤¤Æ¤¢¤ë¡£ ºÇ½ªÅª¤Ë¤Ï¡¢Ã±°ì¤Îjs¥Õ¥¡¥¤¥ë¤ËÅý¹ç¤·¤Á¤ã¤¨¤Ð¤¤¤¤¤ó¤À¤±¤ì¤É¡¢³«È¯Ãæ¤Î¸«Ä̤·¤ò¤è¤¯¤¹¤ë¤¿¤áʬ³ä¤·¤Æ¤ª¤¯¡£ BasicGame ¨¢ ¨¢ index.html ¨¢ ¨§¨¡ audio¡Ê¸ú²Ì²»¡Ë ¨¢ idou_ochiru_normal.mp3 ¨¢ jump08.mp3 ¨¢ ¨§¨¡ images¡Ê¥°¥é¥Õ¥£¥Ã¥¯¡Ë ¨¢ button.png ¨¢ dude.png ¨¢ platform320.png ¨¢ preloadr_bar.png ¨¢ sky-dark.png ¨¢ star.png ¨¢ timesup.png ¨¢ title.png ¨¢ ¨¦¨¡ js¡Ê¥³¡¼¥É¡Ë Boot.js Game.js MainMenu.js phaser.min.js Preloader.js * index.html [#p0b42f38] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/index.html]] ¤³¤Îindex.html¤ò³«¤¯¤È¡¢¥²¡¼¥à¤¬µ¯Æ°¤¹¤ë¡£ ¤Þ¤º¡¢<head>Éô¤ÇɬÍפÊJavascript¤òÆÉ¤ß¹þ¤à¡£ <head> <meta charset="UTF-8" /> <title>Jumping Dude</title> <script src="js/phaser.min.js"></script> <script src="js/Boot.js"></script> <script src="js/Preloader.js"></script> <script src="js/MainMenu.js"></script> <script src="js/Game.js"></script> </head> ¤Ç¡¢¥²¡¼¥à¼«ÂΤòɽ¼¨¤¹¤ë¥³¥ó¥Æ¥Ê¤òÍѰդ¹¤ë¡£ <div id="gameContainer"></div> ¡ãscript¡äÉô¤ÎJavascript¤Ç¤Ï¡¢window.onload¤Ç¸Æ¤Ó½Ð¤·¤Æ¡¢¥²¡¼¥à¤Î¥¹¥Æ¡¼¥¿¥¹¤òÅÐÏ¿¤¹¤ë¡£¤½¤ì¤«¤éBoot¥¹¥Æ¡¼¥¿¥¹¤òµ¯Æ°¤¹¤ë¡£ <script type="text/javascript"> window.onload = function() { // Create your Phaser game and inject it into the gameContainer div. // We did it in a window.onload event, but you can do it anywhere (requireJS load, anonymous function, jQuery dom ready, - whatever floats your boat) var game = new Phaser.Game(640, 480, Phaser.AUTO, 'gameContainer'); // Add the States your game has. // You don't have to do this in the html, it could be done in your Boot state too, but for simplicity I'll keep it here. game.state.add('Boot', BasicGame.Boot); game.state.add('Preloader', BasicGame.Preloader); game.state.add('MainMenu', BasicGame.MainMenu); game.state.add('Game', BasicGame.Game); // Now start the Boot state. game.state.start('Boot'); }; </script> * Boot.js [#r0f64cb0] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Boot.js]] ÏÈÁȤߤȤ·¤Æ¤Ï¡¢BasicGame.Boot¤òÄêµÁ¤·¤Æ¡¢prototype¤Çµ¡Ç½¤òÄɲ䷤Ƥ¤¤¯¡£ ¤³¤³¤Ç¤Ï¡¢init¡¢preload¡¢create¤Ë´Ø¿ô¤ò³ä¤êÅö¤Æ¤Æ¤¤¤ë¡£ ¥²¡¼¥à¥×¥í¥°¥é¥à¤¬µ¯Æ°¤·¤¿¤é¡¢¤Þ¤ºinit¤ÇɬÍ׺Ǿ®¸Â¤ÎÀßÄê¤ò¤·¤Æ¡¢preload¤Ç¥ê¥½¡¼¥¹(ÆÉ¤ß¹þ¤ßÃæ¤ò¼¨¤¹¥Ð¡¼)¤òÆÉ¤ß¹þ¤à¡£ ÆÉ¤ß¹þ¤ó¤À¤é¡¢create¤ÇPreload¥¹¥Æ¡¼¥¿¥¹¤Ë°Üư¤¹¤ë¡£ * Preloader.js [#cdddf1e0] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Preload.j]] preload´Ø¿ô¤Ç¡¢¥°¥é¥Õ¥£¥Ã¥¯¤È¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤ó¤Ç¡¢create¤ÇMainMenu¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¡£ ** ÆÉ¤ß¹þ¤ßÃæ [#x122de16] ÆÉ¤ß¹þ¤ßÃæ(¥×¥í¥°¥ì¥¹¥Ð¡¼)¤Ï¡¢¤³¤ó¤Ê´¶¤¸¤Çɽ¼¨¤¹¤ë¡£ // These are the assets we loaded in Boot.js // A nice sparkly background and a loading progress bar // ÇØ·Ê¿§ this.stage.backgroundColor = 'navy'; //ºî¶ÈÃæ¥Ð¡¼¤Î°ÌÃÖ this.preloadBar = this.add.sprite((BasicGame.GAME_WIDTH-311)/2, (BasicGame.GAME_HEIGHT-27)/2, 'preloaderBar'); // This sets the preloadBar sprite as a loader sprite. // What that does is automatically crop the sprite from 0 to full-width // as the files below are loaded in. // ºî¶È³«»Ï this.load.setPreloadSprite(this.preloadBar); ¤Çºî¶È¤¬´°Î»¤·¤Æ¡¢¼¡¤Î¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¤È¤¤Ï¡¢create¤Î¤È¤³¤í¤Çºî¶ÈÃæ¥Ð¡¼¤òÄä»ß¤¹¤ë this.preloadBar.cropEnabled = false; ** ¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß [#o5b6b275] ÆÉ¤ß¹þ¤ßÃæ¤Ï¡¢ºî¶ÈÃæ¤Î¥Ð¡¼¤òɽ¼¨¤¹¤ë¡£ ²èÁü¤ä¥¹¥×¥é¥¤¥È¤ÈƱ¤¸¤è¤¦¤Ë¡¢¤³¤ó¤Ê¤Õ¤¦¤Ë¤·¤ÆÆÉ¤ß¤³¤à¡£ this.load.audio('getSound', ['audio/jump08.mp3']); this.load.audio('jumpSound', ['audio/idou_ochiru_normal.mp3']); * MainMenu.js [#kc302a28] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/MainMenu.js]] ¥¹¥¿¡¼¥È²èÌ̤ȥ¹¥¿¡¼¥È¥Ü¥¿¥ó¤òɽ¼¨¤¹¤ë¤À¤±¡£ ** ¥¹¥¿¡¼¥È¥Ü¥¿¥ó [#wb8e51d7] ¥¹¥¿¡¼¥È¥Ü¥¿¥ó¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£¥Ü¥¿¥ó¤Ï¡¢¥¹¥×¥é¥¤¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£¤³¤ì¤ò²èÌÌÃæ±û¤ËÇÛÃÖ¡£ ¥Ü¥¿¥ó¤¬¥¯¥ê¥Ã¥¯¤µ¤ì¤ë¤È¡¢startGame´Ø¿ô¤¬¸Æ¤Ó½Ð¤µ¤ì¤ë¡£ this.add.button(BasicGame.GAME_WIDTH/2-43, BasicGame.GAME_HEIGHT-100,'start-button', this.startGame, this, 1, 0, 2); startGame´Ø¿ô¤Ï¡¢¼¡¤ÎGame¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¡£ * Game.js [#yb1877af] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Game.js]] ¥²¡¼¥à¼«ÂΤϡ¢Á°¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤ÈƱ¤¸¤¯¡¢Áö¤Ã¤Æ¥¸¥ã¥ó¥×¤·¤ÆÀ±¤ò½¸¤á¤ë¡£ ** ¥µ¥¦¥ó¥É [#p1dd4e9a] ¤¤¤Á¤ª¤¦¡¢¸ú²Ì²»¤òÉÕ¤±¤Æ¤ß¤¿¡£¥¸¥ã¥ó¥×¤·¤¿¤È¤¤ÈÀ±¤ò¼è¤Ã¤¿¤È¤¤Ë¸ú²Ì²»¤¬¤Ê¤ë¡£ ¤Þ¤º¡¢create¤Î¤È¤³¤í¤Ç¡¢¤³¤Î¥¹¥Æ¡¼¥¿¥¹¤Ç»È¤¦¸ú²Ì²»¤òÅÐÏ¿¤¹¤ë this.getSound = this.add.audio('getSound'); this.jumpSound = this.add.audio('jumpSound'); ¤½¤ì¤«¤é¡¢¼ÂºÝ¤Î¥¢¥¯¥·¥ç¥ó¤Ë¹ç¤ï¤»¤Æ¡¢¸ú²Ì²»¤òºÆÀ¸¤¹¤ë this.jumpSound.play(); //¥¸¥ã¥ó¥× this.getSound.play(); //À±¥²¥Ã¥È ** »þ´ÖÀ©¸Â [#bc18fe3c] »þ´ÖÀ©¸ÂÀ©¤Î¥²¡¼¥à¤Ë¤·¤Æ¤ß¤¿¡£ ¤½¤Î¤¿¤á¤Ë¡¢¤Þ¤ºcreate¤Î¤È¤³¤í¤Ç¡¢¥¿¥¤¥Þ¡¼¤È¥¿¥¤¥Þ¡¼É½¼¨¤ò½é´ü²½¤¹¤ë this._timeCounter = 0; //¥¿¥¤¥Þ¡¼ this._leftTime = 30; //»Ä¤ê»þ´Ö this._leftTimeText = this.add.text(300, 16, 'Time: 0', { fontSize: '28px', fill: '#FFF' }); //»þ´Öɽ¼¨ ¤Ç¡¢update¤Î¤È¤³¤í¤Ç¡¢¥¿¥¤¥Þ¡¼¤ò¹¹¿·¤¹¤ë // update timer every frame this._timeCounter += this.time.elapsed; // if spawn timer reach one second (1000 miliseconds) if(this._timeCounter > 1000) { // reset it this._timeCounter = 0; this._leftTime --; this._leftTimeText.text = 'Time: ' + this._leftTime; } »Ä¤ê»þ´Ö¤¬¡¢¥¼¥í¤Ë¤Ê¤Ã¤¿¤é¡¢¥²¡¼¥à¥ª¡¼¥Ð¡¼¤ÇquitGame¤ò¸Æ¤Ó½Ð¤¹¡£ if(this._leftTime <= 0) { this.quitGame(); } ** ¥²¡¼¥à¥ª¡¼¥Ð¡¼ [#y0fac540] quitGame¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£¤Þ¤º¡¢¸ú²Ì²»¤ò»ß¤á¤Æ¡¢Time'sUp(»þ´ÖÀÚ¤ì)¤òɽ¼¨¤¹¤ë quitGame: function (pointer) { // Here you should destroy anything you no longer need. // Stop music, delete sprites, purge caches, free resources, all that good stuff. // Then let's go back to the main menu. this.getSound.stop(); this._timesup_title = this.add.sprite((this.world.width - 400) / 2, (this.world.height - 100) / 2, 'timesup'); ¤½¤ì¤«¤é¡¢¥²¡¼¥àÁ´ÂΤò°ì»þÄä»ß¤·¤Æ¡¢¥¯¥ê¥Ã¥¯¤·¤¿¤é¥á¥¤¥ó¥á¥Ë¥å¡¼¤ØÌá¤ë¤è¤¦¤Ë¤¹¤ë¡£ this.game.paused = true; var pausedText = this.add.text(160, 360, "Tap anywhere to Menu.", { fontSize: '28px', fill: '#FFF' }); this.input.onDown.add(function(){ pausedText.destroy(); this.game.paused = false; this.state.start('MainMenu'); }, this); }, * ¥ì¥¹¥Ý¥ó¥·¥Ö [#r8a955ba] basic¥Æ¥ó¥×¥ì¡¼¥È¤Ç¤Ï¤Ê¤¯¡¢¤³¤Ã¤Á¤Î¥Æ¥ó¥×¥ì¡¼¥È¤ò»È¤¦¤È¡¢¤ï¤ê¤È´Êñ¤Ë¥ì¥¹¥Ý¥ó¥·¥Ö¤Ë¤Ç¤¤¿¡£ PC¤ä¥¿¥Ö¥ì¥Ã¥È¤Ê¤É¥Ç¥Ð¥¤¥¹¤Î²èÌÌ¥µ¥¤¥º¤Ë¹ç¤ï¤»¤Æ¡¢¥²¡¼¥à²èÌ̤Υµ¥¤¥º¤òÄ´À°¤·¤Æ¤¯¤ì¤ë¡£ ¥¹¥Þ¥Û¤Ç½Ä»ý¤Á¤Î¤È¤¤Ï¡¢²£»ý¤Á¤Ë¤¹¤ë¤è¤¦¥¬¥¤¥À¥ó¥¹¤â¼«Æ°Åª¤Ë½Ð¤ë¡£ ¤¿¤À¤·¡¢¥²¡¼¥à¤Ï¤Þ¤À¥¿¥Ã¥Á¤À¤±¤Ç¤ÏÁàºî¤Ç¤¤Ê¤¤¤ó¤À¤±¤É¤Ê¡£ - Fullscreen Scaling in Phaser | tjkopena -- http://www.rocketshipgames.com/blogs/tjkopena/2014/10/fullscreen-scaling-in-phaser/ - Github -- https://github.com/RocketshipGames/phaser-fullscreen - ¥ì¥¹¥Ý¥ó¥·¥ÖÈǥǥâ -- http://www.catch.jp/program/phaser/003/index.html * »²¹Í [#w17363b5] ¤³¤ì¤â¤Þ¤¿Ê̤Υ²¡¼¥à¡Ü¥Á¥å¡¼¥È¥ê¥¢¥ë¡£ - [[Getting Started With Phaser: Building "Monster Wants Candy" - Tuts+ Game Development Tutorial:http://gamedevelopment.tutsplus.com/tutorials/getting-started-with-phaser-building-monster-wants-candy--cms-21723]]
¥¿¥¤¥à¥¹¥¿¥ó¥×¤òÊѹ¹¤·¤Ê¤¤
[[Programing]] > [[Phaser]] > ¥Á¥å¡¼¥È¥ê¥¢¥ë2 #title(Phaser¤Î¥²¡¼¥à¤ò²þÎɤ·¤Æ¤ß¤¿) #ref(Phaser/jumping_dude.png) * ³µÍ× [#u86e3885] [[Á°²ó¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë>phaser/tutorial_01]]¤Ï¡¢Phaser¤Ë¤è¤ë´ðËÜŪ¤Ê¥²¡¼¥à¤Îºî¤êÊý¤òËÝÌõ¤·¤¿¤â¤Î¤À¤Ã¤¿¡£ º£²ó¡¢¤³¤ì¤òÆÈ¼«¤Ë²þÎɤ·¤Æ¡¢¤â¤¦¾¯¤·¥²¡¼¥à¤Ý¤¯¤·¤Æ¤ß¤ë¡£ ¤¢¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ç¤ÏÉÔ¤·¤Æ¤¤¤¿¾ðÊ󤬡¢¤¤¤¯¤Ä¤«Êä´°¤Ç¤¤Æ¤¤¤ë¤È»×¤¦¡£ ¤Þ¤¢¡¢¥½¡¼¥¹¥³¡¼¥É¤ò¸«¤Æ¤â¤é¤¨¤Ðʬ¤«¤ëÉôʬ¤â¤¢¤ë¤È»×¤¦¤±¤É¡¢¤¤¤Á¤ª¤¦´Êñ¤Ë²òÀ⤷¤Æ¤ß¤Þ¤¹¡£ ¤³¤³¤Ç¤Ï¡¢½çÈ֤˥½¡¼¥¹¥³¡¼¥É¤òÁȤßΩ¤Æ¤Æ¤¤¤¯¤Î¤Ç¤Ï¤Ê¤¯¡¢´°À®ÈǤÎÁ´ÂÎÁü¤ò¸«¤Æ¤â¤é¤Ã¤Æ¡¢ÆÃħŪ¤Ê¤È¤³¤í¤ò¥Ô¥ó¥Ý¥¤¥ó¥È¤Ç¼è¤ê¾å¤²¤Æ¤¤¤Þ¤¹¡£ - ´°À®Èǥǥ⠡ä http://www.catch.jp/program/phaser/002/index.html - ¥½¡¼¥¹¥³¡¼¥É > https://github.com/ycatch/games-phaser-jumping-dude ¥ì¥¹¥Ý¥ó¥·¥Ö¤Ë¤¹¤ëÊýË¡¤Ê¤É¡¢¾ÜºÙ¤ÏËöÈø¤ò»²¾È¡£ - ¥ì¥¹¥Ý¥ó¥·¥ÖÈǥǥ⠡ä http://www.catch.jp/program/phaser/003/index.html - ¥½¡¼¥¹¥³¡¼¥É > https://github.com/ycatch/games-phaser-jumping-dude-Responsive ** ÍøÍѾò·ï [#b43143bd] Copyright 2014 Yutaka Kachi released under MIT license. ´Ö°ã¤¤¤Ê¤É¤¢¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£ ¤â¤·¤â¸«¤Ä¤±¤¿¤é¡¢[[Twitter @y_catch:https://twitter.com/y_catch]]¤ØÏ¢Íí¤¤¤¿¤À¤±¤ë¤È½õ¤«¤ê¤Þ¤¹¡£ * Ìܼ¡ [#ccab2b01] #contents * ²þÎÉÅÀ [#o061741e] - ¥ë¡¼¥ë¡ÊÀ±¤¬¤É¤ó¤É¤óÁý¤¨¤Æ¤¤¤¯¡£À©¸Â»þ´ÖÀ©¡Ë - ¥¿¥¤¥Þ¡¼¤ò»È¤¤¡¢»þ´ÖÀ©¸Â¥²¡¼¥à¤Ë¤·¤¿ - Phaser¤ËƱº¤ÎBasic Project Template¤ò»È¤¦ - ¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»È¤ï¤º¡¢¥²¡¼¥à¤Î¥¹¥Æ¡¼¥¿¥¹¤¬Á«°Ü¤·¤Æ¤¤¤¯ - ¥á¥¤¥ó¥á¥Ë¥å¡¼¤È¥²¡¼¥à¥ª¡¼¥Ð¡¼²èÌ̤ÎÄɲà - ¸ú²Ì²» * Project Template [#d7625bd6] Á°²ó¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤Ï¡¢Ã±°ì¤Îindex.htm¥Õ¥¡¥¤¥ë¤Ë100¹Ô¤¯¤é¤¤¤ÎJavascript¥³¡¼¥É¤òËä¤á¹þ¤ó¤Ç¤¤¤¿¡£¤³¤ì¤Ï¡¢Ã±½ã¤À¤·¥µ¥¯¥µ¥¯ºî¤ì¤ë¤ó¤À¤±¤É¡¢°ìÊý¤Ç¡¢¤â¤¦¾¯¤·µ¡Ç½¤Î¿¤¤¥²¡¼¥à¤òºî¤ê¤¿¤¤¾ì¹ç¤È¤«¸«Ä̤·¤¬°¤¤¤·¡¢¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤ò»È¤¤¤¹¤®¤Æ¤¤¤ë¡£ ¤½¤³¤Ç¡¢Phaser¤ËƱº¤µ¤ì¤Æ¤¤¤ë¡¢Project Template¤Î¡ÖBasic ¡×¤ò»È¤¦¡£ ¤³¤ì¤Ï¡¢Phaser¤Îresources/Project Templates ¤Ë¤¢¤ëPhaser¥²¡¼¥à¤Î¹üÁȤߤǡ¢Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ç¹½À®¤µ¤ì¤Æ¤¤¤ë¡£ ¾Ü¤·¤¤»È¤¤Êý¤Ï¡¢¥³¥á¥ó¥È¤È¤·¤ÆµºÜ¤µ¤ì¤Æ¤¤¤ë¡£ ¤Þ¤À¹üÁȤߤÀ¤±¤Ê¤Î¤Ç¡£¥Õ¥¡¥¤¥ë¤ò³«¤¤¤Æ¤â¤Ê¤Ë¤âɽ¼¨¤µ¤ì¤Ê¤¤¡£ * ¥Õ¥¡¥¤¥ë¹½À® [#nbee0dff] ´°À®ÈǤΥ²¡¼¥à¤Î¥Õ¥¡¥¤¥ë¹½À®¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£ JavaScript¤Ï¡¢Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¤Ëʬ¤«¤ì¤Æ¤¤¤Æ¡¢js¥Õ¥©¥ë¥À¤ËÃÖ¤¤¤Æ¤¢¤ë¡£ ºÇ½ªÅª¤Ë¤Ï¡¢Ã±°ì¤Îjs¥Õ¥¡¥¤¥ë¤ËÅý¹ç¤·¤Á¤ã¤¨¤Ð¤¤¤¤¤ó¤À¤±¤ì¤É¡¢³«È¯Ãæ¤Î¸«Ä̤·¤ò¤è¤¯¤¹¤ë¤¿¤áʬ³ä¤·¤Æ¤ª¤¯¡£ BasicGame ¨¢ ¨¢ index.html ¨¢ ¨§¨¡ audio¡Ê¸ú²Ì²»¡Ë ¨¢ idou_ochiru_normal.mp3 ¨¢ jump08.mp3 ¨¢ ¨§¨¡ images¡Ê¥°¥é¥Õ¥£¥Ã¥¯¡Ë ¨¢ button.png ¨¢ dude.png ¨¢ platform320.png ¨¢ preloadr_bar.png ¨¢ sky-dark.png ¨¢ star.png ¨¢ timesup.png ¨¢ title.png ¨¢ ¨¦¨¡ js¡Ê¥³¡¼¥É¡Ë Boot.js Game.js MainMenu.js phaser.min.js Preloader.js * index.html [#p0b42f38] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/index.html]] ¤³¤Îindex.html¤ò³«¤¯¤È¡¢¥²¡¼¥à¤¬µ¯Æ°¤¹¤ë¡£ ¤Þ¤º¡¢<head>Éô¤ÇɬÍפÊJavascript¤òÆÉ¤ß¹þ¤à¡£ <head> <meta charset="UTF-8" /> <title>Jumping Dude</title> <script src="js/phaser.min.js"></script> <script src="js/Boot.js"></script> <script src="js/Preloader.js"></script> <script src="js/MainMenu.js"></script> <script src="js/Game.js"></script> </head> ¤Ç¡¢¥²¡¼¥à¼«ÂΤòɽ¼¨¤¹¤ë¥³¥ó¥Æ¥Ê¤òÍѰդ¹¤ë¡£ <div id="gameContainer"></div> ¡ãscript¡äÉô¤ÎJavascript¤Ç¤Ï¡¢window.onload¤Ç¸Æ¤Ó½Ð¤·¤Æ¡¢¥²¡¼¥à¤Î¥¹¥Æ¡¼¥¿¥¹¤òÅÐÏ¿¤¹¤ë¡£¤½¤ì¤«¤éBoot¥¹¥Æ¡¼¥¿¥¹¤òµ¯Æ°¤¹¤ë¡£ <script type="text/javascript"> window.onload = function() { // Create your Phaser game and inject it into the gameContainer div. // We did it in a window.onload event, but you can do it anywhere (requireJS load, anonymous function, jQuery dom ready, - whatever floats your boat) var game = new Phaser.Game(640, 480, Phaser.AUTO, 'gameContainer'); // Add the States your game has. // You don't have to do this in the html, it could be done in your Boot state too, but for simplicity I'll keep it here. game.state.add('Boot', BasicGame.Boot); game.state.add('Preloader', BasicGame.Preloader); game.state.add('MainMenu', BasicGame.MainMenu); game.state.add('Game', BasicGame.Game); // Now start the Boot state. game.state.start('Boot'); }; </script> * Boot.js [#r0f64cb0] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Boot.js]] ÏÈÁȤߤȤ·¤Æ¤Ï¡¢BasicGame.Boot¤òÄêµÁ¤·¤Æ¡¢prototype¤Çµ¡Ç½¤òÄɲ䷤Ƥ¤¤¯¡£ ¤³¤³¤Ç¤Ï¡¢init¡¢preload¡¢create¤Ë´Ø¿ô¤ò³ä¤êÅö¤Æ¤Æ¤¤¤ë¡£ ¥²¡¼¥à¥×¥í¥°¥é¥à¤¬µ¯Æ°¤·¤¿¤é¡¢¤Þ¤ºinit¤ÇɬÍ׺Ǿ®¸Â¤ÎÀßÄê¤ò¤·¤Æ¡¢preload¤Ç¥ê¥½¡¼¥¹(ÆÉ¤ß¹þ¤ßÃæ¤ò¼¨¤¹¥Ð¡¼)¤òÆÉ¤ß¹þ¤à¡£ ÆÉ¤ß¹þ¤ó¤À¤é¡¢create¤ÇPreload¥¹¥Æ¡¼¥¿¥¹¤Ë°Üư¤¹¤ë¡£ * Preloader.js [#cdddf1e0] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Preload.j]] preload´Ø¿ô¤Ç¡¢¥°¥é¥Õ¥£¥Ã¥¯¤È¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤ó¤Ç¡¢create¤ÇMainMenu¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¡£ ** ÆÉ¤ß¹þ¤ßÃæ [#x122de16] ÆÉ¤ß¹þ¤ßÃæ(¥×¥í¥°¥ì¥¹¥Ð¡¼)¤Ï¡¢¤³¤ó¤Ê´¶¤¸¤Çɽ¼¨¤¹¤ë¡£ // These are the assets we loaded in Boot.js // A nice sparkly background and a loading progress bar // ÇØ·Ê¿§ this.stage.backgroundColor = 'navy'; //ºî¶ÈÃæ¥Ð¡¼¤Î°ÌÃÖ this.preloadBar = this.add.sprite((BasicGame.GAME_WIDTH-311)/2, (BasicGame.GAME_HEIGHT-27)/2, 'preloaderBar'); // This sets the preloadBar sprite as a loader sprite. // What that does is automatically crop the sprite from 0 to full-width // as the files below are loaded in. // ºî¶È³«»Ï this.load.setPreloadSprite(this.preloadBar); ¤Çºî¶È¤¬´°Î»¤·¤Æ¡¢¼¡¤Î¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¤È¤¤Ï¡¢create¤Î¤È¤³¤í¤Çºî¶ÈÃæ¥Ð¡¼¤òÄä»ß¤¹¤ë this.preloadBar.cropEnabled = false; ** ¥µ¥¦¥ó¥É¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß [#o5b6b275] ÆÉ¤ß¹þ¤ßÃæ¤Ï¡¢ºî¶ÈÃæ¤Î¥Ð¡¼¤òɽ¼¨¤¹¤ë¡£ ²èÁü¤ä¥¹¥×¥é¥¤¥È¤ÈƱ¤¸¤è¤¦¤Ë¡¢¤³¤ó¤Ê¤Õ¤¦¤Ë¤·¤ÆÆÉ¤ß¤³¤à¡£ this.load.audio('getSound', ['audio/jump08.mp3']); this.load.audio('jumpSound', ['audio/idou_ochiru_normal.mp3']); * MainMenu.js [#kc302a28] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/MainMenu.js]] ¥¹¥¿¡¼¥È²èÌ̤ȥ¹¥¿¡¼¥È¥Ü¥¿¥ó¤òɽ¼¨¤¹¤ë¤À¤±¡£ ** ¥¹¥¿¡¼¥È¥Ü¥¿¥ó [#wb8e51d7] ¥¹¥¿¡¼¥È¥Ü¥¿¥ó¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£¥Ü¥¿¥ó¤Ï¡¢¥¹¥×¥é¥¤¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£¤³¤ì¤ò²èÌÌÃæ±û¤ËÇÛÃÖ¡£ ¥Ü¥¿¥ó¤¬¥¯¥ê¥Ã¥¯¤µ¤ì¤ë¤È¡¢startGame´Ø¿ô¤¬¸Æ¤Ó½Ð¤µ¤ì¤ë¡£ this.add.button(BasicGame.GAME_WIDTH/2-43, BasicGame.GAME_HEIGHT-100,'start-button', this.startGame, this, 1, 0, 2); startGame´Ø¿ô¤Ï¡¢¼¡¤ÎGame¥¹¥Æ¡¼¥¿¥¹¤ËÁ«°Ü¤¹¤ë¡£ * Game.js [#yb1877af] [[¥½¡¼¥¹¥³¡¼¥É:https://github.com/ycatch/games-phaser-jumping-dude/blob/master/js/Game.js]] ¥²¡¼¥à¼«ÂΤϡ¢Á°¤Î¥Á¥å¡¼¥È¥ê¥¢¥ë¤ÈƱ¤¸¤¯¡¢Áö¤Ã¤Æ¥¸¥ã¥ó¥×¤·¤ÆÀ±¤ò½¸¤á¤ë¡£ ** ¥µ¥¦¥ó¥É [#p1dd4e9a] ¤¤¤Á¤ª¤¦¡¢¸ú²Ì²»¤òÉÕ¤±¤Æ¤ß¤¿¡£¥¸¥ã¥ó¥×¤·¤¿¤È¤¤ÈÀ±¤ò¼è¤Ã¤¿¤È¤¤Ë¸ú²Ì²»¤¬¤Ê¤ë¡£ ¤Þ¤º¡¢create¤Î¤È¤³¤í¤Ç¡¢¤³¤Î¥¹¥Æ¡¼¥¿¥¹¤Ç»È¤¦¸ú²Ì²»¤òÅÐÏ¿¤¹¤ë this.getSound = this.add.audio('getSound'); this.jumpSound = this.add.audio('jumpSound'); ¤½¤ì¤«¤é¡¢¼ÂºÝ¤Î¥¢¥¯¥·¥ç¥ó¤Ë¹ç¤ï¤»¤Æ¡¢¸ú²Ì²»¤òºÆÀ¸¤¹¤ë this.jumpSound.play(); //¥¸¥ã¥ó¥× this.getSound.play(); //À±¥²¥Ã¥È ** »þ´ÖÀ©¸Â [#bc18fe3c] »þ´ÖÀ©¸ÂÀ©¤Î¥²¡¼¥à¤Ë¤·¤Æ¤ß¤¿¡£ ¤½¤Î¤¿¤á¤Ë¡¢¤Þ¤ºcreate¤Î¤È¤³¤í¤Ç¡¢¥¿¥¤¥Þ¡¼¤È¥¿¥¤¥Þ¡¼É½¼¨¤ò½é´ü²½¤¹¤ë this._timeCounter = 0; //¥¿¥¤¥Þ¡¼ this._leftTime = 30; //»Ä¤ê»þ´Ö this._leftTimeText = this.add.text(300, 16, 'Time: 0', { fontSize: '28px', fill: '#FFF' }); //»þ´Öɽ¼¨ ¤Ç¡¢update¤Î¤È¤³¤í¤Ç¡¢¥¿¥¤¥Þ¡¼¤ò¹¹¿·¤¹¤ë // update timer every frame this._timeCounter += this.time.elapsed; // if spawn timer reach one second (1000 miliseconds) if(this._timeCounter > 1000) { // reset it this._timeCounter = 0; this._leftTime --; this._leftTimeText.text = 'Time: ' + this._leftTime; } »Ä¤ê»þ´Ö¤¬¡¢¥¼¥í¤Ë¤Ê¤Ã¤¿¤é¡¢¥²¡¼¥à¥ª¡¼¥Ð¡¼¤ÇquitGame¤ò¸Æ¤Ó½Ð¤¹¡£ if(this._leftTime <= 0) { this.quitGame(); } ** ¥²¡¼¥à¥ª¡¼¥Ð¡¼ [#y0fac540] quitGame¤Ï¡¢¤³¤ó¤Ê´¶¤¸¡£¤Þ¤º¡¢¸ú²Ì²»¤ò»ß¤á¤Æ¡¢Time'sUp(»þ´ÖÀÚ¤ì)¤òɽ¼¨¤¹¤ë quitGame: function (pointer) { // Here you should destroy anything you no longer need. // Stop music, delete sprites, purge caches, free resources, all that good stuff. // Then let's go back to the main menu. this.getSound.stop(); this._timesup_title = this.add.sprite((this.world.width - 400) / 2, (this.world.height - 100) / 2, 'timesup'); ¤½¤ì¤«¤é¡¢¥²¡¼¥àÁ´ÂΤò°ì»þÄä»ß¤·¤Æ¡¢¥¯¥ê¥Ã¥¯¤·¤¿¤é¥á¥¤¥ó¥á¥Ë¥å¡¼¤ØÌá¤ë¤è¤¦¤Ë¤¹¤ë¡£ this.game.paused = true; var pausedText = this.add.text(160, 360, "Tap anywhere to Menu.", { fontSize: '28px', fill: '#FFF' }); this.input.onDown.add(function(){ pausedText.destroy(); this.game.paused = false; this.state.start('MainMenu'); }, this); }, * ¥ì¥¹¥Ý¥ó¥·¥Ö [#r8a955ba] basic¥Æ¥ó¥×¥ì¡¼¥È¤Ç¤Ï¤Ê¤¯¡¢¤³¤Ã¤Á¤Î¥Æ¥ó¥×¥ì¡¼¥È¤ò»È¤¦¤È¡¢¤ï¤ê¤È´Êñ¤Ë¥ì¥¹¥Ý¥ó¥·¥Ö¤Ë¤Ç¤¤¿¡£ PC¤ä¥¿¥Ö¥ì¥Ã¥È¤Ê¤É¥Ç¥Ð¥¤¥¹¤Î²èÌÌ¥µ¥¤¥º¤Ë¹ç¤ï¤»¤Æ¡¢¥²¡¼¥à²èÌ̤Υµ¥¤¥º¤òÄ´À°¤·¤Æ¤¯¤ì¤ë¡£ ¥¹¥Þ¥Û¤Ç½Ä»ý¤Á¤Î¤È¤¤Ï¡¢²£»ý¤Á¤Ë¤¹¤ë¤è¤¦¥¬¥¤¥À¥ó¥¹¤â¼«Æ°Åª¤Ë½Ð¤ë¡£ ¤¿¤À¤·¡¢¥²¡¼¥à¤Ï¤Þ¤À¥¿¥Ã¥Á¤À¤±¤Ç¤ÏÁàºî¤Ç¤¤Ê¤¤¤ó¤À¤±¤É¤Ê¡£ - Fullscreen Scaling in Phaser | tjkopena -- http://www.rocketshipgames.com/blogs/tjkopena/2014/10/fullscreen-scaling-in-phaser/ - Github -- https://github.com/RocketshipGames/phaser-fullscreen - ¥ì¥¹¥Ý¥ó¥·¥ÖÈǥǥâ -- http://www.catch.jp/program/phaser/003/index.html * »²¹Í [#w17363b5] ¤³¤ì¤â¤Þ¤¿Ê̤Υ²¡¼¥à¡Ü¥Á¥å¡¼¥È¥ê¥¢¥ë¡£ - [[Getting Started With Phaser: Building "Monster Wants Candy" - Tuts+ Game Development Tutorial:http://gamedevelopment.tutsplus.com/tutorials/getting-started-with-phaser-building-monster-wants-candy--cms-21723]]
¥Æ¥¥¹¥ÈÀ°·Á¤Î¥ë¡¼¥ë¤òɽ¼¨¤¹¤ë