Panda Hack

User projects written in or related to FreeBASIC.
N3trunn3r
Posts: 85
Joined: Feb 14, 2008 15:48

Panda Hack

Postby N3trunn3r » Feb 15, 2008 12:09

Hi, i am from the BlitzBasic community, tried FreeBASIC and i have to say that FreeBASIC has a very high quality/same as commercial BlitzBasic and i want to use it because it's free. However to learn FreeBASIC i wrote a little game called "Panda Hack", have fun with it:

Panda Hack is a Rogue like where the game purpose is
to hunt pandas and to make money by selling their meat.
Collect money, buy ammo, fight the demons to get darts
and finally kill some pandas and sell their meat.
Then get to the next zone... to kill even more pandas.

Image

Get it here (ver 1.0):
http://www.filesend.net/download.php?f= ... 68ac10c955

The source code is crappy here and there. I can code better, but i just wanted to finish the game. I'm sure there are some bugs, i had no beta testers *making-excuses* - Shush! Whatever, play now :)
theuserbl
Posts: 29
Joined: Dec 01, 2005 13:03

Re: Panda Hack

Postby theuserbl » Feb 15, 2008 20:07

N3trunn3r wrote:Hi, i am from the BlitzBasic community, tried FreeBASIC and i have to say that FreeBASIC has a very high quality/same as commercial BlitzBasic


Nice, to see that an additional person comes from BlitzBasic to FreeBASIC.

The games on the BlitzBasic-side seems to have more effects and looks more professional like the games on games.freebasic.net I think.


What me interests is: What do you think are the advantages of BB and what are the advantages of FB?

And how to bring the advantages of BB over to FB.

For example, where you have experience with BB and FB, what do you think about porting minib3d to FB?

What can be added to http://code.google.com/p/fb-extended-lib/ to make it better?
Lachie Dazdarian
Posts: 2230
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Postby Lachie Dazdarian » Feb 16, 2008 1:42

Interesting idea and solid ASCII design. Only, the gameplay is really lacking. The game requires no strategy, and it's turn-based. Also, the controls are very limited. You never give any choice to the player what to do in the shops or similar. It's all about walking around and taking care not to walk into a demon without darts.

Well, I hope you'll take care of this if you ever venture into making a sequel.
duke4e
Posts: 717
Joined: Dec 04, 2005 0:16
Location: Varazdin, Croatia, Europe
Contact:

Postby duke4e » Feb 16, 2008 4:11

Blitz programing engines have awesome game-creation orientend approach and that is it's main strength. The closest thing in FB is HGE, but I'm still searching for awesome/simple hardware accelerated FB graphics library. Maybe one day we'll have fbgfx.bi for hardware accelerated graphics and from that day FB will be GOD!
N3trunn3r
Posts: 85
Joined: Feb 14, 2008 15:48

Postby N3trunn3r » Feb 16, 2008 13:45

What me interests is: What do you think are the advantages of BB and what are the advantages of FB?

advantages of FB:
---------------------
The advantages of FB is (for me) that it is free and Open Source.
I want to teach other people how to write games, i can't do that with BB without letting other people buying copies.

I am not a top-of-the-line coder, i never needed to used TYPES or even PTR (i could if i would). So i am probably not the right guy to ask witch syntax is better. But as far as i can see is there no big difference between the syntax. It was quiet easy to go from BB to FB.

advantages of BB:
---------------------
Well, BB is easier to use, for example you want to load an image, mask it and draw it, you just write:

Code: Select all

theimage =LOADIMAGE("gfx/logo.png")
MASKIMAGE theimage,255,0,255
DRAWIMAGE theimage,x,y

In FreeBASIC you need to understand and choose a library. Set the library stuff and write an easy to use function, to just draw an image.

In Blitz you can just start. With sound, images, 3D, I/O...
It is just ONE library for almost everything. (that makes it very easy to read the code of others and learn from it).


I think if you want to write an application in FB or C like. The first thing you do is to thinking about witch library is best. And they make new ones every day. I really would like to see it all put together, simple stupid.
A set of several one-purpose-libraries each for one special use. Like the guys from GNU do it with their applications.
For example someone makes a Retro game lib... but i just want this one GFX feature out of it, and then i need BASS do get my sounds done but it can't use it under Linux...

For Christmas i really wish for:
"set of super-portable-one-purpose-libraries witch have an alike syntax, witch can be used in all good programming languages"
That would be really cool...

What can be added to http://code.google.com/p/fb-extended-lib/ to make it better?

Thats up to what "many commonly used functions" are.
Sound i guess is one. But as i say the best thin is just put it all together. In my eyes people are just rewriting everything. Just confusing.


Only, the game play is really lacking

Yea it's really crap :D
I just wanted to learn FB. The next game will bet much better ;)


However it is not that hard to make games in FB like in BB.
BB is just more popular. In time FB will take over i guess...

For example, where you have experience with BB and FB, what do you think about porting minib3d to FB?

I can't do that, i'm not that good. Just want to make my small small RPGs... :)
badmrbox
Posts: 659
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Postby badmrbox » Feb 16, 2008 15:45

Well, BB is easier to use, for example you want to load an image, mask it and draw it, you just write:
Code: ‹ Select ›

theimage =LOADIMAGE("gfx/logo.png")
MASKIMAGE theimage,255,0,255
DRAWIMAGE theimage,x,y


In FreeBASIC you need to understand and choose a library. Set the library stuff and write an easy to use function, to just draw an image.
That's not quite true. You can just do

Code: Select all

Dim myImage As Any Ptr = ImageCreate( 48, 48 )
BLoad "picture.bmp", myImage
Put (10,10), myImage
ImageDestroy( myImage )
to use FBGFX2. That's easy too ;).
counting_pine
Site Admin
Posts: 5716
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Postby counting_pine » Feb 16, 2008 17:51

At a glance, it looks like most of the Blitz BASIC syntax is non-quirky - just standard subs/functions, and perhaps some objects as well. It might be possible for someone to reimpliment those in FB, to get pretty much identical functionality.
jevans4949
Posts: 1118
Joined: May 08, 2006 21:58
Location: Crewe, England

Postby jevans4949 » Feb 17, 2008 1:02

Hunting Pandas?

Obvoiusly not a nature-lover then ...
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

$$$ Anti-Panda $$$

Postby DOS386 » Feb 17, 2008 2:45

the game purpose is to hunt pandas and to make money by selling their meat


SORRY but this is not inviting to me :-(
N3trunn3r
Posts: 85
Joined: Feb 14, 2008 15:48

Postby N3trunn3r » Feb 17, 2008 9:27

Well, i am a nature lover. And senseless violence is fun as long as its not for real ;)
I was little tiered of the "classic adventurer". Maybe i could make something different :)
Personally i prefer playing classical nethack.
roook_ph
Posts: 402
Joined: Apr 01, 2006 20:50
Location: philippines
Contact:

Postby roook_ph » Feb 17, 2008 9:52

yeah why dont you change your animal to whales? panda and polar bear and whalemeat

just kidding ;)
banon
Posts: 74
Joined: Feb 14, 2008 1:38

Postby banon » Mar 07, 2008 1:26

very nice, i made a simple rougelike in c++ a little while ago

but this kicks its ass (as well as the panda's) ;)
Pritchard
Posts: 5424
Joined: Sep 12, 2005 20:06
Location: Ohio, USA

Postby Pritchard » Mar 07, 2008 1:55

I liked this game a lot. Very fun :D

At a glance, it looks like most of the Blitz BASIC syntax is non-quirky - just standard subs/functions, and perhaps some objects as well. It might be possible for someone to reimpliment those in FB, to get pretty much identical functionality.
I wish I knew BlitzBASIC. Not sure if they'd be happy about anyone replicating their library's functions, however.

In FreeBASIC you need to understand and choose a library. Set the library stuff and write an easy to use function, to just draw an image.
Well FB comes with a graphics library. There are in fact people who would rather it didn't. Most languages don't come equipped with this kinda stuff :-) Not like it causes FB any bloat. FB only includes what it needs in your compiled programs.
banon
Posts: 74
Joined: Feb 14, 2008 1:38

Postby banon » Mar 07, 2008 13:54

if you read the quote above
that is basically why i chose freebasic, i had to write a program for the science fair and c++ would take too long. so i used fb and fell in love with it

and i won a computer science award (but i only had 1 competitior), and 80 dollars cad

Return to “Projects”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests