Milton

Members
  • Content Count

    362
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Thanks
    Milton got a reaction from jamespierce in [Solved] Website "Stealing" my Games - What can I do?   
    Maybe something like 
    if(parent && parent.document == undefined) { window.top.location.replace('http://yoursite/game'); }
  2. Like
    Milton got a reaction from fazz in Phaser 3 texture getPixels (plural)   
    If you look at the source of getPixel (https://github.com/photonstorm/phaser/tree/v3.12.0/src/textures/TextureManager.js#L907) it seems trivial to add getPixels.
    All you need to do is make sure this line gets called with x,y,width,height:
    var rgb = ctx.getImageData(0, 0, 1, 1);   Not a user of Phaser 3 yet, so maybe Rich has a more obvious solution.
  3. Thanks
    Milton got a reaction from RagingPixel in [WIP] Tetris clone   
    Wow, I'm impressed. This is so much better. Please do the colors first. Look at wikipedia for the originals.
    Also, I'm not a fan of seeing where the block would end up. It obscures my view. Most people do want this, but maybe you could have an option?
  4. Like
    Milton reacted to RagingPixel in [WIP] Tetris clone   
    I made several changes after receiving feedback:
    The sideways movement is now instant,
    spacebar makes piece drop to the bottom instantly,
    fixed a bug with the down arrow / s key
    I'm planning to add some difficulty increasing next.
     
  5. Thanks
    Milton got a reaction from blackhawx in Is it possible to get coordinates of the mouse while not pressed down?   
    Then your mouse is broken
    https://labs.phaser.io/view.html?src=src\input\pointer\move event.js
  6. Like
    Milton reacted to Antriel in 3 Minute Adventure   
    Hah  Just to be safe: it's a reference to Stanley's Parable.
    Actually none. It's a bit cumbersome with all the untyped code, but so far it hasn't slowed me down more than making good externs would. I always planned on doing them, but didn't get around it so far. The code I wrote for the TS definitions would be a good entry point though.
  7. Like
    Milton got a reaction from jamespierce in [Phaser] Mafia Pool Tricks   
    You could just transform a texture on the fly (without using a 3d engine or WebGL). I played around with that a while back. See here. Use the cursor keys to move the ball, and press X for aXes.
    The original Java code I based this on is here.
  8. Like
    Milton got a reaction from jamespierce in [Phaser] Mafia Pool Tricks   
    You could just transform a texture on the fly (without using a 3d engine or WebGL). I played around with that a while back. See here. Use the cursor keys to move the ball, and press X for aXes.
    The original Java code I based this on is here.
  9. Thanks
    Milton got a reaction from Damian Pastorini in Question about const's   
    You only need them if you rebuild Phaser itself. You could shrink the filesize by using only 1 (or even no) renderer.
  10. Thanks
    Milton got a reaction from Federayk in Problem with the Jump of player   
  11. Like
    Milton got a reaction from mapacarta in [Phaser 3] Rookie Bowman   
    Very good. A bit like Rick Dangerous, and I always liked that.
    The sprites could be more clear though. It's hard to tell what's hazardous. Especially the white rocks, and for instance in the picture above, I thought the grass were spikes...
    It's also not clear where you can fall, or where you can go left/right to a next section. When I entered the section for the second key, my 'right' key was stuck. I don't think it was my keyboard. I thought I was on a conveyor belt but after I pressed escape and continued everything was normal.
    And then there are some typos. Key instead of keys, looby instead of lobby, and probably some more. (Great word though, looby)
  12. Thanks
    Milton got a reaction from -AAG- in [SOLVED]Client having issues testing games on their staging site   
    Can't they look in their server log?
    Maybe they can't handle a space in the filename...
  13. Like
    Milton got a reaction from zelcard in [Phaser] Underworld Chaos   
    Very confusing. It says 'Y' to jump. After some time I figured out it was 'Z'.
    Also, I keep trying to climb the hanging chains, but I guess it's just decoration?
    A better 'goal' would be nice. Maybe like climbing the level to the top.
    And even if you only used 256 colors, it should look a lot better.
    Otherwise, very smooth and professional. Has potential.
  14. Thanks
    Milton got a reaction from mazoku in Gamedistribution payment and VAT   
    NL 857313915B01
    Says google...
  15. Like
    Milton got a reaction from Ninjadoodle in Laser keeps hitting enemies even though destroyed   
    Hi Ninja,
    This has nothing to do with Panda specifics.
    To become a better programmer you should understand memory...
    I grew up with assembly and C, so I guess it's not really fair, but maybe you could read some early Kernighan and Ritchie book.
  16. Like
    Milton got a reaction from Ninjadoodle in Laser keeps hitting enemies even though destroyed   
    I didn't understand erase either, so what did I do. I went to the panda github, looked how erase was defined, and it's just a splice helper.
    That means it alters an array. And thus messes up your spinvaders.length, and your index. Try to figure out the next and last index when you remove something inbetween...
    Javascript is very forgiving, in compiled languages this would give at least an out of bounds, and probably a segment violation error.
  17. Like
    Milton got a reaction from Ninjadoodle in Laser keeps hitting enemies even though destroyed   
    Having a 'for' loop while removing elements seems dodgy...
    Try iterating in reverse.
  18. Sad
    Milton reacted to PixelPicoSean in HTML5 export of Unity flappy bird is 714KB?   
    That 72K is not size of the "core", but a complete flappy bird game. So the package already includes 2D and sound support at least, which is already usable for me. The only thing is to find how to integrate JavaScript SDKs.
  19. Like
    Milton got a reaction from Hemanthraj in how to make bingo game using phaser   
    It's not actually  That would be keno. Bingo is only about buying cards. No user input required (only when you fork over the money).
  20. Thanks
    Milton got a reaction from Andrey Zimin in The syntax of the engine   
    I think the main 'problem' is that Factory methods are capitalized. JS doesn't really lend itself well for that. You have to know that Zero is not a class...
    It would be simpler if you could 'new' everything that starts with a Capital, since you can be sure it's a class.
  21. Confused
    Milton reacted to Andrey Zimin in The syntax of the engine   
    I know!
  22. Sad
    Milton got a reaction from Andrey Zimin in The syntax of the engine   
    You use 'new' to instantiate an object. A 'Zero()' or 'CreateSphere()' is not an object. They are static functions.
  23. Like
    Milton got a reaction from Ninjadoodle in Bullet (or similar) in P2?   
    ccdSpeedThreshold?
  24. Like
    Milton got a reaction from cpu_sam in How can I anyone make money with just programming with Phaser?   
    Why, thank you. I like to think of myself as a bit of a philosopher
    I've been on the employer side (not in game dev) several times,  just relaying my experiences...
  25. Like
    Milton reacted to cpu_sam in How can I anyone make money with just programming with Phaser?   
    Man, you have reason. I never put my games on the web it's just because of my perfectionism, like the games are incomplete I think that it's not good enough hehehe. Well, I will put them on github another hour, even incomplete I'm planning to finish them some day. Thank you. Oh, and my games are made with my own engine named Chora  Engine, chora means cry in English, just a playing with of Cry Engine