Popular Content

Showing content with the highest reputation on 03/18/20 in all areas

  1. 1 point
    @ivan.popelyshev Thx a lot! It worked.
  2. 1 point
    oh, changes, you mean all textures loaded? That's why pixi loader exists. However, if you use Texture.from() you can also do it - check that all your textures are "valid", maybe with events from "baseTexture.on('loaded')" or just checking field "valid" all the time. The trick I told you about putting it in ticker - its because you cant just read pixels from current screen at any time, it doesnt work on some devices. You have to do it just after render(), or do it in RenderTexture. > when my mesh vertices are applied for instance Those things can be lazy only inside one frame. There's no delay between frames, like if you modified mesh after 6th frame, in 7th frame it will be shown for sure. The only real problem is textures or you doing some lazy stuff that pixi doesnt know about
  3. 1 point
    I also have bad experiences with GameDistribution. Firstly pays miserable or never, with outages several months and cheats publishers with redirecting traffic to their own site kizi.com (60% traffic to kizi.com comes from their API). As wrote @arcadeset Very low earnings (70% almost 90% drop) in last months, and they are also banning websites without any warning and then redirecting all traffic to Kizi.com. When you look at similarweb there you can clearly see that 60% traffic to kizi comes from html5.gamedistribution redirects, this means that they redirect all traffic from publishers which don't use their code, ban your website and redirect to website kizi.com = free money for them. Why such scams? I think traffic belongs to the owner/publisher not to your website kizi.com. It is illegal enrichment. "We recently aquired Spil games" - I don't understand how anyone believes you, because if you dont pay developers many months or sometimes send earnings after 90 days, then you have a kind of overdraft respectively bank loan from other publishers / developers and advertisers. So you buy companies for money from publishers and developers as overdrafts or from business loans, truly this is most disturbing. I think everyone understands that if you hold money for 90 days, you have enough time to keep the money in your pocket and use it as an overdraft. In addition, if the publisher doesn't place your ads.txt code, your developers without any warning redirecting all traffic to Kizi.com or trying to show banner ads throught your gamedistribution API to cheat the publisher, this is intentional stealing traffic from publishers and cheating in revenue. I think that right now is Gamedistribution worse choice for the publishers. Once you don't obey them, all traffic and profits will go to them. This is a striking and very disturbing situation. eg: This mean what? Cheating with display ads instead AFG video ads for games or your scam Improve Digital advertising agency? Where are a video ads or game ads? You just display normal banner ads in your own ad player. Additionally you go against Google policy and your partners. You violate Google's rules the same goes for your company Improve Digital, which lies in all directions - what is transparency, what is clear revenue? Without the publisher's permission or any warning, gamedistribution will start displaying banner ads in their fake ad player to maintain their revenue. So a new kind of cheating? I hope everyone who's not stupid understands what they're doing. I think Gamedistribution is from now worst choice for publishers. Gamedistribution just want your money, nothing more. I'd rather use other game distributors. Gamedistribution never again.
  4. 1 point
    Check this example:
  5. 1 point
    Here it is, a small System Text plugin with 3 features: 1) typewriter effect 2) strokeColor (border) 3) example how to use gradient colors with systemText in Panda. Please note that I included a custom font in the project to achieve the second and third example. See the demo project for files ans details at: https://github.com/stephanvermeire/systemtextplugin Quick example (typewrite effect not working here because it is a static image): systemtextplugin.js game.module( 'plugin.systemtextplugin' ) .require( 'engine.renderer.text' ) .body(function() { game.SystemText.inject({ /** Enable typewriter-effect @default false **/ typing_effect: false, i: 1, /** StrokeColor of the text. @property {String} color @default #000 **/ strokeColor: '#000', /** Width of the text stroke. @property {Number} color @default 0 **/ lineWidth: 0, _renderCanvas: function(context) { var wt = this._worldTransform; 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; context.strokeStyle = this.strokeColor; context.lineWidth = this.lineWidth; if(this.text === undefined) return; var lines; if(this.typing_effect){ lines = String(this.text.substr(0, this.i)).split('\n'); if(this.i <= this.text.length){ this.i++; } }else{ lines = this.text.split('\n'); } for (var i = 0; i<lines.length; i++){ context.fillText(lines[i], 0, (i*this.size) ); if(this.lineWidth){ context.strokeText(lines[i], 0, (i*this.size)); } } } }); }); main.js game.module( 'game.main' ) .require( 'plugin.systemtextplugin' ) .body(function () { game.createScene('Main', { init: function () { //typewriter demo new game.SystemText('Lorem ipsum dolor sit amet,\nconsectetuer adipiscing elit.\nSed posuere interdum sem.', { size: 50, x: 0, y: 0, typing_effect: true, }).addTo(this.stage); //custom font with strokeColor new game.SystemText('Lorem ipsum dolor sit amet,', { font: 'SoSweetHoney', // align: 'left', color: '#2d963b', strokeColor: '#a2e65e', lineWidth: 2, size: 50, x: 0, y: 300, }).addTo(this.stage); //gradient font color const color = game.renderer.context.createLinearGradient(0, 0, game.width, 0); color.addColorStop(0, "#f47c35"); color.addColorStop(1, "#e6e650"); const strokeColor = game.renderer.context.createLinearGradient(0, 0, game.width, 0); strokeColor.addColorStop(0, "#a2e65e"); strokeColor.addColorStop(1, "#3577ca"); let test = new game.SystemText('Lorem ipsum dolor sit amet!', { font: 'SoSweetHoney', lineWidth: 2, size: 50, x: 0, y: 500, }).addTo(this.stage); test.color = color; test.strokeColor = strokeColor; } }); }); index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Panda 2 - SystemText</title> <link rel="stylesheet" href="style.css" media="all" /> <script type="text/javascript" src="src/engine/core.js"></script> <script type="text/javascript" src="src/game/config.js"></script> <script type="text/javascript" src="src/game/main.js"></script> </head> <body> </body> </html> Note that you have to include the fonts directory as well as the style.css file in your project to make the custom font work!