gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

OffTopic > CS2D Blitz

#141839 - Jakeohagan - Sun Sep 30, 2007 7:55 pm

Theres a game called Counter-strike 2D a counter-strike clone which is made for the pc, naturally.

Link to Counter-Strike 2D website. http://www.cs2d.unrealsoftware.de/

I recently found a source code and i learned it was made with a program called Blitz 3D

Source Code Download. http://www.unrealsoftware.de/get.php?get=cs2dbeta0100source.zip

Blitz 3D is on this page.http://www.blitzbasic.com/Products/_index_.php

Is it possabile to make a Blitz code work for DS?

for example could you use the D-pad to move player touch screen to move aimer and L Shoulder shoot, A switch weapons, X buy weapons stuff like that.

Can this be done? or is this the same this are trying to convert a gamemaker game.
_________________
God Speed

#141857 - Dood77 - Sun Sep 30, 2007 9:38 pm

It would have to be totally recoded in C, and seeing as it's in a BASIC language, thats probably not too hard to do.

Where the problem would come, though, is in system resources. 4MB of ram and two processors totaling ~90mhz might require lots and lots of optimization.
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#141859 - bean_xp - Sun Sep 30, 2007 9:52 pm

Dood77 wrote:
It would have to be totally recoded in C, and seeing as it's in a BASIC language, thats probably not too hard to do.

Where the problem would come, though, is in system resources. 4MB of ram and two processors totaling ~90mhz might require lots and lots of optimization.


I've played this game, and i'm sure if you re-wrote it on the DS, then it would definately be possible since it's basically using simple 2D tile graphics. I don't think there would be a problem with processing power, but the resolution of the DS might be an issue. (ie not being able to see far ahead!)

#141860 - Jakeohagan - Sun Sep 30, 2007 9:52 pm

Is there a way just to convert the code to C?

because i opened up that source code using the Blitz 3D demo and it's really simple stuff. it just has to have all the right things in side of it.

not only would this be a cool port but if you kept it the same as it is on pc in a way then people could still customize there skins and play custom maps.

-edit-

yeah seeing would be a problem...
_________________
God Speed

#141896 - tepples - Mon Oct 01, 2007 12:20 pm

Jakeohagan wrote:
Is there a way just to convert the code to C?

Is there a way just to convert the Spanish to German?

But seriously, though it would be be possible to write a precompiler that takes some BASIC dialect and makes C, just as the first C++ compiler ("Cfront") took C++ and made C, that might be a bigger project than porting one game.

Quote:
yeah seeing would be a problem...

If the original was for 640x480 pixels, you can start by shrinking every graphic by a factor of 2.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#141908 - Jakeohagan - Mon Oct 01, 2007 2:36 pm

tepples wrote:
Jakeohagan wrote:
yeah seeing would be a problem...

If the original was for 640x480 pixels, you can start by shrinking every graphic by a factor of 2.


it is in 640x480, so how can this be done?

like can a new guy like me do it?
_________________
God Speed

#141914 - keldon - Mon Oct 01, 2007 5:05 pm

Scaling screen output is not difficult; 640x480 divided by 2 is 320x240; the DS is 256x192 (x2 screens) but first thing to do is to get the code to target the DS.

As for a "new guy" doing it, that seems most unlikely as it requires an understanding of what is going on in the code in the first place. Having said that you might be surprised how simple it is to get a basic "something" up, like a player in a room that can swing a knife or something.

One of the first things I did on the GB was figure out how various games work. I still remember the yellow pages in my head (I had a stack of coloured paper and made my notes on that). Before I began coding I figured out that there is probably some sort of basic language involved in games like Zelda - i.e. a script.

I actually recorded these thoughts on my little website. Getting started isn't as hard as it may seem! Of course I wasn't just starting out then, but in terms of what I know now my thoughts were very basic.

#141936 - kusma - Mon Oct 01, 2007 10:19 pm

tepples wrote:
Is there a way just to convert the Spanish to German?

http://babelfish.av.com/, spanish -> english, english -> german

#141946 - Dood77 - Tue Oct 02, 2007 3:29 am

kusma wrote:
tepples wrote:
Is there a way just to convert the Spanish to German?

http://babelfish.av.com/, spanish -> english, english -> german

Is the conversion flawless, and does it offer the most efficient way of saying what was said in the previous language?
(reapply the analogy to the BASIC -> C code)
_________________
If I use a term wrong or something then feel free to correct, I?m not much of a programmer.

Original DS Phat obtained on day of release + flashme v7
Supercard: miniSD, Kingston 1GB, Kingston 2GB
Ralink chipset PCI NIC

#142258 - Jakeohagan - Sun Oct 07, 2007 1:20 am

I am trying to learn to do some simple stuff with C++

i have a friend thats taking a C++ class, he said he could help me later on.
_________________
God Speed