Clickys

Members
  • Content Count

    11
  • Joined

  • Last visited

  1. Greetings guys, Is there any good book for new starter for babylon js ? Or any good video series ? Thank you
  2. Greetings, Iam confused a bit to the global objects of phaser . Lets say in a browser , when we type this we know that it refers to windows . Iam follow a phaser udemy series , and iam confused on the 'this' keyword . var game = new Phaser.Game(640, 360, Phaser.Auto); var gameState = { preload: function(){ this.game.load.image('background','assets/images/background.png'); }, create: function(){ this.background = this.game.add.sprite(0,0, 'background'); }, update: function(){ } }; My first question is, from where does the new gameState obj inherits its methods and properties, and where does the gameState belong to ? ? Is there any tutorial of explaining the global objects in phaser and the hierarchy ? Its a stupid question but iam beginner and iam confused
  3. Clickys

    Phaser Books

    thankyou for your answers
  4. Clickys

    Phaser Books

    i know JS (not advanced JS ) , there are some concepts in the phaser api iam getting confused
  5. Clickys

    Phaser Books

    Are there any good books to learn Phaser for beginners ?
  6. Clickys

    Sprite Groups

    ok i found out why, i added the code at the start of create() instead at the end . But why does it matter if is at the start or the end ?
  7. Clickys

    Sprite Groups

    180 "chicken" main.js:28 180 "horse" main.js:28 180 "pig" main.js:28 180 "sheep" Should i add the images as sprites ? Because i only load the images
  8. Clickys

    Sprite Groups

    Greetings , I load my images at preload function() , And in create function() i created an array of objects var i created a group called animals and i want to iterate through my array animalData Only one animal is appearing the pig . Does anyone have any idea why othe animals are not appear ?
  9. Clickys

    Phaser API

    Greetings fellow coders , I recently started to use the phaser . Iam having trouble understand the API of the framework .(Iam new to js btw) . I will give you an example what i mean , i was following a tutorial about changing the scale of a sprite. The teacher wrote down sprite.scale.setTo(1); , and because i want to learn things i went through the phaser api -> sprites -> properties and i was searching for scale property but i couldn't find it . Its nowhere , and then after a lot of time i found out that phaser is inherits a lot of properties from PixieJs so i found it here http://www.goodboydigital.com/pixijs/docs/classes/Sprite.html#property_scale . So what should i do ? I mean how iam gonna learn the phaser framework when the manual is incomplete? Should i use both docs from pixie and phaser ?
  10. Greetings, Iam new to javascript, i recently learnt about basic javascript concepts as well as jquery . But iam consider newbie to javascript . I really want to learn to develop 2d games , and i start watcing some udemy series about phaser . Do you think its worth buying the pdf book from https://www.discoverphaser.com/ ? Thank you