Jump to content

Search the Community

Showing results for tags 'phaser not defined'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi there, so i built a fairly functional open world multiplayer game, however, when I first started building it, i built it as a singe player game and set up the variables and things i will need to be sent from the server in a way that it will easy to be converted into multiplayer. Today I dove into that adventure and right off the bat I am having issues with phaser and nodejs. To be insanely clear because any other thread I have found about this topic thinks everyone wants to do this, I do NOT want to run phaser on the server side, I just want to be able to use socket.io in my game and I cant right now since my game wont even load. This is the error it throws when I load my page, no matter what I do, always "Phaser is not defined" GET http://xxx.xxxx.xxx/assets/phaser.js 404 (Not Found) (index):214 Uncaught ReferenceError: Phaser is not defined My server that I am running on node: var express = require('express'); var app = express(); app.use(express.static('public')); app.get('/', function (req, res) { res.sendfile(__dirname + '/index.html'); }); app.listen(80, function () { console.log('Example app listening on port 80!'); }); I removed socket.io from it until I can actually get my index.html to load. I believe i have to use static directories, and I believe it works because I can load all the images from my assets directory (where phaser.js is) fine form my browser. In my index.html, phaser is called in my header as shown: <script type="text/javascript" src="assets/phaser.js"></script> Am I doing something wrong? ANY help is appreciated. I dont care how I get to the end product, I just want to be able to have a server side connection from every client to send and recieve variables on connection/disconnection. Before I switched to node, I was just using an apache server to run my index.html. Thanks for any help! P.s: Could this be a problem with express? I havent tried it with a standard node http server.
×
×
  • Create New...