PIJ: Powder In Java

  • firefreak11
    24th Apr 2015 Member 2 Permalink

    Time for a release!

  • orcasaves
    24th Apr 2015 Member 2 Permalink
  • firefreak11
    24th Apr 2015 Member 1 Permalink

    @orcasaves (View Post)

     Thank you!

  • MiningMarsh
    24th Apr 2015 Member 1 Permalink

    @ChargedCreeper (View Post)

    OpenGL ES looks like it will become a none-issue now that all the tegra chipsets are introducing full opengl. Granted, this might not carry on to other chipsets, but it could also pave the way for it.

  • EE
    24th Apr 2015 Banned 1 Permalink
    This post is hidden because the user is banned
    Edited once by EE. Last: 24th Apr 2015
  • firefreak11
    25th Apr 2015 Member 0 Permalink

    @EE (View Post)

     Eclipse is my favourite IDE, it has all I need plus more, and it is very easy to use with tons of great features, and I hate white space. My indentation is exactly as I like it. 

     
    int ay=i==0||i==3||i==5?y+1:i==1||i==6?y:y-1;
    This is what is known as a conditional or turnery operation. It works in the form: <boolean>?<if true>:<if false> 

    This is actually a conditional inside a conditional. Therefore, my code means the same as this:

    int ay;
    if(i==0||i==3||i==5){
    ay=y+1;
    }else if(i==1||i==6){
    ay=y;
    }else{
    ay=y-1;
    }

    The conditional is much easier to type, takes up less space, and I prefer it, but it does the same thing as a simple if/else statement.

    Edited 3 times by firefreak11. Last: 24th Apr 2015
  • EE
    25th Apr 2015 Banned 1 Permalink
    This post is hidden because the user is banned
    Edited once by jacob1. Last: 26th Apr 2015
  • firefreak11
    25th Apr 2015 Member 1 Permalink

    Again, Eclipse is my preference. Am I doing this project to please you? No. I am only doing this for fun. I care about your code style, whatever it may be. I name variables so that I, the developer, can understand them. Don't know what they mean? If you're such an expert, look at the code and find out what they do. I don't use comments alot because I expect people to be able to understand the actual code. Besides, this program is not that complex. This is not some perfect little present I'm making for you, so if you have a problem with my project, feel free to make your own.

  • EE
    25th Apr 2015 Banned 1 Permalink
    This post is hidden because the user is banned
  • boxmein
    25th Apr 2015 Former Staff 5 Permalink
    @firefreak11 (View Post)
    I suggest you ignore @EE - all he's really doing is being purposelessly rude. However, for your project to be easier to maintain, it's suggested not to follow this guide.