Anyway to see the source

00george

  • Posts: 161
Is there anyway to see the source code of a game you make. Im just wondering because I have always been curious how a game is put together.

rancid1

  • Posts: 46
In your various behaviors, you can click on the Preview Code button and see it in AS3. If you're developing for Mobile, there will also be a button to see it in iOS' Objective C.
See my other work at: http://www.rancid1.com

00george

  • Posts: 161
I know but thats just for the behaviours I was wondering if you could see the source for the whole game.

ShivaFang

  • Posts: 248
Behaviours basically are the whole game, plus any custom 'code' blocks you have.

There's no way to view the API stuff that comes with Stencyl, but you can see how stuff is made up in the Docs.  If you download a copy of Flixel or Box2D or whatever that Stencyl is based on you could look at the code for those modules independently.
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!

Hectate

  • *
  • Posts: 4645
But keep in mind version differences. Flixel is currently on 2.55 but the internal version here is 2.3 or so.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

ShivaFang

  • Posts: 248
But keep in mind version differences. Flixel is currently on 2.55 but the internal version here is 2.3 or so.

Good call!  I actually didn't know that.
Justin "ShivaFang" White
Aquamentos Games - The origin of challenging Strategy and Role-Playing Flash gaming!
Visit our Developer Blog and Google+ Page!

Hectate

  • *
  • Posts: 4645
The good news, however, is that if you pay attention, GitHub has a branch of the older (2.35 I think) Flixel source code. I've referenced it several times myself. I also have a copy from my pre-Stencyl days when I used it with FlashDevelop.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.