November 22, 2017, 01:07:31 AM

Author Topic: How to contribute?  (Read 1976 times)

Abel Toy

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • AbelToy.com
How to contribute?
« on: September 03, 2012, 12:26:27 PM »
Hello,

I was wondering, how can I contribute to the source? :]

I'm not very good to Haxe itself, but I understand pretty well how FlashPunk works so I'd like to make some contributions to HaxePunk :) - how can I do that?

I'm particularly interested in adding some of the current features FlashPunk 1.6 (Draknek's fork) has, and some new stuff as well :D

Thanks,
Abel Toy.

Matt Tuttle

  • Administrator
  • Sr. Member
  • *****
  • Posts: 309
    • View Profile
    • Matt Tuttle's Blog
Re: How to contribute?
« Reply #1 on: September 03, 2012, 01:37:47 PM »
Hi Abel,

The best way to get started is to clone the source from GitHub and build it from there. I'm using ant to build the haxelib zip file and run some tests. Once you get a change working you can submit a pull request and I will review it. I'm not too picky on code standards but try to match the current code to the best of your ability.

There is also a branch on github that I've been working on to improve performance in NME. It is called sprite batch so you can check that out as well. When I test I mostly check flash and neko.

Let me know if you have any other questions. Thanks!

MaskedPixel

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Ikonic Games
Re: How to contribute?
« Reply #2 on: September 09, 2012, 02:40:06 PM »
Is this the correct workflow?

1. Fork the Repo and clone the fork on your computer.
2. Run ant in the directory of the clone to add it to haxelib.
3. use: "haxelib set" to set the correct version of haxpunk.
4. Make changes.
5. ReRun ant.
6. Test changes.

Thanks.

Matt Tuttle

  • Administrator
  • Sr. Member
  • *****
  • Posts: 309
    • View Profile
    • Matt Tuttle's Blog
Re: How to contribute?
« Reply #3 on: September 10, 2012, 11:41:48 AM »
You actually can skip the haxelib set step. The ant build file will package HaxePunk, install it into haxelib, and run the test examples. So essentially you only have to do steps 1 and 2.