khleug35

Members
  • Content Count

    149
  • Joined

  • Last visited

  • Days Won

    3

khleug35 last won the day on August 27 2019

khleug35 had the most liked content!

About khleug35

  • Rank
    Advanced Member

Recent Profile Visitors

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

  1. Waaaaaa!! Great Job!!!!!!!!!!!!! Thank you very much !!!!!!
  2. Enpu did an amazing job on it!!! Please check https://www.panda2.io/releasenotes 1.7.0 Added play and pause buttons to game view Added "Screenshot folder" to settings Added "Show console messages" option in settings for remote devices Added HTTPS support Added VR support Added WebXR (Virtual Reality) emulator Added "Duplicate project" button to projects list Updated Electron to 6.1.8 Updated engine to 2.14.0 Fixed remote device always starting with debug panel visible Fixed dropping new module file not updating files sidebar
  3. one of my way create a virtual on-screen keyboard(button) like this game http://mindfrog.ffx.it/
  4. Anyidea??? skill not work
  5. hi Sorry to say not....... only for real keyboard
  6. @Hosh Try this example, simple way to make player input his name Control: Keyboard: input you name Enter: Enter your name (only input number and alphabet ) game.module( 'game.main' ) .body(function() { game.createScene('Main', { init: function() { this.Name = []; this.InputField = new game.SystemText('Enter Name:'); this.InputField.size = 30; this.InputField.addTo(this.stage); this.YourName = new game.SystemText(''); this.YourName.position.y = 50; this.YourName.size = 30; this.YourName.color = 'yellow'; this.YourName.addTo(this.stage); }, keydown: function(key) { if(key === "BACKSPACE" || key === "DELETE"){ this.Name.pop(); }else if(key === "ENTER"){ this.YourName.text = "Your Name: " + this.Name.join(""); } else if(window.event.keyCode > 48 && window.event.keyCode <90){ this.Name.push(key); } this.InputField.text = this.Name.join(""); } }); }); Hope can help
  7. Hello , Are you planning to add online leaderboard or offline leaderboard??? about offline You can try localStorage to save the score. https://www.panda2.io/docs/api/Storage https://www.panda2.io/examples#storage-get about online, you need to use server side programming languages if your game export to mobile device, you can integration Google play services hope can help
  8. Really Great Work, Thanks enpu
  9. @enpu Nice work, very surprised to see you back
  10. @Stephan @Wolfsbane Thank for comment😀😀😀 About is it better as a module?....... ask him is better 😀 @enpu
  11. Hello, I would like to add small update to the System Text in text.js in order to make it have New Lines like <br> and typewriter-effect like RPG dialogue. Demo. new game.SystemText('Lorem ipsum dolor sit amet,\nconsectetuer adipiscing elit. Sed posuere interdum sem.\nQuisque ligula eros ullamcorper quis,\nlacinia quis facilisis sed sapien.\nMauris varius diam vitae arcu.\nSed arcu lectus auctor vitae,\nconsectetuer et venenatis eget velit.'); if the text includes "\n", it become line breaks like <br> and user enable typing_effect = true; the text have typewriter-effect like RPG dialogue. First, render\text.js Add typing_effect varable. game.createClass('SystemText', 'Container', { ... /** Enable typewriter-effect @default false **/ typing_effect: false, i: 1, ... Add the following code, when user type "\n", it can do line break effect var lines = this.text.split('\n'); //Check New Lines for (var i = 0; i<lines.length; i++){ context.fillText(lines, 0, (i*this.size) ); _renderCanvas: function(context) { var wt = this._worldTransform; var ths = this; context.globalAlpha = this._worldAlpha; context.setTransform(wt.a, wt.b, wt.c, wt.d, wt.tx * game.scale, (wt.ty + this.size) * game.scale); context.fillStyle = this.color; context.font = this.size * game.scale + 'px ' + this.font; context.textAlign = this.align; if(this.text == undefined){ context.fillText(this.text, 0, 0); }else{ if(this.typing_effect){ //Enable Typewriter-effect var lines = String(this.text.substr(0, this.i)).split('\n'); if(this.i <= this.text.length){ this.i++; } }else{ var lines = this.text.split('\n'); //Check the text include '/n' } for (var i = 0; i<lines.length; i++){ context.fillText(lines[i], 0, (i*this.size) ); } } } Main.js Enable typing_effect this.text.typing_effect = true; game.module( 'game.main' ) .body(function() { game.createScene('Main', { init: function() { var ths = this; this.text = new game.SystemText('Lorem ipsum dolor sit amet,\nconsectetuer adipiscing elit. Sed posuere interdum sem.\nQuisque ligula eros ullamcorper quis,\nlacinia quis facilisis sed sapien.\nMauris varius diam vitae arcu.\nSed arcu lectus auctor vitae,\nconsectetuer et venenatis eget velit.'); this.text.size = 50; this.text.font = 'serif'; this.text.color = '#ffffff'; this.text.typing_effect = true; //Enable typewriter-effect this.text.x = 10; this.text.addTo(this.stage); // this.text.text = 'Hello\nPanda'; }, update:function(){ } }); }); Could you update this @enpu? my code may be not good or more hardcode or not the best solution to achieve , Welcome to give me a feedback to improve my coding skill, Thanks text.js
  12. Did Phaser Editor have Code obfuscation function? Can it possible to export a phaser project that making the obfuscated code? Thanks https://phasereditor2d.com/
  13. I think @enpu is busy with his new movie. but panda growth is slow,  I worried that it like impact.js become free and stop update😣
  14. Funny game. Could you make the Game Over screen and show the last score when the player die???? because it restart is a too quick.
  15. @AlienBurn recommend you try both and see which one suits you. For me Panda -Easy to learn, I have three games made with panda. -Very small community. -Panda Editor is not free but it can make you code your game faster(export to web or mobile is easy). -Growth So Slow, Engine has not updated for a long time, I worried that it like impact.js. Phaser -Much tutorial and Demo Example (but it left me quite confused after looking at multiple tutorials and even trying a few test projects.) -Very large community. -if you want to export to mobile and Code obfuscation, You need to learn cordova/phonegap , Webpack etc….it's totally free -Engine keep updated each month, fast-growing. Finally, Both of them are an awesome HTML5 engine.😁