Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 ... 12
  ignore  |  Print  
  Virus Effect (2D Platformer RPG Shooter)  (Read 83141 times)
0 Members and 1 Guest are viewing this topic.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #180 - Posted 2009-02-24 00:00:56 »

will the sword count as a weapon slot. causee if so, who would use(besides the fact it would be SO AWESOME).

I am gladd to  here taht a crashing computer cannot stop VE.

keep up the good work.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #181 - Posted 2009-02-24 00:25:08 »

I was planning on the sword being counted as a slot, but i'll see if it can be under some other category. I was thinking melee weapons are more powerful then a single bullet, so having a gun and melee combo would be a good set up for when enemies get too close.
Here is an early screen shot:


Thanks.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #182 - Posted 2009-02-24 07:48:09 »

have oyu already got the collision worked out or jus thte graphics. cause a curved blade will make it a bit harder.

is VE made with a tile map. cause it would seen like it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #183 - Posted 2009-02-24 16:58:29 »

Yeah I already started the sword collision, I just have to finish it up.

Yes VE is tile based, if you press "o" in game you will see debug mode.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #184 - Posted 2009-02-24 18:31:18 »

I cant run your game anymore. the applet freexs before game loades.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #185 - Posted 2009-02-24 22:52:29 »

was wrong. it works it jsut takes like 10+ minutes for it to start working. It does this every time it loadss a new screen.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #186 - Posted 2009-02-24 23:42:55 »

Its my webhost... they seem to be getting worse. There is also a lot of down time. I might have to transfer everything to someone else.

When the game saves it calls up a file on the server, so if the server is lagging up, then the game will lag up.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #187 - Posted 2009-02-25 07:56:34 »

ahh. Ok. I am gunna go check if it is fast now.

btw teh debug mode is cool. Do you use it a lot?
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #188 - Posted 2009-02-25 07:57:56 »

nope it is still taking a while.
Offline Cero
« Reply #189 - Posted 2009-02-25 11:35:47 »

honestly I think that most of the lags and stuff also comes from the fact that we play it inside an applet. I can understand that some people like applets, but in this case, this game needs kinda performance, so please give me a webstart or downloadable jar or just classes with batch file or something like that

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #190 - Posted 2009-02-25 12:06:04 »

can applets webstart?

what you oculd do if that is possible is have there be an option. so if the server is slow, you can webstart. otherwise jsut save yourself the hassle and use applet.

just a thought.

i qwas reading your posts ont eh website, is visitng other ppls rooms still possible?
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #191 - Posted 2009-02-26 07:49:55 »

Later on we were planning on having a webstart version, but not any time soon. I don't believe that the any of the lag is due to it being in an applet, I'm sure one of these Java experts can vouch for that. It is mainly the Garbage Collection, and if it happens during a map transition then its the webhost slowing down.

Once I get a chance to look into Garbage Collection methods, I'll force garbage collection at the best times. Or I'll figure out what is the main cause of VE's garbage collection, then I can implement a fix.

Visiting user's rooms was on the list when rooms were planned to be editable. This has been put off until we get the multiplayer aspect going. You'll be able to visit people's rooms and meet up with friends in them, and start up multiplayer games.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #192 - Posted 2009-02-26 08:16:33 »

wait, but if the server glitches at me being alone. then with maby 10+ ppl. you would wait like 3 hours to get on.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #193 - Posted 2009-02-26 08:43:11 »

YES! I can get back on!!! the dark times are over....
Offline CommanderKeith
« Reply #194 - Posted 2009-02-26 17:21:11 »

Hi,

I just gave this game a try on my computer and it now works, whereas before it didn't. Does it still use LWJGL or did you switch back to java2D?

By the way, the physics are cool and so is the mouse-look and view scroll.

Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #195 - Posted 2009-02-26 17:48:32 »

Thanks a lot. This game is all Java SDK, so it uses only Java 2D.

Thanks I worked hard on the physics engine, and the view scrolling has developed pretty well along the way too.

I finally get to program after class today, so much to do. My list gets longer and longer, but I love it.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #196 - Posted 2009-02-26 17:51:56 »

do you have a CS(computer science) class? cause if so, you probably are a better programmer than him. hehe.

you didnt use a library!

ooh wow, that is a LOT of code. How did you get the states done (theya re states right?). I know how to do it in slick, vague idea in LWJGL, but no idea in java2D.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #197 - Posted 2009-02-26 18:01:56 »

I don't have a CS semester this semester. I was in a web development class last semester, and she asked the students to present any web game they make, to display at some open house. I presented VE to her and she was surprised, lol, she couldn't say much. I didn't even participate in the class. She asked me to make her a website in exchange for an "A" in the class, since I already knew everything anyways.

Yeah I made the whole game, last time a checked it was 15,000 lines of code.

I don't think there are states in Java 2D.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #198 - Posted 2009-02-26 18:28:04 »

15000!!!!!!


that is like 10 essays. that is a whole years worth of english class.

wait if there are no states how did you make the game. is there another way to do it.
Offline martineriksen

Junior Member





« Reply #199 - Posted 2009-02-26 18:51:44 »

Why do you think garbage collection causes slowdown? I made a similar game and found that GC took less than very few milliseconds. As you are using Java2D my guess is a solid amout of time goes by rendering.

For performance optimization I recommend that you find out exactly what is taking the time before spending time on trails that aren't important. I suggest using HPROF to profile your application; it is really quite simple and gives a very clear idea about which lines of code is taking the most time. 

Here is something about HPROF:

http://java.sun.com/developer/technicalArticles/Programming/HPROF.html

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #200 - Posted 2009-02-26 19:06:01 »

I dont know what HPROF is. but you could in the debug mode, draw the amount of time it takes ot do things. jsut take the time at the beginning and the end. and print the difference.

this should tell you what is taking up all of the time.
Offline Mr. Gol

Senior Member


Medals: 1



« Reply #201 - Posted 2009-02-26 20:40:32 »

jsut take the time at the beginning and the end. and print the difference.

http://en.wikipedia.org/wiki/Profiler_(computer_science) Smiley
Offline martineriksen

Junior Member





« Reply #202 - Posted 2009-02-26 21:03:51 »

--- "I dont know what HPROF is"

That is a very good reason to look into it :-)

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #203 - Posted 2009-02-26 21:12:57 »

the wiki link doesnt exist.

so does HBROF jsut monitor CPU usage, and other CPU stats?
Offline martineriksen

Junior Member





« Reply #204 - Posted 2009-02-26 22:03:16 »

HPROF can be used for monitoring CPU usage and Memory usage. I have only used to for cpu usage. The basic idea is:

* You start your programme with the hprof command line option
* While the programme is executing as normal hprof will check with regular intervals what your programme is doing at that specific point in time and note this down
* When you terminate your programme hprof dumps a report of what your programme was doing when it checked.
* hprof checks 1000s of times for a short programme execution

So the more frequently a line of code is executed or the more time is spent on that line and the more frequently will it appear in hprofs output. So the top expensive lines of code in hprofs report is what you will look at for optimization.

So it is not really cpu usage. It just reports what your programme does the most.

Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #205 - Posted 2009-02-27 08:54:48 »

Thanks for the link I'll look into HPROF. I thought it would be caused by Garbage Collection because every once in a while the game freezes up and then unfreezes. It might be that my game's garbage collection takes longer, so i'll have to find out what's causing this.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #206 - Posted 2009-02-27 09:16:22 »

has lvl 8 come yet? it is taking quite a while. (sry tobe a bug)
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #207 - Posted 2009-02-27 12:40:14 »

hey I have tohought of an awesome idae. a survival match thing.

so basicly youa re ina room iwht obstacles. and then guys come at you, and you see how many you can kill before you die.
Offline Cero
« Reply #208 - Posted 2009-02-27 14:01:23 »

the official statement is not to use System.gc() in latest java editions =o

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #209 - Posted 2009-02-27 14:54:23 »

I am guessing you are talking about garbage collection.
Pages: 1 ... 5 6 [7] 8 9 ... 12
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

pw (24 views)
2014-07-24 01:59:36

Riven (23 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (54 views)
2014-07-16 00:42:17

Riven (54 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!