tutorial_new_game/
tutorial_new_game.rs1use rustorio::{
2 self, Bundle, ResourceType, Tick,
3 gamemodes::{self},
4};
5
6type GameMode = gamemodes::Tutorial;
7
8type StartingResources = <GameMode as gamemodes::GameMode>::StartingResources;
9
10fn main() {
11 rustorio::play::<GameMode>(user_main);
12}
13
14fn user_main(mut tick: Tick, starting_resources: StartingResources) -> (Tick, Bundle<{ ResourceType::Copper }, 1>) {
15 let StartingResources { iron } = starting_resources;
16
17 todo!("Use the iron to create a smelter, mine some copper ore, and smelt it into copper ingots to win the game.")
18}