Jump to content
xisto Community
cragllo

Trap17 Community Building Project! make your contribution...

Recommended Posts

Dude this is the coolest thing ever! I'm definitely going to make one when I have the time. It's not going to be quite so pretty as the rest- I'm not that great with this sort of thing. You guys have done same awesome stuff!

Share this post


Link to post
Share on other sites

Ok, this is the Xisto community Project... <_<
How this works is, you design a 2D shop front that can be no larger that 200px wide and 400px high.

After you make your shop front, just post it here or e-mail me it (project@sponkindustries.co.uk) and ill add it to the street...

To view the street as it progresses, you can see it HERE!

So what are you waiting for? Get making! Oh, and have fun!

Cool thing! Can it be pixel or like crappy ? Im ggoing to do one right away

Share this post


Link to post
Share on other sites

This was one of the projects I was plannig to revive... but still pending on the domain name. The new tentative domain will be annex.trap17.com and will continue this project as soon as I have the sub-domain.

Please stay tuned.

UPDATE

http://forums.xisto.com/no_longer_exists/ is now open. It is still under phase of developting. I am making it as automated as possible... so if you guys can help please input at will :)

As you can see, please make your background trasparent as possible. Avoid PNG whenever you can... IE is stupid and cannot understand PNG transparency. Maximum size is still 200 width by 400 height.

For those who are good at programming, I wrote a quick PHP script to show all directory files under this directory. What I'd like to do is show the block ending and block beginning. Let's say a picture of beginning block is called begin_block.gif and ending block is called end_block.gif. I want to have this begin_block.gif, 4 images and end_block.gif. And this sequence will repeat until there's no more. When there's no more in the directory, it will insert end_block.gif.

The index file

<?php$path="../community";$narray=array();$dir_handle = @opendir($path) or die("Unable to open $path please notify the administrator. Thank you.");echo "Testing Community Project...<br /><br />\n";$i=0;while($file = readdir($dir_handle)){	 if($file != '.' && $file != '..' && $file !='index.php')	{		$narray[$i]=$file;		$i++;	}}echo "<body bgcolor='#f2f2f2'><table><tr>";for($i=0; $i<sizeof($narray); $i++){echo "<td valign='baseline'><img src=$narray[$i]></td>";}echo "</tr></table>";//closing the directoryclosedir($dir_handle);?>

Okay, let's get this project another go!

Future development:
-insert side-walks at the bottom
-insert crosswalk
-insert cars
-insert background (Day/Night) according to server time
-any other suggestions?

Share this post


Link to post
Share on other sites

I am thinking that the php script that I wrote for the Hoverbox Image Gallery could be adapted easily enough for the creation of the street. It reads all the files in a directory and then displays them. Of course, the script is used to display using the Hoverbox on-hover css, but it could be displayed without the css affecting it.I'll tackle this one and see how it goes.

Share this post


Link to post
Share on other sites

might i suggest some pagination to prevent a really big webpage? for example...

<?php$path="../community";$narray=array();$dir_handle = @opendir($path) or die("Unable to open $path please notify the administrator. Thank you.");echo "Testing Community Project...<br /><br />\n";$i=0;//size of the 'one city block' *buildings in once city block*$block = 5;if($_GET['block'])	$offset=($_GET['block']-1) * $block;else	$offset=0;while($file = readdir($dir_handle)){	 if($file != '.' && $file != '..' && $file !='index.php')	{		$narray[$i]=$file;		$i++;	}}echo "<body bgcolor='#f2f2f2'><table><tr>";for($i=$offset; $i< ($offset + $block); $i++){echo "<td valign='baseline'><img src=$narray[$i]></td>";}echo "</tr></table>";//closing the directoryclosedir($dir_handle);echo "<center>";for($j=1; $j <= ceil(sizeof($narray)/$block);$j++)	{	 if($j ==  ($offset/$block)+1)		echo $j;	 else 		echo "<a href='http://forums.xisto.com/no_longer_exists/; . $j ."'>" . $j . "</a>";	if($j < ceil(sizeof($narray)/$block))		echo " - ";	}echo "</center>";?>

What this will do is it allows you to define a set number of buildings for each "Block" and calculates the number of pages needed to display those blocks and create them as neccessary... however this is a very basic example in need of a lil expansion so that you can place a vacancy sign (of sorts) on the places on the last page so that there arent red [x]'s when it finishes with all the images... hope you like it


btw i tested it on my site so i know it works

Share this post


Link to post
Share on other sites

I thought about that... it's a good idea. But setting the X number of buildings to show before the pagination isn't too practical... don't you think? If a browser's resolution is smaller than set number of buildings you would still end up with scrolling to the right.And I see that when we add more buildings it will take forever to load for some members. Hummm... dilemma... having all buildings on one page would seem like more of a real city block but it may take longer time to load.Any other suggestions? How do those Sim City programs handle this?How about a master map of Xisto Community, and when clicked certain block grid it will show buildings for that street/grid/block? For example, residential block would only have residental buildings...just like a real city landscape.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.