I've seen a bunch of games where you line up colored shapes or shapes of the same kind and if their touching and equal 3 or more then they are removed and points giving. My question is how is that done? how or whats the best way to detect same shapes touching each other?
games like tetris,goob,and others..
BlitzMax Forums/BlitzMax Programming/games like tetris,goob,and others.. There's any number of ways... in a game like Tetris, for example, you can describe the game grid in a simple NxM array. Given the coordinates of a particular piece (i,j), you can search around the array easily by looking at the array points (i-1,j),(i+1,j), etc.
not sure I follow you.. so your saying to make a grid of my playing area using multidemensioned arrays? and then just scan them to see whats where?
don't know if it's what your looking for but WolRon's site has a tetris clone example, among others.
http://home.cmit.net/rwolbeck/programmingtutorial/
http://home.cmit.net/rwolbeck/programmingtutorial/