I've been working on it for the last 4 months and this is all I've gotten done so far. I still need to fix wall collision,add bullet collsion, weapons, a score menu, and a buy menu.
It is important to run the game at 1024x768.
please leave comments.
How to host a game:
1.Click host
2.choose a team
3.Press escape and give the IP address that is in the IP address box to other players
How to connect to a game:
1.enter the server IP in the IP address box.
2.click add IP
3.click connect
4.choose a team
Controls:
W,A,S,D and SPACE
*UPDATE 10/3/04*
I've zipped the code, exe, and map editor together.
No game updates though.
Map editor located in the maps folder.
*UPDATE 7/8/05*
Check out www.cs2d.com for a really good 2d
counter-strike game.
Look for a demo of a new game Im working on soon.
Last edited by alexDrewn; Jul 8th, 2005 at 01:20 PM.
After an incident that i wasnt around to witness nobody runs exe's anymore. people have a tendancy to be evil and write programs to destroy other peoples pc's.
Yes, I totaly agree with BodwadUK. It's not smart to just post an exe file, people can't be to safe these days and besides, if you don't post your code, how are we supposed to learn anything from your writing, or help you out with your code. Post the code too, so people can se what you've written =)
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
BTW you're not clipping the tiles at the edge. And also you not clearing the back buffer I can see (this isn't a problem but that how I could tell you weren't clipping the edges )
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Posted by alexDrewn Electroman , did you run the game at 1042x768?
There was an option My desktop id at 1280x1024 I suppose that could be it, mind I advise you do it properly and clip the edges, means you don't nne to do as much painting too
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Originally posted by alexDrewn
The sprite might not be changing frames right because i didnt make the animation time based.
What I ment was that if you hold the shooting button down when you are moving in a direction, h puts the gun to his sholder and shoot, that does not happen if he run upwards...
Posted by alexDrewn What do you mean clip the edges? Do you mean I shouldnt draw the tiles that arent going to be seen?
I mean the Tiles are part on and part off the edges will not get drawn because in the Blt routine if the operation your doing doesn't fit on the surface it just ignore the whole operation and doesn't draw any of the tiles.
So what you do is alter the DestRECT to make sure its not going off the surface, then you alter the SrcRECT to select just the portion of the image that goes into the size of the DestRECT you now have.
Did that make sense? I know I probably didn't word it the best I could do but I didn't know how much detail I should go into cos I don't know how much you know .
Posted by alexDrewn Has anyone played with other people yet?
If you run the game at 1024x768 the frame rate will dramatically drop.
Are you saying even though i'm running it at a higher res now that if I put the res down to 1024x768 then it'll run slower? It actually runs at a good speed how it is anyway .
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Sorry I still dont understand. I draw only part of the tiles that line the top and left side of the screen. If you run at a higer res than 1024x768, youll see that the very top and very left tiles are only a fraction of a full tile. And that the right and bottom tiles are full times.
But the game is messed up at a higer res than 1024x768, because the game doesnt fill the whole screen.
I meant to say any higher than 1024x768 will have bad frame rates, at least when playing with someone else for some reason.
Last edited by alexDrewn; May 21st, 2004 at 02:45 PM.
Ow, what post does it use BTW for the multi player? just becuase I would need to allow my Firewall to unblock it if I played it online.
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Yeah I meant port, dunno what I was thinking. Only works on LANs how come , I only have the one monitor so that wouldn't really work for me .
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
If you know their IP and they know you want to connect, then yes, you can play through the net. The basic idea is:
-Person 1 tells port X to listen
-Person 2 sends connect request to person 1's ip on port X
-Person 1 receives request and accepts (or denies) the connection
-Person 2 receives confirmation of acceptance and the connection is officialy established
Don't pay attention to this signature, it's contradictory.
Posted by Tekken I'd love to try the game, but a little problem... It won't run, When I try to open the file i get
What os are you using? I'm on XP and no really wierd programs installed so its not likely to be software conflict.
Possibly this just won't run on XP (High Technology my ( | ) )
You do have the VB IDE installed on that PC? The ocx file would have came with it .
When your thread has been resolved please edit the original post in the thread ()
and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.
Thanks D3,
Thats just a muzzle flash though. I never got around to adding bullets yet.
I havent worked on this game for a long time im really busy with school. Digipen is really tough this year.
Im thinking about porting the game over to c++ and using D3D.
I've attached my lastest build. If you have winsock errors, run the winsock program that I have included. DO NOT RUN the winsock program if you have no errors.
Collision is also really F'd up.
The most people I've had connected was 4, and it only lastest about 8 minutes before the game crashed. But it was awesome while it lastest. Even thougt all we did was run around.
Very impressive. I once had this idea as I love counter-strike. It looks like you draw the gun seperate from the player, is that true? It would almost have to in CS. Also are you using DX? It seems not with all the windows controls you show. If you aren't you most likely show as that would run faster. The dust layout isn't there. Seems maps will be limited due to the fact that multiple levels would be hard to pull off, though not impossible. I think this is one of the reasons I didn't follow through.
Where did you get that sprite of the CT? I like it. I might pick up on making a version of this game still.
Hello alexDrewn,
Excellent work buddy.
I was able to play the game on LAN with 3 guyz, was gud but crashed after some time. Have some suggestions.
1. The game doesnt displays the whole map. On my sys. on 1024x768 resolution, only half the screen contained the map, the other half was blank. When i moved onto my right, then the map was displayed on the right.
2. Also, its not catching diagonal keys like DOWN+RIGHT keys. U can do that pretty easily so that the character moves diagonally.
3. Also, on my sys. with a RADEON SAPPHIRE 9800 PRO, the frame rates were pretty dismal. U can do better than that.
4. And last, chk why the hell is it crashing. Mayb some overflow or memory leak.
Overall, a good attempt. 3 cheers & 4 stars (****)
If Not VB Then Exit
------------------------------------------------
visit me @ http://mzubair.50g.com/
Hey, nice game. It runs well on my cmouter, but the screen problem is there for me as well. It doesnt display the whole map, until i walk into the other side. its weird. aside from that, good game. Keep at it.
No, I haven't looked into it. Are you sure you downloaded the right .ocx and that it's in the correct folder? If you have and it still isn't working, you may need to register the control. I forgot the program for this but I can look it up if you need it.
damn i smell some major profit from a phone game, but i suggest chaning it to not include the words "counter strike" else sierra might bring down some sort of law suit