I am trying to find a books or resources that provide short pieces of code for a variety of different 2D game types.
Examples of how to set up a grid; and control, move, calculate win conditions for any game pieces etc..
or specific examples of making a:
Tetris style game
Bejweled style game
Chess style game
Puzzle style game
Hopefully you get the picture of what I am after, I don't won't full copies of a game, just pieces to explain how the did the calculation for various parts.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
5 People are following this question.
2D Animation does not start
Assets/Scripts/PlayerController.cs(32,49): error CS0126: An object of a type convertible to `float' is required for the return statement
How Do I Create Random Platforms in a 2d Game?
Issue with raycasting in 2D
How to change image height without changing in x y.