nibzAU

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. nibzAU

    Which implementation?

    I Like this much better Thanks
  2. nibzAU

    Which implementation?

    Hey all im design a game and working on the upgrades.. stuck on 2 ideas for upgrades ** you are a mage in the game and its a tower defense type. in the game you will collect either coins or some magical thing and when you have enough you can purchase upgrades im looking at having upgrades for the Mage such as Hats (giving mana reg) Robes, giving max mana and then Staves.. the 2 ideas i have are as follows 1) You can upgrades the spell damage of your spells Bt only to your maximum Damage which is determined by the staff you have. original staff may be max 25 damage where as 2nd tier might be max 50 dmg and you cannot upgrade your spell past your staff 2) you can keep upgrading your spell and Staves give special skills like, fast mana reg, or multi hit or something else im leaning ore towards staff giving abilities cos that sounds fun but thought id ask others thanks
  3. nibzAU

    confused on objects

    Hi All Im trying to learn to build Pong whilst learning JS at the same time. I'm learning in pure js with no libraries for frameworks etc as i want to learn the JS first but im a little confused. in other languages with OOP ive used classes and it may look like this: class Paddle{ constructor(x,y,w,h){ this.x = x; this.y = y; this.width = w; this.height = h; } } player = new.Paddle(50,100,30,100); This i understand and i also understand the "i assume old" way however they created a function. is this similar to a constructor? to me it looks like the function is creating an object called p of which its properties come from the create function.. so im wondering.. do the inital x y width and height need to be there? let Paddle = { x:0, y:0, width:0, height:0, create: function(x, y, width, height) { var p = Object.create(this); p._x = x; p._y = y; p._width = width; p._height = height; return p; } } var playerPaddle = paddle.create(0, 0, 10, 100); could it be like this? let Paddle = { create: function(x, y, width, height) { var p = Object.create(this); p._x = x; p._y = y; p._width = width; p._height = height; return p; } } var playerPaddle = paddle.create(0, 0, 10, 100); OR is this line, var p = Object.create(this);, giving the properties to the "p" ??
  4. nibzAU

    Collision Detection

    Hi All, Im trying to teach myself Js by teaching myself to build a game. im not following any tutorial just thinking what i need then thinking how it may be done and testing it out...so.. its all probably completely wrong ive made a player and ground and jumping and movement. i want to be able to test other platforms now the way i have it i would need to create a test for every platform and ground but im sure there's a way i could do this with an array or loops or something.. any one give me some pointers? i dont want the answer but more of what i need to look into. Messy code: https://jsfiddle.net/3nchftvL/ thanks ** im sure my jumping is implemented badly but plan to go back and fix once i learn more.
  5. Hello All! I'm completely new to game dev, I know css and html but never really learnt JS. Been teaching myself for a little while and want to get into making games I found phaser and heard about this place so thought id sign up and come say hi... HI o/ I'm hoping to learn godot engine also but to begin, start with html5 and canvas as it looks fun so far i've written myself a choose your own adventure... engine i guess.. all i need to do is make a story and it's complete hope to see you all around and learn lots.