Examples - Rename While Loop example
This commit is contained in:
parent
9976180250
commit
5c4e3a55b7
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import 'package:browserloop/src/04-FixedLoopVariableRender.dart';
|
|||
import 'package:browserloop/src/02-AnimationFrameWhile.dart';
|
||||
|
||||
List<Example> examples = [
|
||||
Example("While Loop Example", "#while_output"),
|
||||
Example("While Loop Example", "#while_loop"),
|
||||
Example("Fixed Update, Variable Render", "#fixed_variable"),
|
||||
Example("Variable Timestep", "#variable_timestep")
|
||||
];
|
||||
|
@ -81,7 +81,7 @@ void activate(MouseEvent e) {
|
|||
if (ex.canvas == c) {
|
||||
resetExample(ex);
|
||||
switch (ex.query) {
|
||||
case "#while_output":
|
||||
case "#while_loop":
|
||||
print("#while_output loop added");
|
||||
ex.loop = new WhileLoop(new Game(ex.canvas));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue