PDA

Click to See Complete Forum and Search --> : Check this out...


DarkJedi9
Feb 22nd, 2001, 06:03 PM
This is my game Tanks. I'm sure some of you, many of you actually, have answered questions about it so I figured that I'd put the exe up if anyone wants to check it out. I haven't worked out all the little details, like changing the turret's angle and if you switch windows you'll still have some problems, but you'll at least be able to get the idea. Hopefully this will work. And of course, any suggestions are welcome.

P.S. What's this thing about a poll? I'm going to check it, but I have no idea what it does.

P.P.S. The run-times and ocx and all that jazz aren't included; I'm assuming that everyone here has all the stuff I have. It's really little by its self. Only like 16.7k when it's zipped, 64k unzipped.

Sastraxi
Feb 22nd, 2001, 06:54 PM
Sorry, but the tanks didnt show up on my comp so I had to rate it at 2.

:( - I didn't want to, though

It's kinda like Scorched Earth, right?

DarkJedi9
Feb 22nd, 2001, 09:03 PM
The tanks don't show up?! That's no good. I wonder why that happened? Did you try firing anyway? Try firing 45 degrees, 50 m/s. If nothing happens, try 0 degrees, 50 m/s. I want to see if it's not drawing them or if it's placing them wrong. It might be putting them under the buildings. Something similar happened when I tried to run it at school. Hold on, I'm gonna try something.

And yeah, it's kinda like scorched earth, although i actually modeled it off the predecessor (sp?) to scorched earth. The original didn't have all the perks. It was actually a lot like mine, but instead of buildings, it used a randomly draw sinusoidal curve, like a rolling hill.

DarkJedi9
Feb 22nd, 2001, 09:36 PM
I changed the way it places the tanks. Before, it would go down the screen until it hit a pixel of the building's color. Then it would move back up enough pixels and draw the tank. I changed it so the building's y values are stored and it just goes right there. If this doesn't work, something might be wrong with the drawing itself, and I have no idea what that would be, since it works over here.

Another thing. If the tank placement works now, the shell might go right through the buildings because it seems the color detection isn't working too well. If so, I can fix that too, but I'll give this a shot. See what happens.

DarkJedi9
Feb 22nd, 2001, 10:13 PM
Heh, I'm the only one replying here. :D

Anyway, I gave the x,y thing a shot with my building collision detection, too. Might be a little shaky though.

DarkJedi9
Feb 23rd, 2001, 09:06 AM
Thanks! I was aware of gorillas. I used to play that at my cousin's house back when they were the only people I knew with a computer. I originally was going to write a space monkeys game with blue gorillas and a green banana, but the gorillas were too hard to draw and the banana would've been a lot tougher, since it needs to spin and all that. They tanks were just a lot easier.

Jotaf98
Feb 23rd, 2001, 11:42 AM
Hey, there's only one problem: when I run it, it starts with a black screen and I still can fire! But when I click "New Game" it's fine. You should draw a frame in the "Timer" event of a timer with an interval of 1 milisecond, because if you're using BitBlt it doesn't work in the Form_Load event on some computers (like mine :) )

Anyway, 5 stars ;)

SteveCRM
Feb 23rd, 2001, 12:37 PM
uh...one tank faces and shoots the wrong way!!!!!!!!

DarkJedi9
Feb 23rd, 2001, 07:34 PM
Jotaf, I hadn't thought about being able to fire before starting. What do you mean with bitblt in the form_load event? If you mean the black startup, it's supposed to do that because I wouldn't know what information to start a game with. Maybe I should have a little title pic or something. Oh, and thanks for the five stars. :D

Steve, I was aware about the tanks pointing the wrong way. That's one of the things I need to work on. I'm gonna use sin and cos to or something like that to properly elevate the barrels. The tanks are symetrical w/o barrels so all I have to do is draw in the barrel and the tank will face the right way.

Jotaf98
Feb 24th, 2001, 07:07 AM
Hum... when I inputted some values and pressed Enter, it fired - but no tanks/terrain! That's what happened. You should enable these controls and hide the initial pic only once the game has started ;)

Oh, and I forgot to rate you 5-stars when I posted this message. Don't worry, I'll vote now :)

DarkJedi9
Feb 25th, 2001, 02:42 PM
Yeah, that's what I thought would happen. I just didn't bother to disable the firing until a game was started. Now, if it says you hit someone, I would wonder...

Jotaf98
Feb 26th, 2001, 04:04 PM
No, it just fires (and draws the firing line). You should fix it not to confuse new players ;)

MidgetsBro
Feb 26th, 2001, 11:02 PM
Are you going to add more to this game? It's very addicting, but I was hoping it would be more like the game BattleTanks on the MAC. I loved that game when I was in 8th grade and it was on all the computers in the technology lab. You should add the ability to buy items, and you should add network support, if you are up to it.

John
Mar 1st, 2001, 05:10 AM
Darkjedi,

Please post the source code if you want to use the attachment feature on this site. I have had complaints from people that they have had funny things happening to their PC after running your EXE.

People who run unknown EXEs - you're taking your life in your own hands!

Thanks,
John