Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  My game design- how about would i make a tile also an object?  (Read 2790 times)
0 Members and 1 Guest are viewing this topic.
Offline loliown

Senior Newbie

« Posted 2011-04-21 07:33:20 »

First off my game is going to be based for "female" type users as it was given to me by quite a few girls requesting such a game.

On facebook they have farmville. Not all girls like making a farm but instead gardens. I have never personally played farmville but i have tried "potfarm" which i believe to be somewhat similar. My game is most appealing to people who like gardens such as growing flowers (many many assortments) having a nice "backyard" as i'd like to call it and being able to move/create objects that are built in game for them to create such as a gaziboe so it'll make the users garden look nice and have it's own atmosphere compared to others.

I am looking to create a game with over 100 different types of plants you can grow (not vegetables and thing like farmville) ability to visit other "players/friends" gardens to compare and "hang out". In shorter terms potfarm meets farmville has a child and my game is born. It will not be based around marijuana nor growing crops of corn or whatever you do exactly.

Anyways here's sort of a "picture" of what i'm exactly looking to do

the white "squares" represent a tile that can be walked on currently where as the red "circle" is a tile being occupied by a flower/plant/object such as a gizoboe. i'm trying to make it where if you use a "seed" on designated tile you'll walk to the said tile perform an action/animation, plant seed causing sort of a bulg/sprout of a plant to appear and making it able to still be walked on while the plant is growing. What i'm trying to get at if you don't exactly understand is how would i go about making the tile act as an object and have the ability to plant an "item/seed" in that location.or create a "world map" and have each tile act as a coordinate starting at like (0,0) and (0,1) and such.
Offline philfrei
« Reply #1 - Posted 2011-04-21 19:09:38 »

Standard solution would be to create/define a Tile object with state variables to hold info concerning what is planted, how far along, too much/not enough water/fertilizer/compost, etc., in that given instance of a Tile.

Neat game idea! The time element still pertains, as most flowers only bloom for a shortly defined period and then are often replaced.

music and music apps:
Offline Mads

JGO Ninja

Medals: 26
Projects: 3
Exp: 6 years

One for all!

« Reply #2 - Posted 2011-04-23 16:12:12 »

You can store those Tiles in a Tile[][]-array in a GardenHandler, and loop through them calling update() on each one.
Draw them the same way with draw(graphics g) Smiley

Pages: [1]
  ignore  |  Print  

EgonOlsen (58 views)
2018-06-10 19:43:48

EgonOlsen (40 views)
2018-06-10 19:43:44

EgonOlsen (60 views)
2018-06-10 19:43:20

DesertCoockie (225 views)
2018-05-13 18:23:11

nelsongames (141 views)
2018-04-24 18:15:36

nelsongames (140 views)
2018-04-24 18:14:32

ivj94 (881 views)
2018-03-24 14:47:39

ivj94 (142 views)
2018-03-24 14:46:31

ivj94 (793 views)
2018-03-24 14:43:53

Solater (157 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!