First of all, yes it can be done.
Second of all, there are many ways to achieve that effect so it depends more on how you want to do it (old school way or maybe “easier way”).
Old school way is to use classical ray casting that was used in Wolfenstein and then expanded in eg doom to give your the 3rd dimension (up/down).
A good starting point for ray casting could be this tutorial which explains the first steps of 2 dimensional ray casting.
If you want to go the “easier” way which is actually using 3D objects in 3D space there are plenty of resources in here and out there to show how that would be done.
Also later on you are showing xcom apocalypse, an isometric type of game which is totally different tech and can also be done in defold using 2D techniques in an isometric tilemap.
If you want to go that route I would recommend old tutorials like this old classic
Its very different type of games with different challenges but they can all be done in Defold. I’m thinking about doing a raycasting example myself just because… well you gotta do it once, right?