Jump to content

Search the Community

Showing results for tags 'states.'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi there, being new to JS and game development I have two questions (I'll create a post for each) regarding a implementation of Frogger I'm working on. Part of the images are taken from Udacity's OOP JS course, though I'm not enrolled in the program anymore (so you're not helping me cheat). 1. In order to provide accurate scaling I use a scaling factor that I multiply image sizes with, e.g. var gameWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) / 2.5;var gameHeight = gameWidth * 1.25;var scalingFactor = gameWidth / 800; //build for 800px width, actual screen-size via scalingvar rockBarrier = world.create(game.world.randomX, positionY, 'blockRock');rockBarrier.scale.set(scalingFactor);Yet collision does not scale in the same way, e.g. my player is ~80 px away from the rock and hits an invisible wall, same goes for collecting bonues (gems in my case) the collision function is triggered before my character actually touches the gem. The whole code-base can be found here: https://github.com/MaxSchumacher/Frosch Any advice on how to fix this would be highly appreciated. Greetings, Max
×
×
  • Create New...