Skip to content

Commit

Permalink
Sprite.loadTexture added.
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Oct 10, 2013
1 parent f10f932 commit a7230aa
Show file tree
Hide file tree
Showing 16 changed files with 2,155 additions and 2,383 deletions.
Binary file added Docs/Screen Shots/phaser_tanks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Version 1.0.7 (in progress in the dev branch)
* Fixed the RandomDataGenerator.sow method so if you give in the same seed you'll now get the same results (thanks Hsaka)
* World.randomX/Y now works with negative World.bounds values.
* Added killOnComplete parameter to Animation.play. Really useful in situations where you want a Sprite to animate once then kill itself on complete, like an explosion effect.

* Added Sprite.loadTexture(key, frame) which allows you to load a new texture set into an existing sprite rather than having to create a new sprite.


* TODO: look at Sprite.crop (http://www.html5gamedevs.com/topic/1617-error-in-spritecrop/)
Expand Down
28 changes: 16 additions & 12 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,25 @@
// echo $filename . "\n";

// Read the file in
$source = file_get_contents($line);

if ($filename == 'Intro.js')
if (file_exists($line))
{
// Built at: {buildDate}
$source = str_replace('{buildDate}', date('r'), $source);
$source = file_get_contents($line);

if ($filename == 'Intro.js')
{
// Built at: {buildDate}
$source = str_replace('{buildDate}', date('r'), $source);

// {version}
$source = str_replace('{version}', $version, $source);
// {version}
$source = str_replace('{version}', $version, $source);

// Set the header
$header = $source;

} else {
$output .= $source . "\n";
// Set the header
$header = $source;
}
else
{
$output .= $source . "\n";
}
}
}
}
Expand Down
Loading

0 comments on commit a7230aa

Please sign in to comment.