Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / Showcase / Re: Plague on: 2013-03-16 00:59:04
Hey guys, i was bored so i spent about half an hour working on the graphics. Its been a while since i've worked on this project and looking back over my code is not a pretty sight. Heres what i added:
+ blood splatter
+ vomitting - infected humans will now vomit and when a human who is not infected touches it it will get infected.
2  Games Center / WIP games, tools & toy projects / Re: Space on: 2012-10-11 01:04:50
doesnt work on mac  Cranky
3  Games Center / Showcase / Re: Polygon Skirmish on: 2012-10-10 04:41:09
i get this error when running

Exception in thread "main" java.lang.UnsupportedClassVersionError: Window : Unsupported major.minor version 51.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

im on a mac osx 10.7.4 and i use java se 6
4  Game Development / Newbie & Debugging Questions / Re: When i load my file everything inside the class is null? on: 2012-10-10 03:47:34
so yes it is serializable

btw it works without transient just that the array list is empty
5  Game Development / Newbie & Debugging Questions / Re: When i load my file everything inside the class is null? on: 2012-10-10 03:46:55
i imported point from java.awt.Point
6  Game Development / Newbie & Debugging Questions / Re: When i load my file everything inside the class is null? on: 2012-10-10 02:12:12
so i shouldnt use it? but im pretty sure when i dont use it i get a not serializable error
7  Game Development / Newbie & Debugging Questions / When i load my file everything inside the class is null? on: 2012-10-10 00:43:17
so i have a class SaveLevel and i save it fine but when i try to load it again everything inside the class is null?

SaveLevel class
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
public class SaveLevel  implements Serializable{
   
   static final long serialVersionUID = 99999999999999L;
   
   transient public ArrayList<Point> path = new ArrayList<Point>();
   transient public String imagePath;
   
   public SaveLevel(String imagePath){
      this.imagePath=imagePath;
   }
   
}


Loading Script
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
Level level = null;
      SaveLevel sLevel = null;
     
      ObjectInputStream ois;
      try {
         ois = new ObjectInputStream(getClass().getResourceAsStream(url));
         sLevel = (SaveLevel) ois.readObject();
         ois.close();
      } catch (FileNotFoundException e) {
         e.printStackTrace();
      } catch (IOException e) {
         e.printStackTrace();
      } catch (ClassNotFoundException e) {
         e.printStackTrace();
      }
     
      System.out.println(sLevel.imagePath);
      System.out.println(sLevel.path);
8  Game Development / Newbie & Debugging Questions / Re: How to get the angle from 1 point to another on: 2012-10-10 00:38:38
sorry for not replying Tongue

i am not using anything except the api that i made myself
9  Game Development / Newbie & Debugging Questions / Re: How to get the angle from 1 point to another on: 2012-10-09 02:16:22
thanks! i havent tested yet but should it be y2-y1?
10  Game Development / Newbie & Debugging Questions / How to get the angle from 1 point to another on: 2012-10-08 23:34:02
i know this probable takes trigonometry or calculus or something complicated but i haven't done anything like that yet...  i haven't even done sin and cos. so how would i go about finding the angle?

E.g.
point1(0,0) and point2(1,1)

that angle would be -45 degrees or 315 degrees

so if you have a formula can you please show it to me and ill be very grateful. this is not a school project by the way

if there is an easier way basicly i want to make an image(of a gun) point towards another image(of a mob)
11  Games Center / Showcase / Re: Plague on: 2012-10-07 03:23:53
any ideas how i can stop the flickering i went on ra4king's link but thats about audio? i think that must of been about something else
12  Games Center / WIP games, tools & toy projects / Re: Auctus[0.1] on: 2012-09-29 23:30:01
doesnt run for me Sad i get this error

Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1045)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
   at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
   at auctus.Auctus.main(Auctus.java:204)
13  Games Center / Featured Games / Re: Overbind on: 2012-09-29 22:57:14
doesnt let me turn around...
14  Games Center / Showcase / Re: Plague on: 2012-09-29 22:16:41
seems like there is a problem loading the sounds Tongue ill try to fix it but im off soonish to the australian basketball nationals for a week.
Its weird though because it works for me (im on a mac if that makes a difference)
15  Games Center / Showcase / Plague on: 2012-09-29 12:34:21
Download]

This is my fun but simple game that i have made. It is probably my first finished game (with graphics and sounds).

Screenies Grin:
- Main Menu


-Game


have a go and...
Download

[size=15pt]Post your highest scores below![/size]
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!