Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3 4 ... 10
 11 
 on: 2014-10-26 00:38:01 
Started by BurntPizza - Last post by ra4king
Goddamn, reading all these make me feel more and more lazy and unaccomplished thanks to how little time I have Cry

 12 
 on: 2014-10-26 00:37:20 
Started by BurntPizza - Last post by CopyableCougar4
My day:
  • Entity management system (with layering)
  • Packet handling for networked entities
  • Parsing AIs

This is my experimental AI.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
function runAI(username) {

   var EntitySystem = Java.type("com.digiturtle.entities.EntitySystem");
   var Entity = Java.type("com.digiturtle.entities.Entity");
   var entity = EntitySystem.getEntity(username);
   
   var ArrayList = Java.type("java.util.ArrayList");
   var entities = EntitySystem.getEntities();
   
   for each (var otherEntity in entities) {
      if (otherEntity.getHealth() / otherEntity.getMaxHealth() > 0.5) {
         entity.damage(5);
      }
   }
   
}


It uses the Nashorn engine. I'm unsure if it's 100% correct since I am quite the novice with Nashorn. If anybody has any experience with Nashorn and finds an issue or has a tutorial you can link me to, it would be appreciated Smiley

CopyableCougar4

 13 
 on: 2014-10-26 00:16:30 
Started by ags1 - Last post by princec
Don't use JavaBeans then. They are a travesty of OOP design.

Here's a tip: if all you're doing with properties is getting and setting them ... use the dot operator. That's what it's for. Just remember that properties are often used in a way that is basically breaking the whole idea of OOP design ("encapsulation").

Cas Smiley

 14 
 on: 2014-10-26 00:13:36 
Started by death_angel - Last post by ags1
Add some blinking to the eyes :-)

 15 
 on: 2014-10-25 23:58:56 
Started by ags1 - Last post by ags1
I really hate Java beans and their screenfuls of boiilerplate code. I had an idea to get rid of this that I'm calling Matrix Methods:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
public class Bond {
    private double price, yield, spread;
   
    public {att} get{att}() {
        return {att(price, yield, spread)};
    }

    public {att} get{att}Bps() {
        return {att(price, yield, spread)} * 10000.0;
    }

    public {att} get{att}Percentage() {
        return {att(price, yield, spread)} * 100.0;
    }

}

 16 
 on: 2014-10-25 23:54:56 
Started by deathpat - Last post by ra4king
I use this nifty application called HashTab: http://implbits.com/products/hashtab/
It adds a tab to the Properties window of files called File Hashes and it shows you the hash of the file in several formats. SHA-256 does not show by default, so click on the Settings button and enable it.

 17 
 on: 2014-10-25 23:43:10 
Started by JonnyGingerKid - Last post by CopyableCougar4
Shouldn't there be something in the third argument, similar to
2 << 2
? I'm not an expert, but that's what it's like in my VBO helper class.

1  
glVertexPointer(2, GL_FLOAT, 0, 0);


CopyableCougar4

 18 
 on: 2014-10-25 23:38:04 
Started by JonnyGingerKid - Last post by Longarmx
Do you make sure to bind the texture?
Yep, he is.

@OP: Does glGetError print out anything other than 0?

 19 
 on: 2014-10-25 23:01:26 
Started by Jacob Pickens - Last post by Jacob Pickens
I found this app a while back but never really got into it.

Today I felt a little graphically inspired so I bought a stylus and I was dead set on using this program. I busted it open and bam to my surprise, it had everything I could have ever asked for.

  • Layered Sprites
  • Fully-capable drawing tools (Though very basic)
  • Links directly to your dropbox
  • Onion skins for animation
  • TileMap editor and exports to .CSV files. (Little strange but if you made an engine to load them this could be really useful)
  • A timeline where you can draw frames, and watch your animation in real time! (Coolest feature right here!)
  • And much much more

This thing is honestly the greatest. And now I'm starting to sound like an advertisement but seriously guys check this app out. It's literally amazing.

Here's the link: http://terriblegames.com/spriteSomething/ (It costs a bit but trust me, its worth every penny)

 20 
 on: 2014-10-25 22:58:10 
Started by JonnyGingerKid - Last post by CopyableCougar4
Do you make sure to bind the texture?

CopyableCougar4

Pages: 1 [2] 3 4 ... 10
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (20 views)
2014-10-25 15:46:29

Longarmx (53 views)
2014-10-17 03:59:02

Norakomi (47 views)
2014-10-16 15:22:06

Norakomi (35 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (69 views)
2014-10-14 00:35:47

TehJavaDev (61 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (46 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!