Slick Forums

Discuss the Slick 2D Library
It is currently Wed May 22, 2013 9:20 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Fizzy in the Manual!
PostPosted: Fri Feb 10, 2012 2:25 am 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
Hello Everybody, Kenkron here.
Today I finished entering a section in the manual for fizzy. It only covers a few basic points, but if you're new it should help you get started. If you are not new and can contribute, please add to the fizzy entry, or fix any changes I might have made. Physics seems to come up fairly often on the discussion boards, and I hope this entry will help.

(note: the manual uses a branch I made of the nanodeath repository that implements impulses and scaling.)

_________________
"Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"


Top
 Profile  
 
 Post subject: Re: Fizzy in the Manual!
PostPosted: Fri Feb 10, 2012 7:03 am 
Offline
Regular

Joined: Sun Oct 25, 2009 5:24 pm
Posts: 118
Where can we find it please? Guess I'm blind :D


Top
 Profile  
 
 Post subject: Re: Fizzy in the Manual!
PostPosted: Fri Feb 10, 2012 3:57 pm 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
http://slick.cokeandcode.com/ then go to documentation wiki, then to user manual. It should be under utilities.

_________________
"Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"


Top
 Profile  
 
 Post subject: Re: Fizzy in the Manual!
PostPosted: Sat Feb 11, 2012 10:01 am 
Offline
User avatar

Joined: Thu Oct 27, 2011 5:30 pm
Posts: 42
It look realy easier as the "normal" Box2D and the manual truly help a lot!
But :) "The constructor World(...) is undefined" appears. I know what it mean
and cant see anything wrong with my code. Import check, declare world variabel check...

http://pastebin.com/XRHtjAbJ

_________________
.


Top
 Profile  
 
 Post subject: Re: Fizzy in the Manual!
PostPosted: Sat Feb 11, 2012 9:22 pm 
Offline
Oldbie
User avatar

Joined: Thu Jan 13, 2011 4:42 pm
Posts: 349
You're right! I fixed it to use the World(gravity) constructor. Thank you for pointing this out.

_________________
"Artificial intelligence will never be a match for human stupidity" - "Jamos Kennedynos"


Top
 Profile  
 
 Post subject: Re: Fizzy in the Manual!
PostPosted: Sat Mar 31, 2012 9:07 am 
Offline

Joined: Fri Mar 30, 2012 2:45 pm
Posts: 3
Hey Mr. Kenkron, I have a question for you. When i try to draw the body to the screen is this code all right?

Code:
g.drawImage(floorTexture,
            floorBody.getX(),
            floorBody.getY());


Where floorTexture is an image with the width and height of floorShape.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group