Jump to content


  • Content Count

  • Joined

  • Last visited

About coelacanth

  • Rank
  • Birthday March 25

Profile Information

  • Gender

Recent Profile Visitors

1214 profile views
  1. Hi, is it possible to create a bit complex game (with any of frameworks pixi, phaser, babylon etc) like Darkest Dungeon, Dead Cells , UnEpic or Moonlighter and what would the limitations be? Or it's better to start with a specific game engine?
  2. Everything is ok there. I still get this error.
  3. I followed this https://phaser.io/examples/v2/loader/load-tilemap-json
  4. Here is the code from an example. I have separte tiles images. <!doctype html> <html> <head> <script src="phaser.min.js"></script> </head> <body> <script> var game = new Phaser.Game(1024, 1024, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create }); function preload() { game.load.tilemap('map', 'bsdmap.json', null, Phaser.Tilemap.TILED_JSON); game.load.image('terrain', 'terrain.png'); game.load.image('p1', 'p1.png'); game.load.image('p2', 'p2.png'); game.load.image('bg_tile', 'bg_tile.png')
  5. I've found all my mistakes. Thanks to everybody.
  6. var game = new Phaser.Game(1024,768,Phaser.AUTO, 'space game', {preload: preload, create: create, update: update}); var ships; var ship; function preload(){ game.load.image('spaceship', 'assets/spaceship_sprite.png'); game.load.image('menu', 'assets/menu.png'); } function create(){ ship = game.add.sprite(500,680, 'spaceship'); game.physics.arcade.enable(ship); ship.scale.setTo(0.5,0.5); //ship2 = myship(game, 'spaceship', 600, 200); ships = game.add.group()
  7. Thank you! I even didn't know that I also can use "red", "black", or change my color to something like "rgba(0, 0, 255, 0.5)". I'm very new to js.
  8. Hello, guys could you explain it to me, why does the fillStyle in the drawPlayer function affects the grid too? var canvas = document.getElementById("MyCanvas"); var ctx = canvas.getContext("2d"); function drawGrid() { for (var i = 0; i <= canvas.width; i = i + 32){ ctx.beginPath(); ctx.rect(0+i, 0, 2, canvas.height); ctx.fillStyle = "#F620"; ctx.fill(); ctx.closePath(); } for (var j = 0; j <= canvas.height; j = j + 32){ ctx.beginPath(); ctx.rect(0, 0+j,canvas.width, 2); ctx.fillStyle = "#F620"; ctx.fill();
  • Create New...