Patrick Morrow/PHP for Beginners - Build a Game

  • $39

PHP for Beginners - Build a Game

Learn how to use PHP, HTML, CSS, jQuery to build a game. This unique course integrates many web development tools, giving you the confidence to tackle full projects.

Table of contents

INTRODUCTION

A quick over view of the project you will be completing.
Introduction
Preview
The development environment
Preview
Hangman overview
Preview

DEVELOPING THE CORE LOGIC

In this section you will begin to develop the core logic.
Grabbing the word length
Preview
Selecting a random word from an array
Preview
Selecting a random word from a text file
Preview
Dealing with letter guesses
Preview
Creating session variables
Creating a basic HTML form
Checking letter guesses against the word
When number of lives equals zero
When number of lives is greater than zero
Dealing with a win

STYLING THE GAME

In this section you will learn how to style your game.
Adding Bootstrap CSS files
Adding a menu
Creating include files
Styling the Current State of Play
Styling the form
Canvas and scoreboard elements
Styling the scoreboard
You Won: Creating an alert box
You Lost: Creating an alert box

DRAWING ON THE HTML CANVAS

In this section you will learn how to drawn on the HTML canvas.
Setting up the HTML canvas
Javascript functions
Javascript logic
Drawing on the canvas

REFACTORING THE CODE

Before you progress, you will learn how to tidy up the code by refactoring.
Dealing with the HTML snippets
Creating functions for the logic

ENHANCEMENTS

Through a series of challenges, with full solutions, you will begin to enhance the game by adding more functionality.
Updating the form elements
Adding a dismissible alert box
CHALLENGE: Add tracking for guesses
CHALLENGE SOLUTION: Add tracking for guesses
CHALLENGE: Add a scoreboard reset button
CHALLENGE SOLUTION: Add a scoreboard reset button
CHALLENGE: Add a modal popup to confirm delete
CHALLENGE SOLUTION: Add a modal popup to confirm delete
CHALLENGE: Add a rating option
CHALLENGE SOLUTION: Add a rating option
CHALLENGE: Replace dropdown with buttons
CHALLENGE SOLUTION Part 1: Replace dropdown with buttons
CHALLENGE SOLUTION Part 2: Replace dropdown with buttons
CHALLENGE SOLUTION Part 3: Replace dropdown with buttons

EXTENSION CHALLENGE

In this extension challenge you will need to create multiple word categories.

The full solution is also provided.
CHALLENGE: Add multiple categories of words
Adding the Font Awesome icons
Creating the form and using jQuery to hide/show
Creating the processing functions
Embedding PHP logic into the HTML

  • Starting at $29/mo or $299/yr

Coding Academy Membership

Get full access to ALL courses with the UNLIMITED membership tier.  New content added daily.

PHP

  • $2.50

CHALLENGE 1: The Chessboard

This short challenge has been designed to encourage you to develop your thought processes. The full solution is provided.

  • $299

Lifetime Access All Current AND Future Courses

Lifetime access to all current AND future courses for a one-time payment.

  • $199

Lifetime Access All Current Courses

Lifetime access to all current courses for a one-time payment

  • $39

PHP for Beginners - Build a Game

Learn how to use PHP, HTML, CSS, jQuery to build a game. This unique course integrates many web development tools, giving you the confidence to tackle full projects.

  • $99

PHP for Beginners - Every line of code used explained in detail

Every line of code is explained in every lesson so you can progress from beginner to confident coder.

  • $89

PHP for Beginners - PDO, MySQL, phpMyAdmin

In this course you will learn how to work with MySQL databases using PHP and CRUD.

  • $149

PHP for Beginners Bundle Deal

Save by bundling the PHP for Beginners courses and improve your skills today.

  • $19

Tic-Tac-Toe: Using jQuery, Bootstrap, HTML, CSS and PHP

In this course you will learn how to create a Tic-Tac-Toe game using jQuery, HTML, Bootstrap and PHP.

Subscribe

Get notified when updates and new courses are launched

You're signing up to receive emails from Patrick Morrow