Important alert: (current site time 7/16/2013 2:48:44 AM EDT)
 

winzip icon

[FA] City Builder [v1.2]

Email
Submitted on: 12/1/2004 5:50:13 AM
By: Faraz Azhar 
Level: Advanced
User Rating: By 123 Users
Compatibility: VB 6.0
Views: 46332
author picture
(About the author)
 
     A 2D Windows-based game. You can construct various buildings, roads, destroy them, earn money through monthly taxes, scroll around the terrain.... all like a professional strategy game! inspired from my favorite dos-based game Transport Tycoon Deluxe by Chris Sawyer, Micropose. Graphics are drawn on the basis of flicker-free drawing concept. Great frame rate. Ive also made support for full-screen mode. Actually in Full-Screen mode, the game switches the screen resolution to 640x480 size so it wont have to stretch the graphics. Anywayz.. contains load and loads of stuff which i cant even explain here. Ive got some great great stuff for amateur programmers. I was planning to make a proper game out of it but the frame rate didnt supported enough and im no good at directx so i kept the game only to a little coding demonstration. Try it out dudes!!! plz vote.. means very much to me! .... IMPORTANT: Please please dont forget to read the README.TXT file first to see the recommended system requirements for this game. [UPDATIONS]: Load/Save map, better framerate, new effect on selecting buildings.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 7 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

12/1/2004 6:01:39 AMFaraz Azhar

oh yea.. compile and run the exe for getting colored mouse pointers.
(If this comment was disrespectful, please report it.)

 
12/1/2004 8:01:21 AMPeter Wilson

Hey! This is pretty good! It has a nice professional feel too it. Excellenct use of custom controls! Smooth scrolling too. This would be a good project to get some inspiration from. I'd love to see this developed further. I'll give you 5 for your use of custom controls.
(If this comment was disrespectful, please report it.)

 
12/1/2004 8:34:56 AMAshraf Magdi

Good Job 5 Global :)
(If this comment was disrespectful, please report it.)

 
12/1/2004 12:25:09 PMVB COMEDIAN

This is soo cool.
(If this comment was disrespectful, please report it.)

 
12/2/2004 12:44:17 AMHeriberto Mantilla Santamaría

The program has very good appearance, I congratulate you friend.
(If this comment was disrespectful, please report it.)

 
12/2/2004 4:48:57 AMWamdue Project

I'm giving you 5 just for the Hyperlink custom control. If I could vote more than once I would.
(If this comment was disrespectful, please report it.)

 
12/2/2004 9:06:14 AMGShuten

very very cool !!!

(If this comment was disrespectful, please report it.)

 
12/2/2004 9:41:12 AMAly Hirani

Pretty good... something like Sim3000... I Liked it... I think I am gonna be addicted to it just like SIM3000... waiting for a 3D version too.
(If this comment was disrespectful, please report it.)

 
12/2/2004 1:32:30 PMFaraz Azhar

I would love to create a complete 3D game out of it, but Im pretty bad at maths :D so cant do much in DirectX.
(If this comment was disrespectful, please report it.)

 
12/2/2004 1:43:49 PMFaraz Azhar

Minor Update: Ive now added more mouse cursors to the right-click scrolling. Now it looks really cool! And ive fixed another thing which ive mentioned in the UPDATES.TXT file. :) Thanks for all the support and votes ppl!
(If this comment was disrespectful, please report it.)

 
12/2/2004 2:24:39 PMVB COMEDIAN

Forget about math and DX. I love it... This code is cool.We need roads, lakes, bridges, Godzilla or King of Monsters.

I love to see monsters or robot destorying building.

I'm looking foward City Builder 1.0. this is great... Send mailing list for next verison.
(If this comment was disrespectful, please report it.)

 
12/2/2004 11:02:21 PMvbgamer45

Excellent work. I love the entire feel of the game. The mini windows are great. The animations are cool. Can't wait to see the next version.
(If this comment was disrespectful, please report it.)

 
12/3/2004 2:32:33 AM

nice one.
(If this comment was disrespectful, please report it.)

 
12/3/2004 7:04:56 AMFaraz Azhar

i have the roads, vehicles, airplanes, airport, etc. all ready.. but framerate is getting too low. if you guys still want it i can add it :) just say YE!
(If this comment was disrespectful, please report it.)

 
12/3/2004 7:10:46 AMFaraz Azhar

can anyone explain this to me... i thought lower resolution and fullscreen mode will enhance the framerate, .. its making it even slower. why is this?
(If this comment was disrespectful, please report it.)

 
12/3/2004 6:15:40 PMZirro Tolerance

YE!
Please add the other stuff back in

(If this comment was disrespectful, please report it.)

 
12/4/2004 8:09:12 AMAckbar

Excellent game from what I saw of it. If you wanna add the other stuff but keep the frame rate consider switching from bitblt to directx and getting rid of the timers and going with a loop. Other than that very nice job. 5 globes :)
(If this comment was disrespectful, please report it.)

 
12/4/2004 11:22:41 AMSpector

Great starting point for a game! Like Ackbar you will eventually need to move to directx especially when you start animating buildings and such. A good update would be to allow adding of buildings larger than 1 tile (64 pixels).
(If this comment was disrespectful, please report it.)

 
12/4/2004 1:25:03 PMChris Dwinell

Maybe I could help out in the DX department. I have quite a lot of experience there and I'm very good at math. When you switch over to DX, the framerate will sky rocket making it very easy to add those roads, vehicles, planes, etc. You would have to create 3D objects in order to use DX3D, but for now you could just use DX's 2D capabilities (much faster than VB) Let me know what you think.
(If this comment was disrespectful, please report it.)

 
12/5/2004 12:35:36 PMAli Akbar

good
(If this comment was disrespectful, please report it.)

 
12/5/2004 1:42:23 PMFaraz Azhar

UPDATE IS HERE!!!!!!!! Now roads, sound effects, more buildings, etc. is available! Enjoy pscode.com!! Read the UPDATES.TXT for complete info.
(If this comment was disrespectful, please report it.)

 
12/5/2004 6:38:00 PMLee Stuart Cook

Hi,

This is amazing, it reminds me of the Sim City games.. I cannot wait for the next version.. I hope you win the superior coding contest with this.
(If this comment was disrespectful, please report it.)

 
12/5/2004 7:00:39 PMrhys cartlidge

is it possible to make it available in vb5 cos me and my mates wanna download it but we're stuck with vb5
(If this comment was disrespectful, please report it.)

 
12/6/2004 1:00:19 AMAustin Collins

this is very nice, 5 globes
(If this comment was disrespectful, please report it.)

 
12/6/2004 2:23:52 AMFaraz Azhar

rhys cartlidge: download the code. open the CityBuilder.vbp in notepad, and remove the line "Retained=0". It should make it to open in vb5. but if it doesnt run, means i have some vb6 functions in my code. you can search the net for their vb5 substitutes.
(If this comment was disrespectful, please report it.)

 
12/6/2004 6:14:39 AMFaraz Azhar

Alas! I killed the framerate! I shot it right in the heart!! The framerate drops dead by the time you build anything near the city you see in the screenshot. Im switchin to DX!!!
(If this comment was disrespectful, please report it.)

 
12/6/2004 5:07:02 PMDavid Mamani Enaro

Nice works, congratulations.
But i test it in Win98 and it has memory lack, and of course only run a few seconds.
I also test it in windows xp like you recomend and it runs very well.
(If this comment was disrespectful, please report it.)

 
12/7/2004 5:18:32 AMFaraz Azhar

yes i just found that out by myself too. its not working in win98. i think bitblt and transparentblt are causing a problem. anyways.. enjoy in xp.
(If this comment was disrespectful, please report it.)

 
12/10/2004 2:11:03 AMBrandon Scott

reminds my of simcity 2000
(If this comment was disrespectful, please report it.)

 
12/10/2004 2:04:41 PM

Nice code and a good starting point for a Novice like me......
(If this comment was disrespectful, please report it.)

 
12/15/2004 3:12:15 AMPinoy Ako!

WTH!!!
(If this comment was disrespectful, please report it.)

 
12/16/2004 5:59:51 AMcoolryguy

AWSOME! 5 Globes!
(If this comment was disrespectful, please report it.)

 
12/16/2004 9:24:05 PM

amzingg
(If this comment was disrespectful, please report it.)

 
12/26/2004 3:25:05 PMThorleif Jacobsen

nice, u should make a hp and do not let all get the source :P maby u can sell it on ebay make own cover and join ea-games? hehe :P
(If this comment was disrespectful, please report it.)

 
12/27/2004 4:58:05 AMSyed Muhammad Fahad

Excellent Code .... Great Great and Great :)
(If this comment was disrespectful, please report it.)

 
12/27/2004 6:42:18 AMGREC-DK

Wow dude! your game is excellent and it's great that you are sharing it with us...
5 stars from here...
(If this comment was disrespectful, please report it.)

 
1/10/2005 7:39:32 AMRichard Mewett

By far the most visually impressive city game I've seen in VB - but importantly the interface & gameflow are good as well. This is much more than just a graphics demo (which is all so many VB games seem to be). Well done & I hope you enjoy developing it further.
(If this comment was disrespectful, please report it.)

 
1/10/2005 11:35:35 AMSkeeve_S

Need help with the directX? email me at jfsmith@grbackup.com
(If this comment was disrespectful, please report it.)

 
1/10/2005 1:48:08 PMImam Gunawan

one the most profesional thing i ever saw on visual basic...5 globes from me
(If this comment was disrespectful, please report it.)

 
1/11/2005 9:07:34 AMGreek Freak

i only have one word for ya
OMG!!!
it rulez...really nice work...dude keep up...i really wanna c the next version

P.S Greetings from the little alliens' plannet Greece :P (Oh and Macedonia is Greek)
(If this comment was disrespectful, please report it.)

 
1/13/2005 6:35:46 AMNoRabbit

It didn't work, something with the WMP control... but anyway, it looks very nice.
This message just to encourage you to port it to DirectX or OpenGl. Don't think it's hard because it is not !

(If this comment was disrespectful, please report it.)

 
1/14/2005 8:58:48 PMDaniel Cassar

I use to play transport tycoon deluxe heaps... But do you really need to show the income obove each building? Seems a bit pointless? You just need something in the status bar to show how much money is going in monthly and how much is going out...
(If this comment was disrespectful, please report it.)

 
1/15/2005 12:41:18 AMFaraz Azhar

Well I was making another update for City Builder in which I had set the option to not to show the money transactions (which would increase framerate). But I didnt bother uploading the updated version.. im working on DX right now. :)
(If this comment was disrespectful, please report it.)

 
1/18/2005 6:11:38 AMFrederico Machado

Amazing... Thats a really great job.. congrats...

One question.. You have used those graphics from some other game?
(If this comment was disrespectful, please report it.)

 
1/18/2005 6:19:51 AMFrederico Machado

hmm.. got it.. Transport Tycoon Deluxe...

Keep working on the game.. it's great!
(If this comment was disrespectful, please report it.)

 
1/19/2005 4:01:16 AM

Good Job 5 Global :)
(If this comment was disrespectful, please report it.)

 
1/22/2005 6:26:10 AMMert Dogar

realy super...

"i love Turkey"
(If this comment was disrespectful, please report it.)

 
1/25/2005 1:07:44 AMJacky Wong

Excellent work but don't stop here, keep improve this cool project.
(If this comment was disrespectful, please report it.)

 
1/26/2005 8:42:51 AMMickie Poulsen

HI!
first, good job!!!
I can might help you out with some buildings if you are developing a 3D version? write me at Mickiecp@gmail.com

Please keep this game opensource! :D
(If this comment was disrespectful, please report it.)

 
1/26/2005 11:04:47 AMKillC

I want to help you develop this game further. Few years ago I have done simmilar project. Mail me at mario.danic@gmail.com
(If this comment was disrespectful, please report it.)

 
1/29/2005 4:13:07 AMFaraz Azhar

Thank you very much, I DO need help actually. I will contact you soon. Thanks for helping.
(If this comment was disrespectful, please report it.)

 
1/29/2005 4:54:07 AMA.A. Fussy

Faraz Azhar, can I include it with my apps?
(If this comment was disrespectful, please report it.)

 
1/29/2005 2:49:09 PMcoder86

Great game! I'll be happy to offer help in this project.
(If this comment was disrespectful, please report it.)

 
1/31/2005 2:47:49 PM

bah im getting so many errors while trying to compile in the coding in VB 6 but screen shot looks cool and from others reviews ill give you 5
(If this comment was disrespectful, please report it.)

 
2/4/2005 8:21:43 AM

Its mind blowing great work and i really enjoyed to explorer
(If this comment was disrespectful, please report it.)

 
2/7/2005 6:46:06 AMHappy Lobster

Excellent coding skills, fully functioning game! Some of the best work I've seen on PSC!

Thanks for sharing
(If this comment was disrespectful, please report it.)

 
2/13/2005 9:21:23 AM

Why i get error, when i load it, I can't compile the project. Help Me!! :(
(If this comment was disrespectful, please report it.)

 
2/13/2005 9:54:23 AM

This is Excellent,5 globes from me
(If this comment was disrespectful, please report it.)

 
2/13/2005 12:34:59 PMProject J Admin

Looks good but maybe you can give us a tutorial on making your project flicker free that would be very interesting!
(If this comment was disrespectful, please report it.)

 
2/14/2005 6:47:13 AMFaraz Azhar

Drawing in windows normally flickers.. the 'flicker free' drawing concept is the work around for it. Look in vbAccelerator.com for flicker free drawing information.
(If this comment was disrespectful, please report it.)

 
2/15/2005 8:22:28 PMThomas Swift

The first problem I am running into I belive is because I dont have WMP 9. I am running the one that came factory with XP. After all the bad stuff I have herd people say about the newer media players containing adware & spyware I dont think I want to update my WMP.
(If this comment was disrespectful, please report it.)

 
2/16/2005 1:45:12 PMFaraz Azhar

Well I just upgraded to WMP 10. No spyware yet.. so what you heard is probably a rumor.
(If this comment was disrespectful, please report it.)

 
2/17/2005 11:17:02 PM

wow greate game, 5 job
(If this comment was disrespectful, please report it.)

 
2/26/2005 10:54:21 PM

In the words of the immortal ceral tiger,

"It's GRRRREEAT!!!"

Wow! This is awesome, again like the others if you need help email,

waiting for the next version...

hhi


(If this comment was disrespectful, please report it.)

 
3/2/2005 4:54:19 PMKillC

people visit this:
www.whereisanykey.com/team
(If this comment was disrespectful, please report it.)

 
4/15/2005 4:05:36 AMSPY-3

real nice game needs more devolpment on it though and it reminds me alot of sim city continue to work on this and add more things to build stuff like that
(If this comment was disrespectful, please report it.)

 
4/15/2005 4:06:01 AMSPY-3

forgot to say 5 globes and keep up the good work!
(If this comment was disrespectful, please report it.)

 
4/23/2005 5:13:36 PMtjsniper

I am using windows 2000 and have notice that the dll msjro is missing,for people with this problem, download it here http://www.dlldump.com/download-dll-files_new.php/dllfiles/M/msjro.dll/2.81.1117.0/downl oad.html
(If this comment was disrespectful, please report it.)

 
4/25/2005 4:32:28 PMFaraz Azhar

That file isnt needed actually. I added the ability to compact the database (map file) size if it gets too large, but I removed the compacting code.. so msjro.dll is not needed actually. Just remove it from the refrences.
(If this comment was disrespectful, please report it.)

 
4/27/2005 3:40:00 PMtjsniper

to the other email me on marcus_wal@hotmail.com as i have code for your game(ive got cops,robbers,airships,planes...etc)
(If this comment was disrespectful, please report it.)

 
4/29/2005 6:12:18 AM

it's look good
(If this comment was disrespectful, please report it.)

 
5/5/2005 2:13:43 PMHaiduc Danut

At the startup I receive a message that says that wmp.dll not found. (on Win 98)
I think that that means "Windows Media Player". And I think it's the 9th version. But your code is so big! And I'm a fan of Transport Tycoon Deluxe! I keep thinking wether I should give you a vote...
(If this comment was disrespectful, please report it.)

 
5/11/2005 2:30:29 AMFaraz Azhar

I have written in the Requirements section of README.TXT that this code is built on Windows Media Player 9 Series. But I think it 'should' also work in WMP 8.
(If this comment was disrespectful, please report it.)

 
5/24/2005 7:13:41 PMexperience

This code is awesome !
(If this comment was disrespectful, please report it.)

 
5/30/2005 10:27:12 AM

When i load the project i get the error: Path not found: 'data\resources.res' Then I get lots of errors when i press "start" on the splash screen. Errors during load: refer to ...\line.log for details. I get this about 10 times. Then after pressing OK, i get - Resource with identifier '101' not found.
(If this comment was disrespectful, please report it.)

 
6/24/2005 7:48:58 AMOri Lahav

It's the best code in PSC!
(If this comment was disrespectful, please report it.)

 
7/9/2005 4:29:17 AMBrian Ail

It is good.
-Why are all buildings either brown or grey?
(If this comment was disrespectful, please report it.)

 
7/26/2005 7:12:36 AMNicky Reybrouck

*respect* O_o
Very nice game!
(If this comment was disrespectful, please report it.)

 
7/27/2005 2:38:13 PMgaret

plz help i like the look of this and i wanna try it but it just crashes vb? help?
(If this comment was disrespectful, please report it.)

 
7/27/2005 2:39:24 PMgareth

looks good and i wanna try it but it crashes vb help?
(If this comment was disrespectful, please report it.)

 
12/27/2005 11:16:14 PMTomás

very very nice
one of the best ive seen in vb
very nice work
sound,animation, feeling
too great
(If this comment was disrespectful, please report it.)

 
1/25/2006 3:37:22 AMbaim

can you teach me about VB? Possibly we could be acquainted
(If this comment was disrespectful, please report it.)

 
3/4/2006 9:34:39 AMOrhan Keklik

thanks very nice
(If this comment was disrespectful, please report it.)

 
6/6/2006 5:59:31 PMDanny Sigurdson

This has to be the best looking visual basic game I have ever seen.

You have talent, my friend.
(If this comment was disrespectful, please report it.)

 
6/8/2006 9:19:41 AMkilll

terrific! Just hope can continue to work on it!
(If this comment was disrespectful, please report it.)

 
6/8/2006 9:36:14 AMkilll

It's really the best effect I ever seen in VB. Just don't know the latest version. Hope you can continue!
(If this comment was disrespectful, please report it.)

 
6/12/2006 2:17:00 AMkillzone88

Amazing program!
(If this comment was disrespectful, please report it.)

 
6/19/2006 5:08:18 AMkunam

great
(If this comment was disrespectful, please report it.)

 
8/18/2006 11:54:45 AMNikola

Why i can't download it?
(If this comment was disrespectful, please report it.)

 
8/18/2006 11:56:35 AMNikola

Oh I download it it's great. 5 from me
(If this comment was disrespectful, please report it.)

 
8/25/2006 5:13:43 PMKuangda He

Uh.....
um...
duh...

THIS IS SO GREAT!!!!!!!!!!!!
(If this comment was disrespectful, please report it.)

 
8/31/2006 4:02:16 PMRas

Is VERRY GOOD !!!
(If this comment was disrespectful, please report it.)

 
9/16/2006 10:03:53 AMSreekanth

Thanks for sharing this code; and Great Work
(If this comment was disrespectful, please report it.)

 
9/23/2006 4:13:29 PMsim

I can not believe you did this in VB...
Unbelieveble !!!
(If this comment was disrespectful, please report it.)

 
9/29/2006 3:26:27 AMerick

hey this is so cool thanks for sharing this file!!
(If this comment was disrespectful, please report it.)

 
10/22/2006 6:09:48 PMPaul Rosebush

Quite impressive, very ambitious!
(If this comment was disrespectful, please report it.)

 
12/16/2006 2:39:29 AMblah

nice work! i think you can make a good sim game out of this. i wish i knew dx so i can make a game like this.


few bugs/notes:
when i hold the mouse down and drag it will call error overflow.

when i close a build menu it still builds but i think thats a neat feature to have to see more.

im going to see if i can edit the messages above the building so it wont be to laggy.

i will also try to add population ai system.

i msged you on yahoo before i seen your notice msg on your website which is look very good.

my yahoo is kabrenygreen.
(If this comment was disrespectful, please report it.)

 
12/16/2006 2:41:41 AMblah

5 globes aswell and sorry psc for making you read this in your pre post screening. =X
(If this comment was disrespectful, please report it.)

 
11/13/2007 6:40:36 AMSuhandi

ISVERRY X 1000 GOOOOOOOOD
(If this comment was disrespectful, please report it.)

 
1/14/2009 9:09:58 AMwans

it's cool thanks
(If this comment was disrespectful, please report it.)

 
7/30/2009 9:27:47 PMAlex

This is amazing man :), and I still play Transport tycoon, but now it's Open TTD, a C++ clone, its good, you should try it :) good programming and it even looks like trans.tycoon :)
(If this comment was disrespectful, please report it.)

 
8/1/2009 9:33:39 AMFaraz Azhar

Im a good player of OpenTTD :) this game has taken my mind away. I just play a lot. Its been years ive been playing OTT/TTD game! its never enough.
(If this comment was disrespectful, please report it.)

 
1/19/2011 5:14:47 AMreza parsa nik

age irani hasti khili karet dorosteh dost man
(If this comment was disrespectful, please report it.)

 
8/14/2012 12:46:02 PMmunxter

this system is working only in xp????
so worse,,
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.