Home > petomatsi

petomatsi

Petomatsi is a project mainly written in JavaScript, it's free.

Nibbles clone made with Javascript. Just for fun and for testing html canvas

PetoMatsi

1.Introduction

PetoMatsi is simple "do-your-own-nibbles" - toolkit made with javascript and html5. It might not be the most useful thing int the world but at least it was fun to make :)

  1. Tutorial

Check example petomatsi.htm to get started. All the parameterized values are shown in the example. You can play with the parameters and see the results by yourself

Controls: use arrow keys

  1. Parameters

levels : Array of Array of Arrays of numbers 1 and 0 where 1 marks the wall and 0 empty space. example: var levels = [ [[1,1,1,1,1,1], [1,0,0,0,0,1], [1,0,0,0,0,1], [1,0,0,0,0,1], [1,0,0,0,0,1], [1,1,1,1,1,1] ] ] NOTE! Required

maxScore : numbers of 'noms' per level. default is 9

blockSize : size of the game element block. default is 10

speed : game speed in ms. default is 50

colors : object of color values for different game elements. game elements are (name, default value) -> border : "red", empty : "blue" mato : "yellow", nom : "white"

Previous:sass_component