• Content Count

  • Joined

  • Last visited

About m4rk2s

  • Rank

Contact Methods

  • Website URL
  • Twitter

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. The same question was asked before here
  2. THX @samme I've tested it but it won't work
  3. Hi, i have some assets (on dropbox) that i've found on the internet and i want to have them online like what did @samme on jsdeliver this way do you have any idea on how to do it preload: function() { game.load.baseURL = 'https://cdn.jsdelivr.net/gh/samme/phaser-examples-assets@v1.0.0/'; game.load.crossOrigin = 'anonymous'; game.load.image("bar", "sprites/zelda-life.png") }
  4. Hi, Why it says loading but it just displays an image
  5. m4rk2s

    code not understood

    it's bizarre i've seen something like this one day that takes the game instance in parameter but the right syntax is game = new Phaser.Game(800, 600); and after in the function parameter you can add more stuff, then you go on the definition of the functions like preload, create and update
  6. I have actually a bad wifi connection i don't know if this pen could help i also need to understand the scaling problem for games i want to port to smartphones
  7. i think that a correct definition of discord is that it's a place for gamers to discuss about a specific game, i have been banned one day from GiTS First Assault discord because i was saying the truth to some gamers that doesn't know what means a weapon and its dangers to speak IRL like they were doing, one of them was speaking like a crasy guy and completely idiot about his weapons so the ban was just for no reason, and the guys were really stressed with what they were doing because it has completely no sense to speak like they were doing on it, it was just like they completely lost their minds
  8. very funny game i really like it it's like f you can understand how to play other games like this
  9. I want to add dialogs in my game sor here is the code for the canvas i am using it's here var ChoiceState = function() {}; ChoiceState.prototype = { init: function() { this.stage.backgroundColor = '#b70eec' this.fontsReady = false this.game.stage.smoothed = false }, fontsLoaded: function() { this.fontsReady = true }, preload: function() { }, create: function() { this.game.world.setBounds(0, 0, 160, 144) this.question = this.game.add.text(this.game.world.centerX, this.game.world.centerY - 30, 'What is the matrix ?', { font: "8px 'gameboy'", fill: '#000'}); this.question.anchor.setTo(0.5); this.bluePill = this.game.add.text(this.game.world.centerX, this.game.world.centerY + 6, 'Blue Pill', { font: "6px 'gameboy'", fill: '#000'}); this.bluePill.anchor.setTo(0.5); this.redPill = this.game.add.text(this.game.world.centerX, this.game.world.centerY - 6, 'Red PILL', { font: "6px 'gameboy'", fill: '#000'}); this.redPill.anchor.setTo(0.5); this.upBtn = this.game.input.keyboard.addKey(Phaser.Keyboard.UP); this.upBtn.onDown.add(() => { //starts this state console.log("up"); }, this); this.downBtn = this.game.input.keyboard.addKey(Phaser.Keyboard.DOWN); this.downBtn.onDown.add(() => { //starts the other state console.log("down"); }, this); } }
  10. thank you but it does the same thing like with only one click is the second argument (or parameter) doubleclick make a difference ?
  11. Hello everyone, is it possible to have to click twice for each tween here are the assets https://github.com/aneurycasado/Dominos-Para-Los-Dominicanos-No-Server/tree/master/images/Dominos var a, b playState = { init: function(){ game.device.desktop, game.scale.pageAlignHorizontally = !0, game.scale.pageAlignVertically = !0, document.body.style.backgroundColor = "#CCCCCC", game.stage.backgroundColor = "#000", game.physics.startSystem(Phaser.Physics.ARCADE) }, preload: function() { game.load.image("46", "assets/[4,6].png") game.load.image("16", "assets/[1,6].png") }, create: function() { this.init() game.world.setBounds(0, 0, 800, 600); a = game.add.image(100, 500, "46"); a.scale.setTo(0.3) a.anchor.set(.5, .5); b = game.add.image(700, 300, "16"); b.scale.setTo(0.3) b.anchor.set(.5, .5); // Mouse click events this.game.input.onDown.add(this.translate, this); this.game.input.onDown.add(this.rotate, this); }, translate: function(pointer){ var c = game.add.tween(a).to({x: 400, y: 300, angle: 0, alpha: 1}, 1000, "Quad.easeInOut", true, 1000); }, rotate: function(pointer){ var c = game.add.tween(b).to({angle: 45}, 2000, Phaser.Easing.Linear.None, true) } }, game = new Phaser.Game(800, 600); game.state.add("play", playState), game.state.start("play");
  12. this is what i want to do : just rotating the 14 domino and when it's okey it does something
  13. thank you @squilbob it seems that i get this error Error: Phaser.Signal: listener is a required param of add() and should be a Function.