• Welcome to Dark Bit Factory & Gravity.
 

Cobra Demo Released

Started by mike_g, January 02, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

mike_g

Just incase any of you guys dident know, demo for the Cobra programming language is available.

I am having a poke about with it at the moment and thought I'd mention it. Link Here O0

Shockwave

Cheers Mike :) Please let us know how you get on with it. A Cobra section for the board is a possibility if there are enough people here using it.
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

I have been dabbling with it. But am getting division by zero errors. :'(

Thanks and cheers Mike_G for the news of the demo.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

mike_g

To be honest I havent got much further than "Hello World" myself. I like the IDE and some of the samples but so far I havent found the language too intuative. I probably just need to get used to it a bit first. I was going to have a go at making a simple game for a compo but that sites gone down for the moment :(


Ghost^BHT

QuoteI have been dabbling with it. But am getting division by zero errors. Cry

Thanks and cheers Mike_G for the news of the demo.

Then don't divide by 0  :inspired:

Kidding :) show us an example Clyde.


Shockwave

I can help with that ;) You get a divide by zero error when you try to divide an integer by 0.

Better?
Shockwave ^ Codigos
Challenge Trophies Won:

Clyde

@Wham: There's a little something in the General Code + Techniques bruv.
@Shock: Cheers.

What is slightly lacking is content in the help ( maybe this is as it's a demo version ), as I'm unfamilar with alot of the commands.

None the less, Top trumps for releasing a demo version.
8)
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Ghost^BHT

@Clyde : In your cobra star prog 

the StarX[a] = Rand(-30000,30000) will at some point evaluate to 0  and  TX=( StarX[ a ] / StarZ[ a ])+( XRES2 ) will therefore be divided by zero at some point .I think that's where your problem is

Stonemonkey

#8
I think it's the division by StarZ[a] , make it reset the values if StarZ[a]<=0 as well as the points going offscreen.

EDIT: <=0

Clyde

Thanks all. :)
As a make shift fix, I used this in the code:


If Starz[ a ]>1 Then   
     
            TX=( StarX[ a ] / StarZ[ a ])+( XRES2 )
            TY=( StarY[ a ] / StarZ[ a ])+( YRES2 )
         
EndIf
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won: