Welcome, Guest. Please login or register.
May 26, 2013, 02:59:08 am

Login with username, password and session length
Members
Total Members: 488
Latest: Wimmie
Stats
Total Posts: 7309
Total Topics: 1178
Online Today: 7
Online Ever: 229
(April 05, 2011, 09:10:50 am)
Users Online
Users: 0
Guests: 1
Total: 1
Permissions

A Squeakyduck Design product
Demo Versions
 Pages: [1]
File Repository
Cobra / Cobra 3D Demo Cobra / Cobra 3D Demo
10956 Kb

This file is a combined demo of Cobra and Cobra3D in one simple install.

Example files can be found in the "My Documents\My Cobra Projects\Examples" directory.
Feel free to ask questions in the forum.

Please note
-------------

Cobra3D is an add-on module to the Cobra development language which must be purchased separetely.

Cobra 2D Physics Demo 1 Cobra 2D Physics Demo 1
1504 Kb
Small tech demo showing off the 2d Physics engine which will be available as a Beta in the next version of Cobra.

This one shows a number of bodies connected in a chain, interacting with a pole mounted on a powered rotational joint (the powered joint is part of the engine).
Cobra 2D Physics demo 2 Cobra 2D Physics demo 2
1504 Kb
Small tech demo showing off the 2d Physics engine which will be available as a Beta in the next version of Cobra.

This one shows 2 powered carts.
Cobra 2D Physics demo 3 Cobra 2D Physics demo 3
1504 Kb
Small tech demo showing off the 2d Physics engine which will be available as a Beta in the next version of Cobra.

This shows a large number of boxes falling onto a conveyer, made up of powered wheels.

This version will go a bit slow as the boxes build up, but a newer optimized version is currently in the works.
Cobra 2D Physics Demo 4 Cobra 2D Physics Demo 4
1811 Kb
Small tech demo showing off the 2d Physics engine which will be available as a Beta in the next version of Cobra.

This demo has a number of features:
  • Cobra2D the OpenGL accelerated 2d Engine
  • Physics controlled sprites (Once physics enabled, the sprite position/angle is auto controlled)
  • Collision hulls are used to define the sprite regions along with physical properties like mass, restitution (bounce) and friction (notice the bouncy ping pong balls, less bouncy tennis balls).
  • All media is packed into the exe
Just to show how easy it is, here is the code :

var
b1,afloor:element


i,c : integer
lt:integer

procedure Newthing
var
cc:integer
begin
cc = Rand(1,8) // pick a sprite at randon
b1=loadSprite('shape'+cc+'.png') // load it up

// load it's hull
SpriteLoadHulls(b1,'shape'+cc+'.hull')

// place it at a Random position
PositionSprite(b1,400+rand(-350,350),32)

// link sprite to physics engine, with defaults
// for mass, friction and restitution
// (can be overriden in the hull definition)
D2DLinkPhysics(b1,1,0.3,0.2)
end

begin
openscreen


// Freeze the timers so the physics
// doesn't jump at the start
 Freeze

// set up the physics world
D2DWorldCreate(-100,-100,100,100,0,10,true)
D2DSetScaling(0,0,10,10)

// and an invisible Floor for things to land on
afloor = d2daddbox(200,5,0,0.5,0,0,60,0)

// start off with one thing
newthing
c=1
UnFreeze // release the timer

lt = millisecs
while not keydown(vk_escape)

// create new sprites every half second
if (c<80) and (millisecs-lt > 500) then
newthing
lt = millisecs
inc(c)
endif

flip
wend

closescreen
end
Cobra Crayon Cobra Crayon
1336 Kb
A quick demo I threw together in the style of the 'crayon physics' style games which seem so popular.

30 minutes work (roughly) so some of it is a bit hacky ;)
Source code included to show how easy it is.
Tech Demo 17-06-2008 Tech Demo 17-06-2008
1859 Kb
I've decided to try and do a few more demo's, so here is the first one.

Demo of Cobra3D Module.
Features
Water
Dynamic Cube mapping
Particles
Lens Flares
Skydome with automatic Day/Night support

Developed on a machine with a low end intel chipset, so should work on most machines.
Cobra Physics 3D exe demo Cobra Physics 3D exe demo
1785 Kb
A quick exe to stress test the new 3d Physics module for Cobra 3D.
 Pages: [1]