Nape Physics.
Discussions and help with Nape physics engine.


Home » Nape Physics » Community Creations » Tutorial Series
Tutorial Series [message #1356] Fri, 14 October 2011 07:54 Go to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Hey guys,

I'm making some Tutorial movies for Nape - I don't pretend to be super awesome at physics engine or programming, but I've been messing about with Nape for a while now and am depressed at the fact that there is such little documentation for such a great engine. So I've started some tutorials on getting it all set up and everything.

My blog is @: http://spgamestudio.blogspot.com/
And my YouTube channel is: http://www.youtube.com/user/SPGameStudio?feature=mhee

If anyone could watch through them and point out if you notice anything blatantly wrong it'd be awesome. I'm going to be writing tutorials for each milestone because I know that milestones often break some functions.

Thanks!

Schrodinger.


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #1364 is a reply to message #1356] Mon, 17 October 2011 09:01 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
I'll watch them tonight, but perhaps you might consider contributing to the nape documentation itself? (documentation generator compiles on windows/mac/linux and it, together with the xml descriptors are available on github)


I created nape!
Re: Tutorial Series [message #1365 is a reply to message #1356] Mon, 17 October 2011 09:18 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
SPGames wrote on Fri, 14 October 2011 07:54
I'm going to be writing tutorials for each milestone because I know that milestones often break some functions.


If by that you mean you are going to be writing tutorials for say, older milestones like milestone 3/4/5 then i'm not sure that would have any worth.

But by all means any tutorial should perhaps state what version it was written with in mind at the present time in case a new milestone (say milestone 7) changes something.

---

Though i do again suggest you contribute to the nape documentation as it's open source Smile


I created nape!
Re: Tutorial Series [message #1369 is a reply to message #1365] Mon, 17 October 2011 14:06 Go to previous messageGo to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Hey Delta, much appreciated with the response. How do I get into edit the documentation, I'd be only too happy to help. I won't be writing tutorials for the older milestones but will continue to update the tutorials for future ones that you happen to produce. Thanks again mate!


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #1370 is a reply to message #1356] Mon, 17 October 2011 14:49 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
new nape is hosted on github (https://github.com/deltaluca/nape)

to work on the documentation, you'd need to clone the repo and then everything for the documentation is in the 'doc-gen' directory

there is a makefile in there which is for unix systems (similar commands can be used on windows), you'll also need haxe and my preprocessor caxe (caxe is on github also and compiles for windows and unix systems).

implementing the clean_run make option might be a bit hard on windows, but it is not really necessary to use that command at all, what you'll need to implement on windows would be the 'build' option only to compile the generator (might need to modify the arguments to haxe if you're not on a 64bit system)

from there, the default is to supply the generator with no arguments, in which case it will use every .xml file it can find in the xml directory. Or if you're just building a single file and don't care too much about links with other parts of the documentation you can supply it with one or more .xml paths to generate only that file on it's own for quick testing.

the descriptions of the xml format for the pages is in the readme file on the github page in the doc-gen directory. Razz

[Updated on: Mon, 17 October 2011 14:50]


I created nape!
Re: Tutorial Series [message #1371 is a reply to message #1356] Mon, 17 October 2011 18:33 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
Okay, after a few little modifications i got caxe and nape/doc-gen running on my win-xp virtual machine (after installing mingw and also mingw32-make to use the unix makefiles) and all works well Smile

So if you are on windows:

Download/install haxe and nme:
http://haxe.org/download

Download/install git for windows:
http://code.google.com/p/msysgit/downloads/list

Download/install mingw:
http://sourceforge.net/projects/mingw/files/Automated%20MinG W%20Installer/mingw-get-inst/

you need to tick the c++ compiler option in the install.

Then, you need to add C:\MinGW\bin to your windows PATH variable (Control Pane->System->Advanced->Environment Variables)

and then you can run git-bash from desktop and type:

mingw-get install mingw32-make

and once done, checkout caxe and nape with:

git clone git://github.com/deltaluca/caxe.git
git clone git://github.com/deltaluca/nape.git

then to install caxe on windows, (still inside git-bash)

cd caxe
mingw32-make caxe WINDOWS=true
cd ../

then, you need also to add C:/Documents And Settings/USERNAME/caxe/bin to the windows PATH variable also.

then still inside git-bash, compile nape doc generator via

cd nape/doc-gen
mingw32-make build

Smile

and to test the doc generator you can run
mingw32-make run

to rebuild the whole documentation (minus the demoes which requires a command from the demo directory to copy stuff over first, but nevermind)


I created nape!
Re: Tutorial Series [message #1470 is a reply to message #1371] Fri, 18 November 2011 07:56 Go to previous messageGo to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Second part of my Nape tutorial series is out, check it out here:

http://www.youtube.com/watch?v=L6bDw5QqhFM

I'm going slowly as I want everyone to be at the same stage, feel free to message me or email me at my blog if you have a request to make or anything.

Here's a link to my blog post:

http://bit.ly/tolfyR

Cheers guys,

David.

[Updated on: Fri, 18 November 2011 07:57]


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #1664 is a reply to message #1470] Tue, 24 January 2012 00:06 Go to previous messageGo to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Hey gang,

Just wanted to post up a quick note about the tutorial series, if you found it through here.

I've just got my hands on my new computer so I will be continuing the series post-haste. Expect to see part 3: Joints, in the near future. I'll then be going into further detail (probably with only Nape as it's becoming my favorite engine quickly) in regards to a few things that I've been working on.

Cheers,

David.


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #1665 is a reply to message #1664] Tue, 24 January 2012 00:39 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
Glad to hear it Smile /me wishes he had more time for writing docs/tutorials


I created nape!
Re: Tutorial Series [message #1976 is a reply to message #1356] Thu, 16 February 2012 13:27 Go to previous messageGo to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Ok - so managed to get my act together and put together part 3 of the tutorial series on Nape! You can find it here: http://www.youtube.com/watch?v=1ahnmdPmlfQ

And read up on some more information about it here:
http://bit.ly/wLkRbY

Thanks again for such awesome support with the engine so far, I hope that I do it justice, I do tend to bumble a little about it all, but 45mins of hardcore learnding has to be good for you right?

David.


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #1977 is a reply to message #1976] Thu, 16 February 2012 15:04 Go to previous messageGo to next message
dELtaluca  is currently offline dELtaluca
Messages: 2225
Registered: July 2010
Location: Malden Rushett, Surrey
Senior Member
Administrator
I watched through it all and apart from the niggling in the back of my head where you have stage.stageWidth and stage.stageHeight swapped in setting positions of the bodies, all is well Razz

The only nape related thing I might pick up (not important) is you can set the constraint body to be null in the constructor instead of using space.world twice which feels a bit more natural I think.

Oh! and although in this case it makes little difference (only 1 frame delay) it might be 'more' correct to set the anchor position before space.step(), and do the debug draw after space.step() but not really that important.


I created nape!
Re: Tutorial Series [message #2244 is a reply to message #1977] Thu, 08 March 2012 02:24 Go to previous messageGo to next message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
Hey mate, yeah, realised that I had gotten the height and width mixed up after I did it and couldn't be bothered doing a second run. Might put an addendum in the next movie.

Speaking of which, if you go check out my blog, I've got some info about the next in the series. I'm going to try and up the production value somewhat, so I'm taking a bit more time to develop this one. Plus, I've got a new job so time is pretty sparse to get things done. But rest assured, I'm going to be putting a new movie out in the coming weeks.

Thanks,

David.


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Re: Tutorial Series [message #2378 is a reply to message #2244] Sat, 24 March 2012 04:58 Go to previous message
SPGames  is currently offline SPGames
Messages: 12
Registered: October 2011
Junior Member
So, new Tutorial out! This is tutorial 4 and it concerns itself with Collision Detection, now I realize that CD is a very broad subject, so I intend to touch on it again in the future. So bear with me.

Here is the link to youtube: http://bit.ly/GMPmUt
And my blog: http://bit.ly/wLkRbY

If anyone has feedback it would be greatly appreciated Smile.

Thanks all,

David.


I'm a Flash Developer!

Visit my blog @ http://spgamestudio.blogspot.com/

And my youtube channel @ http://www.youtube.com/user/SPGameStudio?feature=mhee
Previous Topic:Nape Pinball
Next Topic:Starling + Nape running on Iphone 3GS
Goto Forum:
  


Current Time: Mon May 20 12:47:54 BST 2013

Total time taken to generate the page: 2.10878 seconds
.:: Contact :: Home ::.