Author: William Clarkson

Making Missiles in Phaser

Making Missiles in Phaser

Game Development, Phaser, Tips & Tricks
In this video, we look at how to make and shoot missiles in Phaser with only 23 lines of code! The basic idea is to create a sprite, the missile, inside of a group. We place the sprite at the x position of the mouse and the y position below the height of the game. Then during the update function, we simply loop through the group and subtract from the y position from each missile. This video uses the Phaser Snippets
Code Update

Code Update

Game Development, Phaser
For a few months and in my Udemy lessons, I've been detecting mobile devices by measuring the width of the screen. For a while this worked, but I've now found it to be ineffective. Sometimes a smaller desktop or laptop screen will show up as a mobile device. Here is the original Start for desktop/mobile  snippet var game; window.onload = function() { if (screen.width>1500) { game=new Phaser.Game(480,640,Phaser.AUTO,"ph_game"); } else { game=new Phaser.Game(window.innerWidth,window.innerHeight,Phaser.AUTO,"ph_game"); } game.state.add("StateMain",StateMain); game.state.start("StateMain"); } And here is the Start for desktop/mobile update isMobile=navigator.userAgent.indexOf("Mobile"); console.log("isMobile="+isMobile); if (isMobile==-1) { //desktop lapto
WordPress Child Themes  Method 3 – Using a plugin

WordPress Child Themes Method 3 – Using a plugin

Css, Wordpress
  Create a Child with a plugin By far the easiest way to create a child theme is with a plugin. There are several plugins available for this task, but when I started putting together a list of plugins for this task, I found that many of them didn't work correctly. In the end I decided it was better to write my own. You can get a free copy of this plugin here: http://www.williamclarkson.net/code/tools/easy-child-theme-maker/ Download the plugin zip file To Install: 1. Under your plugins click the add new button.  2. Click the upload plugin button.  3. Click the choose file button and select the zip file you downloaded and click install now.  4.Click Activate  To make a child theme with this plugin. 1. Select the Easy Child Theme Maker und
Making a Child Theme In WordPress Method 2 – File Manager

Making a Child Theme In WordPress Method 2 – File Manager

Css, Wordpress
This is an except from my upcoming book WordPress and Css The following shows using the file manager in GoDaddy, but it will be similar with most web hosting. 1. Click on File manager in your control panel.  2. If you have more than one site on your hosting a select box will pop up. Select the site that want to add your child theme to.  3. Double click the wp-content folder  Double click the themes folder  4. You will see a listing of themes  5. Click on the new folder button  6. Give your folder a name. This should be the name of the theme. In this example we will use the name twentysixteenchild and will use that name in several other places. It is important that these names match.  7. Double click the new folder you just
Making a Child Theme In WordPress Method 1 – Ftp

Making a Child Theme In WordPress Method 1 – Ftp

Wordpress
This is an except from my upcoming book WordPress and Css Creating a child theme There are a few ways a to create a child theme 1. Copy the theme files to a new folder using ftp 2. Copy the files using cpanel or online file manager 3. Use a plugin to make a copy of the files This post covers using FTP. I'll post last about the other medthods. To make a child theme using ftp Create a new folder in your theme folder with the name of your new theme. In this case I have given it the name twentysixteenchild.  Create 2 files in your new theme's folder style.css functions.php  In your style.css file place the following /* Theme Name: Twenty Sixteen Child Template: twentysixteen */ The theme name is whatever name you want to give your child the
My First of Many E-Books

My First of Many E-Books

Game Development
I finally got around to writing my first ebook and now that I've done it it seems like why did it take me so long to do it. I think we hesitate at things that we are not used to doing. I often have a great idea for something and if it is somewhere out of what as they say my comfort zone then I don't tend to put it on the front burner it gets so shelved, or ignored. But now that I've written it, it doesn't seem like a scare thing to do them after all. I mean I think that's what separates successful people from everyone else, not because they're not afraid, but because they overcome that fear of doing things that lead them to success. I took one of my phaser games, Color Zap that I wrote for my udemy course, and turned it into an ebook. You can also find a playable copy of the game ...
The magic of online learning

The magic of online learning

Thoughts
Technology has really changed the way that we see time. It used to be that five or ten years ago didn't seem that long but when I tell you that this was before YouTube or before Facebook then it seems like a really long time ago. Things change so fast in technology and it's often hard to keep up. Someone recently told me that 1 year is very long time in the tech world and that my being out of the workplace for a year,since I took a time off to be here in Thailand, it was a long time and I agree so much has changed in one year. Maybe not on the surface but being able to keep up with the technology to be a programmer, that's true. It occurred to me, however, that while I was in the workplace, that being there was holding me back as well. The last place that I worked, Gaiaonline.com, wh...
Happy Place Games

Happy Place Games

Game Development
I've been making games since I was a kid in the 80's. I enjoy making games more than I do playing them. What I really enjoy is being able to share my games with other people. I've been fortunate to work at a lot of places that let me share the games I make. TournamentGames.com, Kidscom.com, and Gaiaonline.com. Since I don't work at those places now, I still need an outlet to share my games. Coding is my art. It is what I do! HAPPY PLACE GAMES-PLAY NOW I move to Thailand a year ago to work on Happy Place games to produce as many downloadable games as I could. I got good at producing the games, but it was challenging to get downloads. Then I realized I hardly downloaded any games because my phone was full of essential apps. Everybody's phones are full of photos, musics and essential...
Test WordPress on Mobile

Test WordPress on Mobile

Tips & Tricks, Wordpress
Wordpress generally does a good job of being responsive on its own. Meaning it looks as well on mobile as it does on desktop but sometimes I need to be sure. So if you hit F12 and you're using chrome, a panel will pop up over to the side. You'll find a button there with the phone,and a tablet together. If you press that it'll bring up a series of devices that you can see how your web page looks on that device. You always want to refresh after switching devices, and I've got it set here for IPhone 6, So this is what my website will look like, on the Iphone 6. I can rotate it and that's what it would look like in landscape mode. Let's have a look at the IPad. That's a lot wider. You always want to refresh after you change devices. And flip it, and check the galaxy S5. If...