|
|
|
|
@ -4,7 +4,8 @@
|
|
|
|
|
// * UI widget explaining rules/hotkeys
|
|
|
|
|
// * Show shadow of piece (same tile, just with alpha transparency)
|
|
|
|
|
// * Start with an interesting pattern
|
|
|
|
|
// * UI minimize widgets
|
|
|
|
|
// * UI minimize widgets (mostly done)
|
|
|
|
|
// * Indicate to click on the UI
|
|
|
|
|
// * Add "follow action" that adjusts camera to zoom in/out/move to see everything
|
|
|
|
|
// * Make click and drag feel better
|
|
|
|
|
// * Add arrow keys to move around
|
|
|
|
|
@ -1089,11 +1090,16 @@ fn load_meshes(mut cell_assets: ResMut<CellAssets>, mut meshes: ResMut<Assets<Me
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn default_board(mut writer: MessageWriter<Lifecycle>) {
|
|
|
|
|
(-5..=5).for_each(|x| {
|
|
|
|
|
(-5..=5).for_each(|y| {
|
|
|
|
|
// https://playgameoflife.com/lexicon/R-pentomino
|
|
|
|
|
[
|
|
|
|
|
(0,0),
|
|
|
|
|
(0,-1),
|
|
|
|
|
(-1,0),
|
|
|
|
|
(0,1),
|
|
|
|
|
(1,1),
|
|
|
|
|
].into_iter().for_each(|(x, y)| {
|
|
|
|
|
writer.write(Lifecycle::Alive(Coordinates { x, y }));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: Do not place piece if panning
|
|
|
|
|
|