Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by michaelcalkins

  1. Update on progress for any future googlers: Still needs tons of work but the plugin code is here: https://github.com/michaeljcalkins/arcade-polygons-plugin
  2. Thank you for the new google terms found: https://github.com/hexus/phaser-sat-example Going to run with this!
  3. We want to make our maps using polygons but in an arcade physics game using custom collisions somehow. Everything in our game is a basic rectangle except for the maps and we are trying to get optimal performance by only detecting collisions between rectangles and polygons. We tried: Box2D but this would require a game rewrite for a small segment of desired functionality and less performance arcade-slopes-plugin but we are wanting to make maps faster and scaling tilemaps is buggy I'm currently studying the arcade-slopes-plugin to figure out what we need to do. A
  4. @Nicolai I'll do my best to explain clearly, I'm new to this MMO game dev. Networking Player pushes button and the game reflects their player's position immediately Every frame we send the player's current position to the server (60 times per second) Our server validates that data and then updates that player internally Our server has a loop that sends an update of all players 20 times per seconds When you receive the game loop event your local game now knows about new and disconnected players, creating and destroying sprites (ideally would be reusable s
  5. I've had a few people mention this now. We'll definitely take it into consideration, thanks for the heads up!
  6. What do you mean the respawn ruined the game? Do you have any preferred methods for choosing weapons?
  7. This is the first time I've attempted something like this, any good examples that would point me in the right direction would be most helpful!
  8. I'm trying to program the scale and resize behavior you find in http://diep.io. Currently I'm doing the following which adds horizontal or vertical bars. this.scale.scaleMode = Phaser.ScaleManager.USER_SCALE var scale = Math.min(window.innerWidth / this.game.width, window.innerHeight / this.game.height) this.scale.setUserScale(scale, scale) window.onresize = () => { var scale = Math.min(window.innerWidth / this.game.width, window.innerHeight / this.game.height) this.scale.setUserScale(scale, scale) } Which looks like:
  9. They were not before but I just learned how to use atlas JSON in phaser and it worked!
  10. I can't believe I wasn't using that before. It's fixed now
  11. I just saw that in when I found where the console was in Firefox. At least I know what the error is now. hahah not stupid extremely valid and I did many times just in case. The image in question is 10,800x329. I can reduce this in size because I think I scale down atm.
  12. Hmmm still getting this in Firefox only... @rich Possible phaser bug?
  13. I develop locally and push to the server. There are some race conditions happening that I haven't nailed down yet. Likely a sprite didn't load in time when I "started" the game.
  14. This game rocks man! One thing is that your NPC's don't lead their shots so I simply go all the way left and all the way right they never hit me because they only shoot at where I was.
  15. @VitaZheltyakov PC at first very a long while and eventually ported to mobile.
  16. @Cudabear I meant pixels for map size. Do you know if you can utilize the AABB system for most of the game objects and just use the Box2D polygon shape to draw the map around it? (like the image I linked above)
  17. I'm wondering if it's possible to run a multiplayer Box 2D game while remaining very performant. Game characteristics: 2d platformer shooter Online multiplayer Map is about 4000px x 2500px 6 - 10 players at a time NodeJS and Socket.io Right now I create the maps with lots of rectangles but I'm interested in creating arenas similar to Soldat example here The Arcade physics are highly performant and if I switch to Box2D how significant is the performance difference? Are there any stress tests out there that demonstrate this?
  18. Sometimes that's how you have to start out xD
  19. I had a lot of fun with this game but we were having issues with performance/lag (?) that made it hard to move around smoothly. I think you're onto something here but it needs more maps or something. Keep going at it!
  20. So much fun man! Good job If you shot the asteroid that exploded and killed them you get points for that Rotating your ship using your mouse just like slither.io Make shooting be your left click button There is literally no point to killing small asteroids because the big ones give you almost 1000 points while small ones give you about 270 Give the game some character! Add some sprite images for the asteroids and ships
  21. I would either dumb down your rockets, make them harder to get, or make it more accessible to everyone. One guy controlled the whole server because I couldn't find ammo for guns anywhere. Well done game!
  22. No sprite atlas just a spritesheet. Preload this.load.spritesheet('commando', '/images/commando.png', 300, 315) Create this.player = this.add.sprite(spawnPoint.x, spawnPoint.y, 'commando') this.player.scale.setTo(GameConsts.PLAYER_SCALE) this.player.anchor.setTo(GameConsts.PLAYER_ANCHOR) this.player.height = 91 this.player.width = 94 this.player.debug = true // We need to enable physics on the player this.physics.arcade.enable(this.player) // Enable physics on the player this.game.physics.enable(this.player, Phaser.Physics.ARCADE)
  23. The black boxes happen in Firefox but not in Chrome! The black box is supposed to be pants. Any ideas what this is?
  • Create New...