Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
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 2189 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.

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (28 views)
2014-09-21 02:42:18

BurntPizza (18 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

BurntPizza (29 views)
2014-09-19 03:14:18

Dwinin (46 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56

mitcheeb (71 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!