Langerz82

Members
  • Content Count

    57
  • Joined

  • Last visited


Reputation Activity

  1. Thanks
    Langerz82 got a reaction from John swana in [Beta] Retro RPG Online 2   
    We use socket-io to parse messages back and forth from the server. 
    We have currently one server, and each map is an instance containing the players and monsters. This is so less traffic is needed to maintain the world state.
    It uses what I call a message pump to avoid packet flooding the client in the initial packet and map changes.
    The renderer re-uses its previous render in optimized mode and loads only the new edges and in smaller screens which are then scaled to fit the user window.
    Checkout the open client for more information.
     
    Just thought I'd update the Player User Interface has had an overhaul and the window backgrounds are pure html/css without images (except the close buttons).
    I have yet to update the NPC windows as they will require more complex adjustments particularly for lower resolution devices.
    Enjoy!

     
  2. Like
    Langerz82 got a reaction from mattstyles in 2D Overhead - Randomly Generated Maps   
    Hello,
    The methods I used are here:
    https://gist.github.com/Langerz82/d4d4291d7aa9d846ed64ab1bb27a9142
    Apologies on the lack of documentation as I am still coding it. Basically each map object needs a array of the tiles it going to use. Then apply the right function to it. The first function supports erosion which removes the underlying tiles for optimization purposes. After the map is generated I simply loaded it in Phaser and bam new map.
    I'm going to use this code to support Retro RPG Online so it will have a massive amounts of maps. You still may need to tweak the map generator to get your desired results especially the avoiding placements of Objects with other layers. If anybody creates a working dungeon generator please share it, as that is the next thing I will be working on after I get some more resources put into the maps so they are more dynamic.
     
     
  3. Like
    Langerz82 got a reaction from PBMCube in PhaserQuest - Roleplay Mod   
    PhaserQuest - Roleplay Mod.
    This is a version of PhaserQuest with RPG elements in it such as levelling and an equipment system. Many thanks go to the original developer of PhaserQuest and of BrowserQuest for the assets.
    Play the Demo Here:
    http://vps128058.vps.ovh.ca:8081/
    Note 2 - You also need to be level 2 to equip the next beginner sword. The dialog is missing for now.

  4. Like
    Langerz82 got a reaction from hoskope in Collision doesn't work, tiled map and phaser   
    Hello,
     
    At the bottom the tutorial says:
    A nasty errorIf your game does not work and the following error appears on the console (e.g. Firebug):
    "TypeError: Argument 1 of CanvasRenderingContext2D.drawImage could not be converted to any of: HTMLImageElement, HTMLCanvasElement, HTMLVideoElement."
    it could mean that one tile from the 3rd tileset image (used for collision) was accidentally placed on a visible layer. As we didn't load this image in the Phaser preload function, of course Phaser cannot display it. Tiles can be accidentally placed on the wrong layer easily in Tiled, because Tiled allows to paint on invisible layers. Further more accidentally painting an invisible tile from an image we didn't load in Phaser can easily lead to this error. Inspecting the tilemap JSON file can help to debug if you run into this issue.
     
    Source: http://talestolduntold.blogspot.co.at/2015/06/tilemaps-with-invisible-collision-layer.html
     
    Not sure if you checked this out or not but figured its worth a mention.
  5. Like
    Langerz82 got a reaction from Tilde in Arcade Physics follow the player   
    Whats the function to get enemies to follow the player?
     
    We have:
    http://phaser.io/examples/v2/arcade-physics/move-towards-object
     
    But it follows the pointer only.
     
    Is there a function like:
    game.physics.arcade.moveToSprite?
     
    Example:
    balls.forEach(game.physics.arcade.moveToSprite, game.physics.arcade, player, 200);  ??
     
     
  6. Like
    Langerz82 got a reaction from Nicholls in Legend of Zelda Style maps/scrolling   
    Hey Reinami,
     
    Checkout BrowserQuest the map has edges like you describe and is a JSON file (or can be converted cant remember). 
    https://github.com/mozilla/BrowserQuest
    Its a good map to work off for what you want.
     
    Anyway I'd love to see your progress and would be interested in helping if you intend on creating inventory and quest system and perhaps in future multiplayer support.
  7. Like
    Langerz82 got a reaction from Eraph in New Example - P2JS Asteroid Movement   
    I belive this example would be helpful for allot of P2JS Users. I couldnt find a similar example to work with so I figured i'll save people some time.
     
    Here it is:
    http://langerzgames.hostoi.com/AsteroidsMovement.htm
     
    Note - A 90 Degree ship sprite shift is needed for this to work.
     
    AsteroidsMovement.htm

  8. Like
    Langerz82 got a reaction from Eraph in Disable Browser Keyboard Shortcuts   
    I found this it may help:
    http://stackoverflow.com/questions/24764626/any-way-to-prevent-disable-ctrl-key-shortcuts-in-the-browser
     
    Basically my understanding is Ctrl+W is reserved for chrome so its a bad combination.
     
    Just wondering, how come you are using ctrl and not something else for firing, using the left-ctrl with the little finger tires out after awhile and from a usability perspective may not be the best choice.
  9. Like
    Langerz82 got a reaction from Nicholls in How to set italic and bold words with position?   
    It's a bit of a bug I think the text renderer is clipping the end. If you add two spaces on the end you can see the exclamation mark.
  10. Like
    Langerz82 got a reaction from Tilde in Getting the username from the server.   
    Sure is, look at:
    http://papermashup.com/read-url-get-variables-withjavascript/
  11. Like
    Langerz82 got a reaction from AmAuron in Getting the username from the server.   
    Sure is, look at:
    http://papermashup.com/read-url-get-variables-withjavascript/
  12. Like
    Langerz82 got a reaction from semk in New Example - P2JS Asteroid Movement   
    I belive this example would be helpful for allot of P2JS Users. I couldnt find a similar example to work with so I figured i'll save people some time.
     
    Here it is:
    http://langerzgames.hostoi.com/AsteroidsMovement.htm
     
    Note - A 90 Degree ship sprite shift is needed for this to work.
     
    AsteroidsMovement.htm