Skip to content

Commit

Permalink
avoid web server error:.meta file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
windysha committed Jan 21, 2024
1 parent 9cd1705 commit e72445c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bevy::{
prelude::{default, App, PluginGroup, Startup, States, Commands, Camera2dBundle, ClearColor},
window::{PresentMode, Window, WindowPlugin, WindowResolution},
DefaultPlugins,
DefaultPlugins, asset::AssetMetaCheck,
};

use constants::{WINDOW_HEIGHT, WINDOW_WIDTH, BACKGROUND_COLOR};
Expand Down Expand Up @@ -30,6 +30,7 @@ enum GameState {
fn main() {
App::new()
.insert_resource(ClearColor(BACKGROUND_COLOR))
.insert_resource(AssetMetaCheck::Never)
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
title: "TETRIS".to_string(),
Expand Down

0 comments on commit e72445c

Please sign in to comment.