Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (488)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Bio Wars 4K  (Read 6173 times)
0 Members and 1 Guest are viewing this topic.
Offline Rick

Junior Member


Projects: 1


Java games rock!


« Posted 2009-01-30 16: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 Coder


Medals: 5



« Reply #1 - Posted 2009-01-30 19: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

Junior Member


Projects: 2



« Reply #2 - Posted 2009-01-30 19: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #3 - Posted 2009-01-30 19:06:29 »

once oyu get to like lvl 5 it becomes a lot faster.
Offline pjt33
« Reply #4 - Posted 2009-01-30 19:32:33 »

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

JGO Coder


Medals: 5



« Reply #5 - Posted 2009-01-30 19:36:30 »

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

Junior Member


Projects: 1


Java games rock!


« Reply #6 - Posted 2009-01-30 21:13:11 »

Can you describe the key behaviour. Does the player move too fast or too slow.
Offline pjt33
« Reply #7 - Posted 2009-01-31 23: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 Coder


Medals: 5



« Reply #8 - Posted 2009-02-01 14:03:57 »

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

Junior Member


Projects: 1


Java games rock!


« Reply #9 - Posted 2009-02-01 16: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pjt33
« Reply #10 - Posted 2009-02-01 19: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

Junior Member


Projects: 1


Java games rock!


« Reply #11 - Posted 2009-02-01 19: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

Junior Member


Projects: 1


Java games rock!


« Reply #12 - Posted 2009-02-01 19: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 Coder


Medals: 5



« Reply #13 - Posted 2009-02-01 20:21:35 »

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

dual or single core?
Offline pjt33
« Reply #14 - Posted 2009-02-02 09: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 Coder


Medals: 5



« Reply #15 - Posted 2009-02-02 12: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
« Reply #16 - Posted 2009-02-02 17: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 Coder


Medals: 5



« Reply #17 - Posted 2009-02-02 17: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.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #18 - Posted 2009-02-02 18: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

Junior Member


Projects: 1


Java games rock!


« Reply #19 - Posted 2009-02-02 19: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

Junior Member


Projects: 1


Java games rock!


« Reply #20 - Posted 2009-02-02 20:06:34 »

I just posted a version with yield replaced by sleep. See if this fixes your key board issue.
Offline pjt33
« Reply #21 - Posted 2009-02-02 23: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
« Reply #22 - Posted 2009-03-08 16: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]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (17 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

BurntPizza (37 views)
2014-08-08 02:01:56
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!