On Tue, Oct 12, 2010 at 10:05 AM, acr <[email protected]> wrote:

> I cant seem to wrap my  head around getting the basic getting this basic
> structure set up where it's actually usable.
> I cannot find any tutorials etc that cover this sort of thing. If someone
> could give me any pointers, or point me in a direction that my fill in the
> gaps for what I am looking for that would be greatly appreciated.
>

These kind of questions ("here's a broad description of a general problem,
how do I solve it") are very difficult to answer.

I would take the very same description of your problem you posted and
extract objects, relationships, and logic from that and go from there.

For example, you posted:

> I'm in the beginning process of creating my first 2d game and it's a puzzle
> game (sort of like bejeweled) where I would have 7 different images randomly
> spread out across in a 7x7 grid totaling 49 images total. Basically there
> would be a way to match pieces and make them disappear, then the pieces
> above would fill the new empty spaces, and then new random pieces would
> appear to fill the gaps left at the top of the screen.
>

So you have identified certain object already (7x7 grid, puzzle pieces, and
images), certain relationships (grid can *contains* puzzle pieces or be
empty, pieces *contain* images) and the logic (matching images makes them
disappear, disappearing pieces causes pieces above to drop, random pieces
fall from the top).

This alone should suffice to get some basic classes (Grid, PuzzlePiece,
whatever), and some functions (PuzzlePiece.matches(PuzzlePiece),
Grid.clearCell(x, y), Grid.update(), Grid.dropNewPieces()) where you can get
the core functionality set up and build on that.

Then come back with more specific questions. Hope that helps.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to