Jump to content


  • Content Count

  • Joined

  • Last visited

About none-9999

  • Rank
    Advanced Member
  • Birthday 01/02/1999

Profile Information

  • Gender
  • Location

Recent Profile Visitors

2772 profile views
  1. hi for all, mi game has been accepted
  2. The same thing happens to me, and that without using any framework and having an emphasis on optimization (pool objects, bitwise etc)
  3. Hello everyon
  4. Hi, center in all orientation/resolutions. var ancho=1920;//width var alto=1080;//height function rPantalla() { var gameWidth = window.innerWidth; var gameHeight = window.innerHeight; var scaleToFitX = gameWidth/ancho ; var scaleToFitY = gameHeight/alto ; var currentScreenRatio = gameWidth / gameHeight; var optimalRatio = Math.min(scaleToFitX, scaleToFitY); if (currentScreenRatio >= 1.77 && currentScreenRatio <= 1.79) { //16/9 aspect canvas.style.width = gameWidth + "px"; canvas.style.height = gameHeight + "px";
  5. here the advice to user to rotate device function setOrientation(){ if(window.innerWidth > window.innerHeight){ //device is landscape canvas.style.display="block"; imagePleaseRotateDisplay.style.display="none"; //resume the game }else if(window.innerHeight > window.innerWidth){ //device is portrait canvas.style.display="none"; imagePleaseRotateDisplay.style.display="block"; //pause the game } } window.addEventListener("resize", function () { setTi
  6. Yes, I already know nodejs and babylonjs, but I want to take the course, to see what approach you give, And if you do that part would be wonderful, greetings.
  7. bought it. I hope the course has the part of creating game rooms, which has given me so much headache nodeJS
  8. In about 2 months ... it will be over. It was for the dream build play but I could not finish it by a lot of work .. Here I upload the development progress https://web.facebook.com/DiyoGames/
  9. Hi, 0.9 was a random value, if I had placed 0.5, it would go out of the screen to the right and I no longer heard any touch event. "engine resize" is why that function is called when starting (body onload) so it is inside that if. There is only one canvas .. in the DOM, (and a button for fullscreen) thank you very much.
  10. many thanks, It helped me a lot, I had rotated the camera and that's why I moved in two directions at the same time ...
  11. I need to create the "radar screen" to locate asteroids and ships, but I can not understand how coordinates systems work in BabylonJS. When the game starts, the ship is at 0,0,0 after moving on the x axis, (or what I believe was moving on that axis). How is it possible for the z-axis values to change? Note: I do not move on the y axis. At what point did I move 145 units on the Z axis? What am I doing wrong ? In the second image you can see the options that I have tried .. and i tried this too
  • Create New...