Photon Storm

Web Name: Photon Storm

WebSite: http://www.photonstorm.com

ID:57593

Keywords:

Photon,Storm,

Description:

We were very pleased to be able to create the responsive HTML5 version of the CBeebies Art Tools for the BBC. The CBeebies site had long had a Flash based art tool that allowed children to paint and draw in the browser. The BBC had also released a native app on mobile which offered a similar painting experience on mobiles.However with the shift of their web site to a responsive layout they required a new art tool one that was built using HTML5 technologies, that ran across desktop and mobile browsers, and that combined the best elements from both the native app and Flash versions.Easy to re-skinOne of the primary requirements of the new Art Tool was that it should be easy for their editorial teams to re-skin it. This needed to be possible without having to edit any source code or recompile. To achieve this we built a power JSON data file structure and easy way of managing assets. This allows the BBC to create a brand new re-skin of the Art Tools by simply modifying a single json file and associated graphics. Full sets of PSD templates were created to streamline this process and a comprehensive 80+ page user manual was written for internal staff.You can see a re-skin of the Art Tools for the show Hey Duggee. As you can see it s visually quite different from the screen shots above, however it s all running from the same single code base. Read More Phaser Coding Tips is a free weekly email subscribe here.Welcome!In the last issue we covered how to make a bullet pool and various shoot-em-up weapon types. This time we re exploring a way to create waveforms, or paths for your baddies to follow. Motion paths don t apply to just shoot-em-ups of course. They re useful for nearly all types of game, and as you ll learn are quick to create.Get the sourceI m only going to highlight the most important parts of the code here. So please always look at the source first. If you ve questions about something I didn t cover then ask on the forum.Run / Edit the code on jsbin or codepenClone the phaser-coding-tips git repo.WaveFormsHidden away within the Phaser.Math class are three rather innocuous methods: linearInterpolation, bezierInterpolation and catmullRomInterpolation. Unless you ve ever had a specific need to investigate these they have probably sat there unloved, even though they ve existed since the beginning of Phaser.Yet use them in the right way and you can create paths just like this one:Pretty neat huh?So how can we get them to work for us? Read More Phaser Coding Tips is a free weekly email subscribe here.Welcome!Shmupjam is a game jam dedicated to creating shoot-em-up games. As it s now in full flow I figured it d be great to see some Phaser entries for it. Therefore this weeks Coding Tips is dedicated to all things bullety and shooty.Get the sourceI m only going to highlight the most important parts of the code here. So please always look at the source first. If you ve questions about something I didn t cover then ask on the forum.Run / Edit the code on jsbin or codepenClone the phaser-coding-tips git repo.Infinite AmmoThe whole point of a shoot-em-up is of course shooting things. For this you need bullets. Lots of them. Creating new objects in JavaScript (or indeed any language) is expensive. So what we do is pre-build all our bullets up front. Then as they are fired, they move across the screen and once outside we free them up, putting them back into the pool, ready to be reset and fired again as needed. This way we don t generate any new objects at all during the game loop.To manage this I m using a single Bullet object. This is essentially a Sprite with a couple of extra features: var Bullet = function (game, key) {Phaser.Sprite.call(this, game, 0, 0, key);this.texture.baseTexture.scaleMode = PIXI.scaleModes.NEAREST;this.anchor.set(0.5);this.checkWorldBounds = true;this.outOfBoundsKill = true;this.exists = false;this.tracking = false;this.scaleSpeed = 0;};The first line tells Pixi to use nearest neighbour scaling. This means when the bullet is scaled from its default size it won t be automatically smoothed as will retain its pixel crispness.The checkWorldBounds and outOfBoundsKill lines pretty much do exactly what they say. They will check if the bullet is within the world bounds and if not kill it, freeing it up for use in the bullet pool again.The tracking property tells the Bullet to rotate to face the direction it is moving in, as it moves. This is handled in its update method. Finally scaleSpeed is how fast the bullet should grow in size as it travels. Both of these settings are used by some of the weapons as you ll see shortly. Read More Development of Phaser 3 is already under way. I asked Pete Baron, who is doing the core work on the new renderer to sum-up each week of development. Here is his latest report:Phaser 3 Renderer ProgressAll source and examples can be found in the phaser3 Git repo (and here is the commit log)The demos can be found herecanvasToGl demoRich mentioned that being able to transfer Canvas to WebGL textures is very important for a number of use cases, so I took a stab at wrapping it in a fairly accessible API call and did a few performance tests. It seems like the bottleneck will be texture transfer, the rest of the code is relatively simple and isn t doing a lot of stuff that will likely stall the GPU. The new demo has one Canvas texture (underneath the WebGL window) with a constantly changing background colour and a once-per-second number increment. In the WebGL window you can see the same texture transferred onto 10 separate WebGL textures, applied to pbSprites, and bouncing, scaling and rotating. This demo seems to slow down oddly when the window is not focused I need to look into that (but it ll be tough because it doesn t do it when focused). Read More Phaser Coding Tips is a free weekly email subscribe here.Welcome!Back in the late 80s I was utterly captivated by an Usborne range of programming books, one of which was Computer Battlegames (for the ZX Spectrum, et all).The front cover and illustrations within this book promised great things! In reality only one game in the entire book even had any graphics (everything else was text mode). But that didn t stop it firing my imagination.For this weeks coding tip I ve taken one of the games from the book and bought it into Phaser.Get the sourceI m only going to highlight the most important parts of the code here. So please always look at the source first. If you ve questions about something I didn t cover then ask on the forum.Run / Edit the code on jsbin or codepenClone the phaser-coding-tips git repo.Shootout You are standing back to back. You take 10 paces, turn and reach for your guns. How quick are you? Can you shoot first? That was the blurb from the original game in the book. It accompanied 15 lines of code and a lavish spaghetti western style illustration. For our rendition Ilija has given it a pixel art look instead.The game consists of just 1 image, which we ll change the texture of, some text and a bunch of timers to handle the shooting. Read More Hire Us All about Photon Storm and ourHTML5 game development services

TAGS:Photon Storm 

<<< Thank you for your visit >>>

Websites to related :
MoleHill Technology Solutons, LL

  MoleHill Technology Solutions LLC. is an Information Technology services firm based in Columbus, OH. We provide IT consulting services to a broad rang

Intellectual Cultural Property

  Competitiveness of Nations Cultural Econometrics Cultural Economics Elemental Economics World Cultural Intelligence Network Dr. Harry Hillman

Enciclopedia y Diccionario de Ec

  Diccionario de Economia Economia 48 es la gran enciclopedia de econom a en lengua castellana. En septiembre 2008 ya se han econtrado en ste diccionar

Arco - Experts in Safety and the

  The Arco Product Advisor is designed to help you find specific products by following a number of questions prepared by our specialist advisors... more

bluesign® - solutions and servi

  THE BLUE WAY by BLUESIGNrepresents the vision and mindset of responsible and sustainable manufacturing of textile consumer products. BLUESIGNis a syst

Fine Indian Dining Takeaway in

  Fine Indian Dining in the Heart of ExeterIf food is an experience, then you ll find it at Ganges Make a Reservation Business Membership at GangesWe of

RTBF le site de la Radio Télév

  Lors de notre enquête sur les dérives sectaires en Belgique, nous nous sommes centrés sur deux groupes en particulier. D’un côté, l’ASBL... Dé

- DIY, decoração e muito mais!

  juliana daidoneSou hiperativa, alegre, apaixonada por DIY, adoro cozinhar e sou são-paulina roxa. Onde vou, levo o Dagoberto, meu filho de quatro pat

Melhorar a navegação

  Dia 07/08/2020 por MadalenaRExcelente serviço!Eu vi uma foto do Ficus sabre (Ficus binnendijkii ‘Alii’) ... Ler esta opiniãoDia 10/07/2020 por Ana

Voltar

  carregando dados... aguarde alguns instantes enquanto buscamos informações sobre sua sacola sua sacola está vazia navegue no site e preencha agora

ads

Hot Websites