Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Bio Wars 4K  (Read 4112 times)
0 Members and 1 Guest are viewing this topic.
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« on: 2009-01-30 11:24:24 »

A simple shoot em up game with weird looking bio morph creatures.
Arrows to move space to shoot.

http://j4k.freehostia.com/bio.jnlp
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #1 on: 2009-01-30 14:01:53 »

fun game. I really liked it. I am working on something similar(not for 4k though) and yours surpasses mine by far.
Offline halfwitgoat

Jr. Member
**

Posts: 62



« Reply #2 on: 2009-01-30 14:04:40 »

Interesting graphics, but it seems a little slow paced. I only get one alien every 10 seconds or so.

Games published by our own members! Go get 'em!
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #3 on: 2009-01-30 14:06:29 »

once oyu get to like lvl 5 it becomes a lot faster.
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #4 on: 2009-01-30 14:32:33 »

Again, horrible key detection. It's unplayable on my computer - 1.7GHz, Debian lenny, Java 6u10-beta.
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #5 on: 2009-01-30 14:36:30 »

hmm. what you mean "horrible key detection" it worked fine.
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #6 on: 2009-01-30 16:13:11 »

Can you describe the key behaviour. Does the player move too fast or too slow.
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #7 on: 2009-01-31 18:16:08 »

Can you describe the key behaviour. Does the player move too fast or too slow.
Most of the time, it doesn't. It just sits there like a lemon.
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #8 on: 2009-02-01 09:03:57 »

I never saw that. what OS are you running? is your computer really old?
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #9 on: 2009-02-01 11:17:06 »

I found the problem. I had a while loop to maintain the frame rate but your system was a little slow so there was never any free time left over so the while loop was never entered. The result was yield was never called so the event thread was starved hence the key press was missed. I changed to a do while so yield will be called on every render loop. Try now and it should work on your system.

Thanks for the feed back.
Games published by our own members! Go get 'em!
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #10 on: 2009-02-01 14:02:23 »

I never saw that. what OS are you running? is your computer really old?
Linux (Debian lenny), Java 6-u10-beta, 1.7GHz. The latest changes improve it - if I hold a key down then it will eventually move, which wasn't the case before - but it still often takes a half second to react and can miss it if I hold the key for less than that.
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #11 on: 2009-02-01 14:27:23 »

The last fix does a yield every frame draw so if you are only getting key events every 1/2 sec either your frame rate is only 2 frames a second or for some reason your system is reporting key events at a very slow rate. I will try and put a frame rate counter in so you can see what frame rate you are getting.
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #12 on: 2009-02-01 14:45:02 »

Ok I just uploaded a version with a frame rate counter in the upper right corner. I limit the frame rate to 60 so let me know what frame rate you are getting on your system.
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #13 on: 2009-02-01 15:21:35 »

Linux (Debian lenny), Java 6-u10-beta, 1.7GHz.

dual or single core?
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #14 on: 2009-02-02 04:53:50 »

Ok I just uploaded a version with a frame rate counter in the upper right corner. I limit the frame rate to 60 so let me know what frame rate you are getting on your system.

50fps.

h4ckboy: single-core. Here are the full stats:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
pjt33@agape:~/$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 22
model name      : Intel(R) Celeron(R) CPU          530  @ 1.73GHz
stepping        : 1
cpu MHz         : 1729.140
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm constant_tsc up arch_perfmon pebs bts pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3462.20
clflush size    : 64
power management:
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #15 on: 2009-02-02 07:19:59 »

ok so that explains it. your computer is kinda slow. but it should be fast enough to play a simple 2d game. so Rick I think that your program is looping too fast or often. if you make the sprites move more each loop you can make it loop less often. then it does not take as much processing.
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #16 on: 2009-02-02 12:15:19 »

ok so that explains it. your computer is kinda slow. but it should be fast enough to play a simple 2d game. so Rick I think that your program is looping too fast or often. if you make the sprites move more each loop you can make it loop less often. then it does not take as much processing.
Kinda slow? Most java4k games should be playable on my 7MHz Amiga.
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #17 on: 2009-02-02 12:33:26 »

did you read the second half of my post. I said that if that were to be the problem then he is taking up way to much prccessing. and I meant was that it wasnt and XPS(or some other super fast computer) so that may be the problem.
Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5866
Medals: 255


Hand over your head.


« Reply #18 on: 2009-02-02 13:03:16 »

Kinda slow? Most java4k games should be playable on my 7MHz Amiga.

Quite the opposite.

In order to keep bytecode as small as possible, memory usage and CPU usage are often rediculously high.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #19 on: 2009-02-02 14:25:25 »

I tested on my work computer which is very slow and has a poor graphics card. It ran at 20 frames/sec but still played very smoothly. So I now think it is something to do with either the threading or how keyboard events are delivered on your system. You are getting 50 frames/sec which is a pretty good rate. The only thing left that I could try would be to replace the yield call with a sleep call. Maybe that would force the event thread to kick in and register the key board presses.
Offline Rick

Full Member
**

Posts: 106


Java games rock!


« Reply #20 on: 2009-02-02 15:06:34 »

I just posted a version with yield replaced by sleep. See if this fixes your key board issue.
Offline pjt33

JGO Strike Force
***

Posts: 913
Medals: 17



« Reply #21 on: 2009-02-02 18:26:52 »

I just posted a version with yield replaced by sleep. See if this fixes your key board issue.
Yes! Much, much better. Thank you.
Offline zeroone

Sr. Member
**

Posts: 295
Medals: 10



« Reply #22 on: 2009-03-08 12:33:22 »

I like the use of fractals to create different enemy types.  But, I noticed my ship can pass safely through enemy ships; there is no collision detection.  Also, the size of the enemies doesn’t seem to matter.  I still have to target their cores, which always seem to be the same size.  Hence, the look and size of the enemies don’t contribute to game play.  I like the gradient lighting effect done on the walls.  The player can’t pass through the walls, but bullets and enemies can which is really strange.  The wall should be a fatal boundary, but it’s not.  Gaining power-ups and new weapons is definitely a pro, but I don’t like losing weapons so easily.  I like that you added bosses.  What’s the point of the player being able to switch forms?  Don’t I just want to be as small as possible?  But, does my size matter anyway since they have to aim for my core?  The game seems kind of repetitive.  I got up to level 5 before giving up.   
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.17 seconds with 22 queries.