Added in the Color Utils and removed the less important functions into ColorHarmony plugin. Updated Stage so backgroundColor can be a string or integer now.

This commit is contained in:
Richard Davey
2013-09-10 14:00:46 +01:00
parent 15fe5ed6c8
commit 5da0e42be4
41 changed files with 565 additions and 236 deletions
+3
View File
@@ -91,6 +91,7 @@
<script src="../src/sound/Sound.js"></script>
<script src="../src/sound/SoundManager.js"></script>
<script src="../src/utils/Debug.js"></script>
<script src="../src/utils/Color.js"></script>
<script src="../src/physics/arcade/ArcadePhysics.js"></script>
<script src="../src/physics/arcade/Body.js"></script>
@@ -98,3 +99,5 @@
<script src="../src/particles/Particles.js"></script>
<script src="../src/particles/arcade/ArcadeParticles.js"></script>
<script src="../src/particles/arcade/Emitter.js"></script>
+31
View File
@@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html>
<head>
<title>phaser.js - a new beginning</title>
<?php
require('js.php');
?>
</head>
<body>
<script type="text/javascript">
(function () {
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { create: create });
function create() {
// You can set the stage color using a hex value:
game.stage.backgroundColor = '#550000';
// Or a direct color value:
game.stage.backgroundColor = 0xbbaa44;
}
})();
</script>
</body>
</html>