• Content count

  • Joined

  • Last visited

About Kosmoon

  • Rank
  • Birthday July 23

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  • Interests
    Coding, sports, music

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Kosmoon

    Bruh.io - Battle Royale in your browser!

    awsome game very well made!
  2. Kosmoon

    Firefox Slow FPS

    it happens to as well with firefox only, it drops to 30fps randomly (rather rarely, i would say 1 chance on 20), if i unfocus the window and come back it comes back to 60fps.
  3. Kosmoon

    Creating multiple popups with too many functions?

    function windowCloserOpener(_window,action){ if ((tween && tween.isRunning) || _window.scale.x === 1){ return; } if (action === 'open'){ tween = game.add.tween(_window.scale).to ( { x:1, y: 1}, 1000; Phaser.Easing.Elastic.Out, true); }else if (action ==='close') { ...... } } //and then make the callbacks like that: popup2.events.onInputDown.add(function(){windowCloserOpener(popup2,'open')},this); // you need to call your function in another function in order to pass it parameters
  4. Kosmoon

    Make Graphic into Sprite

    i wanted to achieve the same thing not long ago, here is how i did it, there is maybe a better way but i did not find any in documentations: to place the new texture at the right place, we need the good top left coordinates. so we need to find the point with the lowest X in the graphic shape, and aslo the point with the lowest Y. here is the array of points of the graphic: yourGraphic.currentPath.shape._points let say i put this array in a G variable. the even indexs in this array represent all the X coordinate of the points, and the odd indexs represents the Y coordinate of the points. i wrote two functions to make new arrays: xPoints and yPoints, and then i aplly the reduce function (its a global javascript array function that takes another function as parameter) to obtain the minimum number of each array, and VOILA you have the coordinate to the new texture: function evenIndexArray(array){ let newArray = []; for (let i = 0; i < array.length; i++){ if (i%2 === 0){ newArray.push(array[i]) } } return newArray; } function oddIndexArray(array){ let newArray = []; for (let i = 0; i < array.length; i++){ if (i%2 !=0){ newArray.push(array[i]) } } return newArray; } xPoints = evenIndexArray(G); yPoints = oddIndexArray(G); function minSearch(a,b){ if (a>b){ a=b; } return a; } textureX = xPoints.reduce(minSearch); textureY = yPoints.reduce(minSearch); the problem with this method is that you need to reajust according to your lineWidth: yourNewTexture = game.add.sprite(textureX - yourGraphic.lineWidth, textureY - yourGraphic.lineWidth, yourGraphic.generateTexture());
  5. Kosmoon

    Sprite flickering

    my guess: Try to see if you have your platform set to sprite.body.moves = true when it actually is not moving, or immovable or anything that makes it not moving. Or if you have a manual Y replacement of the player 1 or 2 pixel too much, Or try to set player.body.velocity.y to 0 when colliding platform.body.top.
  6. maybe playing with game.camera.bounds.x / game.camera.bounds.y and game.camera.scale.x / game.camera.scale.y will do the job.
  7. wow, i have finally solved this! after 2 days of struggle, battling with my code, all for nothing, it was my antivirus software: AVAST. Never use this antivirus with phaser it broke the loading process! xhr requests taking forever. I realised that the game worked on my neigbour's computer, that's when i understood the problem was coming from my computer and i could search elsewhere than in my code. note that this guy was right: thank's for the reply, i feel so relief right now. but it also makes me worry a bit for my future players, is there a way to avoid this issue without desabling the antivirus?
  8. The game works perfectly on local server, however when i put it on a web server, it get stuck at 80% progress the first load attempt, if i refresh 1 or 2 times it finnally works (i think the audio finally loads thanks to the web cache), this issue is on every brower, i have my game made in states, i think the structure is good, i dont understand. only one "game.load.audio" line (even if the audio is less than 10Ko) make the loading stuck. if i erase this "game.load.audio" line, it loads fine... I have the progress function so i can see that it get stuck at the same point of the loading and the create function is never triggered unless i refresh a few times. No error appears in the console, it's just stuck at around 80% (i m monitoring the progress parameter of "onFileComplete" in console). I have tested several audio files, i tryed .ogg .mp3 .. always the same issue. I tryed opera, edge, firefox, chrome, i tryed raspberry pi web server, and OVH web server. edit: i have watched the network panel of brower's developer tools, and some files stuck at "pending" state, this happens on both my home web server and a hosted web server, but never on localhost. if i wait 2 or 3 min, it finally loads, or if i refresh.
  9. Kosmoon

    Ball genius [android]

    Hello everybody! I'm proud to showcase the first game of my new compagny from france. you need accuracy and reflexion to complete all levels, each chapter brings a new element of gameplay. You can hope for gold medal if you do the less bounces possible. gold medals = new skins. i've made a website with a demo of the game: www.kosmoon-studio.com and you can download the full game for free on the play store: Ball Genius thank's in advance for playing you can mail me at: ballgenius@kosmoon-studio.com
  10. Kosmoon

    Kickin' It : with freestyle masters

    lol nice idea i can see it having good success on mobile, it's simple but addictive
  11. Kosmoon

    [WIP][Phaser] They Are Everywhere!

    good luck on that project, that looks cool, we need to see more to know more about the gameplay but its graphicaly attractive . I understand you on the "cool part" of being solo dev, it's exactly the same for me, i'm working alone too and will showcase it soon, versatility kills boredom. sorry for my english i google translate some words
  12. Kosmoon


    what a great idea, fast game worked perfectly, i quickly got the gameplay, great work!
  13. Kosmoon

    [Phaser] Copter Rescue

    this is a great game, addictivly good, nice job
  14. Kosmoon

    [Phaser] Learn Japanese with games!

    magnificent idea!
  15. nice concept!