quarks Posted March 23, 2016 Share Posted March 23, 2016 Can someone explain the use case(s) for a SpriteBatch and perhaps link to some sample code? The documentation is suggestive but terse. Link to comment Share on other sites More sharing options...
Ivasik Posted March 23, 2016 Share Posted March 23, 2016 var expression = 1+2; //Get "Test test test" var expression = 1; //Get "Nice" switch (expression) { case 1: alert("Nice"); break; case 2: alert("Good Job!"); break; case 3: alert("Test test test"); break; default: statements_def break; } I hope I understand the question. https://jsfiddle.net/ytrtfdxm/ Link to comment Share on other sites More sharing options...
quarks Posted March 23, 2016 Author Share Posted March 23, 2016 Thank you lvasik, but I don't need to know how to use a switch/case statement. I was asking about when and how to use Phaser's SpriteBatch object. Zeterain and fillmoreb 2 Link to comment Share on other sites More sharing options...
Recommended Posts