24
Blank the Squares A Game by Alex Beston for HTML 5 [email protected]

Blank Out The Squares

Embed Size (px)

DESCRIPTION

A few slides outlining the game "Blank out the squares", designed to use the element. A puzzle made of 5x5 squares, the aim to remove all the squares by continuous selecting a coloured group containing two or more adjacent squares. Once selected, if a column or more is becomes blank, the squares to the left of the empty column(s) shift to the right to fill the gap. A "find solutions" button is given to show how to solve a challenging puzzle. When a new puzzle is created by randomly populating the 5x5 field, it will try to solve it to ensure it is a solvable puzzle; if none can be found, it will repeat until the user has a solvable puzzle. Of course not all puzzles are of the same difficulty, so the user should find the game entertaining. NB. only tested on a PC running chrome.

Citation preview

Page 1: Blank Out The Squares

Blank the Squares

A Game by Alex Beston for HTML 5

alexbestongmailcom

Aim of the Game

To remove all the colored squares

from the screen

Solving the game

The user picks squares with two or more

adjacent squares of the same colour

User selects these 4 grey squares

Solving the game

Grey squares are removed and

yellow drops down

Solving the game

Game continues as the number

of squares diminish

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 2: Blank Out The Squares

Aim of the Game

To remove all the colored squares

from the screen

Solving the game

The user picks squares with two or more

adjacent squares of the same colour

User selects these 4 grey squares

Solving the game

Grey squares are removed and

yellow drops down

Solving the game

Game continues as the number

of squares diminish

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 3: Blank Out The Squares

Solving the game

The user picks squares with two or more

adjacent squares of the same colour

User selects these 4 grey squares

Solving the game

Grey squares are removed and

yellow drops down

Solving the game

Game continues as the number

of squares diminish

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 4: Blank Out The Squares

Solving the game

Grey squares are removed and

yellow drops down

Solving the game

Game continues as the number

of squares diminish

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 5: Blank Out The Squares

Solving the game

Game continues as the number

of squares diminish

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 6: Blank Out The Squares

Solving the game

An empty column will cause the squares to

the left of the column to shunt to the right

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 7: Blank Out The Squares

User loses if

Back to the position

Black ldquoTrdquo selected

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 8: Blank Out The Squares

User loses if

Can go wrong here

Red group selected

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 9: Blank Out The Squares

User loses if

Game cannot complete

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 10: Blank Out The Squares

Another way to lose

Choose a yellow instead

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 11: Blank Out The Squares

Unsolvable

But it still cant be solved from here

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 12: Blank Out The Squares

Solving the game

Back to the start

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 13: Blank Out The Squares

Happy Conclusion

After a series of correct moveshellip

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 14: Blank Out The Squares

Starting a game

The game attempts to generate a solvable

configuration ndash can take several iterations

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 15: Blank Out The Squares

Starting a game

hellip until there is a solvable arrangement

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 16: Blank Out The Squares

Ive given up Show me how to

do it

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 17: Blank Out The Squares

[demo game]

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 18: Blank Out The Squares

Down sides

Finding a solution can take time hellip

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 19: Blank Out The Squares

Downsides

Too many unsolvable games generated

ndash User has to wait to start a game amp

game play suffers

Better to have a text-file of solvable games

Bonus ndash can be sorted from easy to hard

Animation of the squares

Graphics

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 20: Blank Out The Squares

Up sides

Good as a mental exercise

Some addictive quality ndash possibly

commercial

Perfect for handhelds

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 21: Blank Out The Squares

Up sides

All client code so strain on the server is

negligible

Demonstrates ltcanvasgt element

Shows that Flash isnt always necessary

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 22: Blank Out The Squares

Utilising the ltcanvasgt element

Some essential code

ltcanvas width=400 height=300gtltcanvasgt

var canvas = documentgetElementById(canvas)

if (canvasgetContext) hellip

var ctx = canvasgetContext(2d)

ctxfillRect(x y sqWidth sqWidth)

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 23: Blank Out The Squares

Developing the game

Grab a copy of the game at

httpscodegooglecompblank-it

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml

Page 24: Blank Out The Squares

Thanks for listening

Play the game at

httpberginbyethost18comsquareshtml