changed the window title

This commit is contained in:
Mikolaj Wojciech Gorski 2024-03-29 04:24:49 +00:00
parent 292e407371
commit fd4f3ce1f7

View file

@ -34,7 +34,7 @@ fn main() {
.insert_resource(ClearColor(Color::rgb(0.4, 0.4, 0.4))) .insert_resource(ClearColor(Color::rgb(0.4, 0.4, 0.4)))
.add_plugins(DefaultPlugins.set(WindowPlugin { .add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window { primary_window: Some(Window {
title: "Bevy game".to_string(), // ToDo title: "Trouble in Terror Town: Source Crossed".to_string(), // ToDo
// Bind to canvas included in `index.html` // Bind to canvas included in `index.html`
canvas: Some("#bevy".to_owned()), canvas: Some("#bevy".to_owned()),
// Tells wasm not to override default event handling, like F5 and Ctrl+R // Tells wasm not to override default event handling, like F5 and Ctrl+R