Skip to content

Commit ab03d61

Browse files
committed
fix(cli): keep generated game template running
2 parents f07ce34 + d608f89 commit ab03d61

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/commands/new/NewTemplates.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,9 @@ h1 {
10821082

10831083
s += " void on_update(const vix::game::Frame &frame) override\n";
10841084
s += " {\n";
1085-
s += " vix::print(\"frame:\", frame.index);\n\n";
1086-
s += " if (frame.index >= 5)\n";
1085+
s += " if (frame.first())\n";
10871086
s += " {\n";
1088-
s += " app().stop();\n";
1087+
s += " vix::print(\"Game running. Press Ctrl+C to stop.\");\n";
10891088
s += " }\n";
10901089
s += " }\n";
10911090
s += "};\n\n";

0 commit comments

Comments
 (0)