Finwillwin

Members
  • Content count

    15
  • Joined

  • Last visited

  1. Game list of phaser games

    Here are my games : hollow-box-softworks.itch.io
  2. HOW DO I PUT WEB FONTS INTO A MULTI JS FILE PHASER GAME???

    So were do I place the JS in my code? thx
  3. HOW DO I PUT WEB FONTS INTO A MULTI JS FILE PHASER GAME???

    THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  4. So I followed this tutorial, but I can't get it to work: Here is my code: <html lang="en"> <header> <style type="text/css"> @font-face { font-family: 'press_start_2pregular'; src: url('pressstart2p-webfont.woff2') format('woff2'), url('pressstart2p-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } </style> </header> <head> <meta charset="UTF-8" /> <title>Disturbance in Sector C</title> <script type="text/javascript" src="code/phaser.min.js"></script> <script type="text/javascript" src="code/Level1.js"></script> <script type="text/javascript" src="code/Level0.js"></script> <script type="text/javascript" src="code/start.js"></script> <script type="text/javascript" src="code/settingsmain.js"></script> <script type="text/javascript" src="code/settingsmain1.js"></script> <script type="text/javascript" src="code/settingsmain2.js"></script> <script type="text/javascript" src="code/Loader.js"></script> <script type="text/javascript" src="code/Loader1.js"></script> <script type="text/javascript" src="code/Loader2.js"></script> <script type="text/javascript" src="code/Loader3.js"></script> <script type="text/javascript" src="code/intro.js"></script> <script type="audio/mp3" src="audio/Outerlands.mp3"></script> <style type="text/css">body {margin: 0;}body{ background-color:black; }</style> <head> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> <link rel="icon" href="favicon.ico" type="image/x-icon"> </head> <body> <div style="font-family:Press Start 2P; position:absolute; left:-10000px">Font Loaded</div> <script type="text/javascript"> var game = new Phaser.Game(1100, 550, Phaser.AUTO); game.state.add('Level1', Level1); game.state.add('Level0', Level0); game.state.add('Loader', loader); game.state.add('Loader1', loader1); game.state.add('Loader2', loader2); game.state.add('Loader3', loader3); game.state.add('start', start); game.state.add('settingsmain', settingsmain); game.state.add('settingsmain1', settingsmain1); game.state.add('settingsmain2', settingsmain2); game.state.add('intro', intro); game.state.start('Loader'); game.pause = 0; game.kys = 0; game.fps = 1; game.mute = 0; game.spawn = 0; game.downn = 0; game.song = 0; game.weapon = 0; game.frame = 0; </script> </body> </html> So ya thanks!
  5. In the index.html put the variable as <html lang="en"> <head> <meta charset="UTF-8" /> <title>Your Game</title> <script type="text/javascript" src="code/phaser.min.js"></script> <script type="text/javascript" src="code/Level1.js"></script> </head> <body> <script type="text/javascript"> var game = new Phaser.Game(1100, 550, Phaser.AUTO); var game.variable = 0930211 </script> </body> </html>
  6. Whenever I upload it, it says it can't find phaser+all the levels! Here is the index.html code: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>The Adventure of Bleekofla</title> <script type="text/javascript" src="phaser.min.js"></script> <script type="text/javascript" src="loader.js"></script> <script type="text/javascript" src="Start.js"></script> <script type="text/javascript" src="ref.js"></script> <script type="text/javascript" src="ref1.js"></script> <script type="text/javascript" src="ref2.js"></script> <script type="text/javascript" src="intro.js"></script> <script type="text/javascript" src="battle.js"></script> <script type="text/javascript" src="house.js"></script> <script type="text/javascript" src="Level1.js"></script> <script type="text/javascript" src="Level2.js"></script> <script type="text/javascript" src="Level3.js"></script> <script type="text/javascript" src="Level4.js"></script> <script type="text/javascript" src="Level5.js"></script> <script type="text/javascript" src="Level6.js"></script> <script type="text/javascript" src="outro.js"></script> <script type="text/javascript" src="cred.js"></script> <script type="text/javascript" src="old.js"></script> <style type="text/css">body {margin: 0;}body{ background-color:black; }</style> </head> <body> <body background="assets/plumbus.png"> <script type="text/javascript"> var game = new Phaser.Game(1080,560, Phaser.AUTO); game.state.add('loader', loader); game.state.add('ref', ref); game.state.add('ref1', ref1); game.state.add('ref2', ref2); game.state.add('Start', Start); game.state.add('intro', intro); game.state.add('house', house); game.state.add('battle', battle); game.state.add('Level1', Level1); game.state.add('Level2', Level2); game.state.add('Level3', Level3); game.state.add('Level4', Level4); game.state.add('Level5', Level5); game.state.add('Level6', Level6); game.state.add('outro', outro); game.state.add('cred', cred); game.state.add('old', old); game.state.start('loader'); game.lives = 3; game.levels = 1; game.plubs = 0; game.spawns = 0; </script> </body> </html>
  7. Whenever I upload it, it says it can't find phaser+all the levels! Here is the index.html code: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>The Adventure of Bleekofla</title> <script type="text/javascript" src="phaser.min.js"></script> <script type="text/javascript" src="loader.js"></script> <script type="text/javascript" src="Start.js"></script> <script type="text/javascript" src="ref.js"></script> <script type="text/javascript" src="ref1.js"></script> <script type="text/javascript" src="ref2.js"></script> <script type="text/javascript" src="intro.js"></script> <script type="text/javascript" src="battle.js"></script> <script type="text/javascript" src="house.js"></script> <script type="text/javascript" src="Level1.js"></script> <script type="text/javascript" src="Level2.js"></script> <script type="text/javascript" src="Level3.js"></script> <script type="text/javascript" src="Level4.js"></script> <script type="text/javascript" src="Level5.js"></script> <script type="text/javascript" src="Level6.js"></script> <script type="text/javascript" src="outro.js"></script> <script type="text/javascript" src="cred.js"></script> <script type="text/javascript" src="old.js"></script> <style type="text/css">body {margin: 0;}body{ background-color:black; }</style> </head> <body> <body background="assets/plumbus.png"> <script type="text/javascript"> var game = new Phaser.Game(1080,560, Phaser.AUTO); game.state.add('loader', loader); game.state.add('ref', ref); game.state.add('ref1', ref1); game.state.add('ref2', ref2); game.state.add('Start', Start); game.state.add('intro', intro); game.state.add('house', house); game.state.add('battle', battle); game.state.add('Level1', Level1); game.state.add('Level2', Level2); game.state.add('Level3', Level3); game.state.add('Level4', Level4); game.state.add('Level5', Level5); game.state.add('Level6', Level6); game.state.add('outro', outro); game.state.add('cred', cred); game.state.add('old', old); game.state.start('loader'); game.lives = 3; game.levels = 1; game.plubs = 0; game.spawns = 0; </script> </body> </html>
  8. How make an animation play before my character dies

    How would I do this again(maybe example code) here is mine. boom.animation.onComplete(game.state.start('Level1'))
  9. PLAY TESTERS?

    Thanks!
  10. PLAY TESTERS?

    Thanks! That jumping glitch was a glitch that I just fixed, sorry. I'm working on new levels/enemies/stuff, so check back in a week and it should have a few more levels and more enemies. Also, I'll get right on the intro skip.
  11. PLAY TESTERS?

    Try this- https://preview.c9users.io/finwillwin/the_adventure_bleekofla/index.html?_c9_id=livepreview0&_c9_host=https://ide.c9.io
  12. PLAY TESTERS?

    Anyone wanna test my new game?- https://the-adventure-bleekofla-finwillwin.c9users.io/index.html
  13. I'm trying to make my character have an animation before the game resets: playerDie: function(){ if(game.lives > 0){ game.lives -= 1; player.animations.play('die'); game.time.events.add(Phaser.Timer.SECOND * 10, player.kill); }