Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (727)
Games in Android Showcase (217)
games submitted by our members
Games in WIP (796)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 3 4 [5] 6 7 ... 10
 41 
 on: 2017-05-19 23:59:37 
Started by macmanmatty - Last post by macmanmatty
I'm programming  an rpg where you have  many soliders  and horses and some soliders  can carry things as well as horses. They are stored in a player class and are stored  arraylists of horses  and  soliders . Each man  will have an array list of items that could be weapons, armor, tents potions wands , other stuff ect. Each item has a weight. Each man and horse has max weight he  can carry. Every usable  Object except food water and gold extends the abstract item class other extend other abstract classes such as weapons or armor or wands, potions ect.   If I wanted to remove an item would hashmapping each class be better than checking instanceof class  with a  for loop to find the item?

 42 
 on: 2017-05-19 15:20:13 
Started by BurntPizza - Last post by J0

I took a lot of pictures at a beautiful forest preserve. I can post them if anyone is interested.
please do Wink

 43 
 on: 2017-05-19 13:28:46 
Started by philfrei - Last post by Oskuro
Titled "Every StackOverflow Thread Ever"

It's missing the "Rather than address your specific question I'll rant about why you shouldn't do what you're trying to do... regardless of how much you explain why you must do it"

 44 
 on: 2017-05-19 13:02:13 
Started by Ecumene - Last post by abcdef
In your jar task you can add

into('lib'){
        from configurations.runtime
        include '*.jar'
}

To save depending on a custom copy task

 45 
 on: 2017-05-19 12:29:34 
Started by BurntPizza - Last post by kingroka123
@Emmsii
I created a 3d Array of Voxels that have an x,y,z. Looped through using OpenSimplexNoise to get height. Set voxels under a certain height to visible. Rotated in 3d and projected to 2d coordinates.

To get the Z ordering right i just placed a pixel on a buffered image. Voxels with a higher z placed their pixel after and on top of voxels with lower z's. This is horribly slow but i wasn't going for performance so I used it.

 46 
 on: 2017-05-19 11:58:53 
Started by wessles - Last post by Oskuro
Someday I will complete my DooM fangame....  persecutioncomplex









Update: Link to blog post where I explain these drawings a bit.

 47 
 on: 2017-05-19 07:37:55 
Started by BurntPizza - Last post by Emmsii
Attempted to duplicate this tweet: link

Results were meh but it was a fun little day project.
Click to Play


(made in Java2D btw)

Daaaaaaamn, how did you pull that off in Java2D?

 48 
 on: 2017-05-19 07:33:22 
Started by Ecumene - Last post by matt_p
here, have my gradle script template to create a jar - calling it with gradle createJar

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
apply plugin: 'maven'
apply plugin: 'java'

def mainClassName = 'com.mainclasspackage.Main'

repositories {
   mavenLocal()
   mavenCentral()
}


dependencies {
   // compile '<group>:<name>:<version>'
   // ... more here if necessary
}

task copyRuntimeLibs(type: Copy) {
    into "build/libs/lib"
    from configurations.runtime
}

task createJar(type: Jar){
   
   dependsOn build
   dependsOn compileJava
   dependsOn copyRuntimeLibs
   
   from 'build/classes/main'
   
   manifest {
        attributes(
         "Main-Class": mainClassName,
         "Class-Path": ". " + configurations.compile.collect { 'lib/' + it.getName() }.join(' ')
      )
    }
}


note: replace the dependencies (if you have any)
this setup copies the dependency jars next to the resulting jar inside a lib folder and sets the class path accordingly in the generated jar

the generated jar lands in build/lib


 49 
 on: 2017-05-19 00:43:39 
Started by BurntPizza - Last post by Brynn
I photographied for the betterment of my ego
(i got a new camera but the glass is sh*t)


I took a lot of pictures at a beautiful forest preserve. I can post them if anyone is interested.
besides that I have finals to catch up on before I code more.


PS: Riven can you make my rank "Spiffy Duchess" or more likely something dumb and humiliating. thx.

 50 
 on: 2017-05-18 18:13:20 
Started by wessles - Last post by ndnwarrior15
@SHC
Nice!



Drew this bad boy with just 2 colors. I think my pixel skillz are just about ready, finally.

Pages: 1 ... 3 4 [5] 6 7 ... 10
 
Archive (294 views)
2017-04-27 17:45:51

buddyBro (483 views)
2017-04-05 03:38:00

CopyableCougar4 (927 views)
2017-03-24 15:39:42

theagentd (941 views)
2017-03-24 15:32:08

Rule (952 views)
2017-03-19 12:43:22

Rule (921 views)
2017-03-19 12:42:17

Rule (922 views)
2017-03-19 12:36:21

theagentd (984 views)
2017-03-16 05:07:07

theagentd (897 views)
2017-03-15 22:37:06

theagentd (693 views)
2017-03-15 22:32:18
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!