Dark Bit Factory & Gravity

PROGRAMMING => General coding questions => Topic started by: Architect_414 on April 26, 2008

Title: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 26, 2008
Didn't see a board for it so i posted here...sorry!

Anyone else use python for demo coding? Poor python seems to have very very little demo coverage so i was wondering if anyone does?
...Im trying to use it! ;D
Title: Re: Python language?
Post by: va!n on April 26, 2008
Afaik our forum member Hotshot is using it too.
Title: Re: Python language?
Post by: Shockwave on April 26, 2008
I think Vain is right, Hotshot is the only one here who's used it.

If you make anything with it though, feel free to post it in the showcase, we'll be happy to look at it I am sure!
Title: Re: Python language?
Post by: Architect_414 on April 26, 2008
I will when iget round to making something worthwhile dont worry!  :D

Having searched for hours, i cant find any sample source for python to do with demo's apart from a simple plasma screen, anybody got some?  ???

Edit: Haha, i just thought, if hotshots the only one who used it...no one's going to have any sample source... ::)
Title: Re: Python language?
Post by: Jim on April 27, 2008
Since Python's a scripting language, I'm not really surprised there's no demo samples for it.  On top of that, Python on Windows is hardly a common thing...:)

Jim
Title: Re: Python language?
Post by: va!n on April 27, 2008
plasma, fractal and other great things coded in python like games:
http://www.pygame.org/project/704/?release_id=1247 (http://www.pygame.org/project/704/?release_id=1247)

Title: Re: Python language?
Post by: Architect_414 on April 27, 2008
plasma, fractal and other great things coded in python like games:
http://www.pygame.org/project/704/?release_id=1247 (http://www.pygame.org/project/704/?release_id=1247)


Yeah pygame, that was what i've been messing with, was looking at PyOpenGL but....no  :D
Title: Re: Python language?
Post by: Architect_414 on April 27, 2008
Since Python's a scripting language, I'm not really surprised there's no demo samples for it.  On top of that, Python on Windows is hardly a common thing...:)

Jim

Taking this into account really, and the fact that i've learn most of the basics of Python. Im going to try...yet another language!
Anyone reccomend one for linux?  ::)
Title: Re: Python language?
Post by: rain_storm on April 27, 2008
Yabasic is available for linux you may like it then again it may not have enough raw power for your needs (its not got any bitmaps or sound support for example)
Title: Re: Python language?
Post by: Architect_414 on April 27, 2008
Yabasic is available for linux you may like it then again it may not have enough raw power for your needs (its not got any bitmaps or sound support for example)
Thanks for your quick reply!
What im looking for is something with the ease of Python, maybe a little harder, but something with enough power.
Im a right fussy git  :'(

EDIT: Having a look at the combination of C++/OpenGL is like on Linux, is it harder than on windows, (This is going to sound really retarded)
But is the C++ Source, different on linux to what the equivilant on Windows would be?

Sorry to be a mindless moron. I thought it would be better to ask you guys since you can give me straight foward answers, unlike google does!
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Jim on April 27, 2008
How about freebasic?
http://www.freebasic.net/index.php/download (http://www.freebasic.net/index.php/download)
It's QBASIC/VisualBASIC-like, compiled, easy to learn and lots of people here have used it.

Jim
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 28, 2008
=O!
I would have used that if i had known it was avalible for linux. Thanks!!!!!
Saves me attempting C++

Now to get the bugger to install....

EDIT:
It really does nto want to seem install...i've followed the directions given to me by a mate and websites but still it says "Cannot find ./fbc"

Ive done sudo ./install.sh -i
Ive done sh ./install.sh -i
but nothing
Any idea's?
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Shockwave on April 28, 2008
You could download FBIDE

http://fbide.freebasic.net/index.php?menuID=56 (http://fbide.freebasic.net/index.php?menuID=56)

It has the IDE and freebasic in one package, pick the package that includes FBIDE and freebasic, I think it's the first one.

This will make setting it all up hassle free.
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Shockwave on April 28, 2008
Ah shit, I just saw you want it for linux..
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 28, 2008
It IS avalible for linux :P
It just doesnt want to install is all  :-[
Title: Re: Python language? (Reccomend Me A Language!)
Post by: zawran on April 28, 2008
Blitzmax works on Linux, but it will set you back $80.  http://blitzmax.com/Products/_index_.php (http://blitzmax.com/Products/_index_.php)
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 28, 2008
Blitzmax works on Linux, but it will set you back $80.  http://blitzmax.com/Products/_index_.php (http://blitzmax.com/Products/_index_.php)
Isn't that similar to DarkBASIC? Game engine thing?

and i never really pay for software  ;)
Title: Re: Python language? (Reccomend Me A Language!)
Post by: zawran on April 28, 2008
Its nothing like DarkBASIC, but since you don't pay for software, then its doesn't really matter.
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 28, 2008
Its nothing like DarkBASIC, but since you don't pay for software, then its doesn't really matter.
Ah i thought it was similar, will check it out when i've got a spare ten minutes from this coursework! Thanks
Title: Re: Python language? (Reccomend Me A Language!)
Post by: rain_storm on April 29, 2008
Yeah DarkBasic is an interpreter Blitz is a compiler what distro are you running? I have a link to installing on OpenSuse :

http://www.swerdna.net.au/linhowtofreebasic.html

might be of some help to you
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 29, 2008
Yeah DarkBasic is an interpreter Blitz is a compiler what distro are you running? I have a link to installing on OpenSuse :

http://www.swerdna.net.au/linhowtofreebasic.html

might be of some help to you

Thanks man, i got it sorted! It turns out that, i had to be sitting inthe correct directory at the same time as installing. I was doing the correct thing apparently, just it wouldnt let me. But now its sorted, i just gotta find me a damn IDE!
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Jim on April 29, 2008
maybe http://www.freebasic.net/forum/viewtopic.php?p=95589&sid=36f168e021dec727d044a4e12b451487 (http://www.freebasic.net/forum/viewtopic.php?p=95589&sid=36f168e021dec727d044a4e12b451487)

Jim
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Pixel_Outlaw on April 30, 2008
I use Blitzmax because of the drawing,sound and imput libraries.

One of these days I'm gonna grow a set and pick up where I left off with C++. (Making "cat" and "pen" classes)
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Architect_414 on April 30, 2008
maybe http://www.freebasic.net/forum/viewtopic.php?p=95589&sid=36f168e021dec727d044a4e12b451487 (http://www.freebasic.net/forum/viewtopic.php?p=95589&sid=36f168e021dec727d044a4e12b451487)

Jim


Thanks! Im at school currently so cant do much here, but i've already got geany installed on the home computer, so i'll have a play around with that later. Thanks again for everyones help!!!
Title: Re: Python language? (Reccomend Me A Language!)
Post by: hellfire on May 05, 2008
Quote
C++/OpenGL [...] is the Source different on linux to what the equivilant on Windows would be?
OpenGL is the same on any platform, but it requires some kind of window to render to.
So your opengl-init-code will require some winapi-calls on windows and some xserver-calls on linux.
Or you just use some cross-platform-stuff like SDL (http://www.libsdl.org).

Quote
Saves me attempting C++
C/C++ is certainly harder to learn but it will pay out.



Title: Re: Python language? (Reccomend Me A Language!)
Post by: Jim on May 05, 2008
You could use glu to get round the Windows/Linux/OtherOS problem.

Jim
Title: Re: Python language? (Reccomend Me A Language!)
Post by: Hotshot on May 06, 2008
I did try Python ageeee  ago and it is interesting language but I dislike the IDE Python.
The code is easier to learn than C++ Thought.

I have no PLAN to code in PYTHON now or the future !!!
I am sticking just one or two programming language(COBRA) and I have already learn C Sharp (I have already finished Math demo program which Benny the hill saw it, I will post it tomorrow in C forum   for everyone to see it).

cheers
Title: Re: Python language? (Reccomend Me A Language!)
Post by: hellfire on May 06, 2008
Quote
You could use glu to get round the Windows/Linux/OtherOS problem.
Well, I counted GLUT (http://freeglut.sourceforge.net) to "some cross-platform-stuff like SDL (http://www.libsdl.org)" :)
I guess that's the real problem with C/C++: you need quite a bit of stuff before you can actually get going.
Forcing the (unexperienced) user to fiddle with linker settings to include additional libs can be quite a confusion at the beginning.
Other packages run straight out of the box.

To stay at the topic, I've once started to make my effects (programmed in C++) modular and use python as a scripting system for synchronisation and compositing.
Doing all code in python doesn't make much sense in my opinion...