2D Physics example: Line Of Sight with Chipmunk4PB

Advanced game related topics
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

Techdemo (at the momentl).

Screenshot:
Image
Download:
http://www.morty-productions.de/icesoft ... fSight.zip (86.1 KB)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Zach
Addict
Addict
Posts: 1656
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by Zach »

Cool man :mrgreen:
Image
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by void »

This is gorgeous.

How far away is the wrapper?
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by Fred »

Nice :)
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

void wrote:This is gorgeous.

How far away is the wrapper?
I think it is ready for take off ;-)
But before I reales it I want to write a small 'Angry Birds' example with the Chipmunk4PB wrapper at least.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by Shield »

Runs slower and slower, after a couple of seconds the line of sight isn't recognized correctly anymore
(full circle is being displayed all the time) and the application uses almost 2GB of ram after 20 seconds.

Something seems to be wrong there...
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by Fred »

May be the event loop isn't correct, and messages stack up.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

There was a 'Memory Leak' on the MP3D engine. Fixed on the MP3D engine.
I will upload a new version (with two lights) and fixed leak (MP3D)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

Ok. Here is it. With two lights now.
Please try it. It should no longer leak and frozen.

And it have some more features:
You can switch on/off the displaying of objects (key: [1] and [0])
You can catch the objects and move it pressing the left mouse button:

Screenshot:
Image

Download:
http://www.morty-productions.de/icesoft ... ght_2L.zip (93.4kb)
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by void »

Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
zxtunes.com
Enthusiast
Enthusiast
Posts: 375
Joined: Wed Apr 23, 2008 7:51 am
Location: Saint-Petersburg, Russia
Contact:

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by zxtunes.com »

6fps ... :?
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by void »

IceSoft wrote:
void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.
I am less concerned about price and more concerned about whether it will be a binary-only release.
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by IceSoft »

void wrote:
IceSoft wrote:
void wrote:Looking good. Have you decided what kind of terms you'll be releasing the wrapper under?
I think the Chipmunk4PB (for Chipmunk 6.1.1) will not released for free.
Only the Chipmunk4PB (for Chipmunk 5.3.5) will be still free.
I am less concerned about price and more concerned about whether it will be a binary-only release.
It will be delivered like the MP3D engine.

A binary release with some demos (also binaries) and with lot of example codes.
Demos will be written by users which has used the Chipmunk4PB 5.3.3 version within his programs (e.g.: AndyLy with ForthRaider)
Examples will be the same as you can find with the Chipmunk distribution plus some more of course.
And last but not least: Chipmunk4PB will be have more additional features/helper function which willl help to write 2D (physics) games easier and faster as with the PureBasic nativ code only.
zxtunes.com wrote:
6fps ... :?
Currently it is not optimized. I got 10 FPS as you can see on the screenshot.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: 2D Physics example: Line Of Sight with Chipmunk4PB

Post by void »

IceSoft wrote:It will be delivered like the MP3D engine.

A binary release with some demos (also binaries) and with lot of example codes.
That's unfortunate. I was hoping to be able to use this, but I suppose I'll have to put together my own solution.
Post Reply