#Conversion of minesweeper tutorial

1 messages · Page 1 of 1 (latest)

solar basalt
#

Hi, I'm currently learning bevy and using the tutorial by Félix de Maneville (which is great!). I'm stuck at the end part 3 (https://dev.to/qongzi/bevy-minesweeper-part-3-1a9a)
I decided to use bevy 0.8.1 for this. So far, I only needed to change one thing on the Code (or so I thought), which is switching the camera system from OrthographicCameraBundle::new_2d() to Camera2dBundle::default().

However, the tilemap and tiles are not visible. If I change to bevy 0.7 (and the camera system back), it works.

Any idea what the issue could be?

DEV Community 👩‍💻👨‍💻

Check the repository We have our tile map but still nothing on screen, let's create some tiles...

cold widget
#

@solid zinc, have you seen anyone run into this?

#

That change should just work; I wonder if they're doing something weird for rendering

#

Oh @solar basalt I bet you need to add the Visibility / ComputedVisiblity components to your bundles

solar basalt
#

I did add the VisibilityBundle to the sprites, but it didn't work

cold widget
#

Did you add it to their parents too?

solid zinc
#

Yeah I guess I should update it and add the new SpatialBundle

solar basalt
# cold widget Did you add it to their parents too?

This did it 🙂

I thought I did it with the parents, too. However, I forgot that the SpriteBundle is also a child of the board entity.

Thanks for the quick help and again thanks to @solid zinc for this Tutorial. The structure helps me big time to understand the data driven design of bevy 🙂