Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Game play issue..  (Read 10233 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Posted 2003-07-29 09:42:06 »

As Cas' suggestion I'm raising this here, any help would be appreciated:

I'm working on a multiplayer asteroids game, initially the game is just deathmatch (blow each other up). Its here if anyone wanna see:

http://www.cokeandcode.com/astroprime

The game play problem I having is that combat seems to be very "slashly" in that you see the other player, maybe get a few shots off, and then because of the speed you're travelling you've sped past. This kinda reduces the fun.

It many ways it reminds me of the problems in Elite: First Encounters combat game play.

Anyone have any idea how to make this better?

Kev

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #1 - Posted 2003-07-29 10:06:59 »

Simple. Do as Star Control. Start zoomed out, and as combetants get closer, zoom in. Works like a charm!

Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #2 - Posted 2003-07-29 10:08:51 »

That, and/or provide a radar in a corner that tells you where everyone is.

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

Senior Devvie




ooh ooh eee eeee


« Reply #3 - Posted 2003-07-29 10:11:13 »

Also, you can put in obstacles (asteroids themselves) that if the player runs into he dies. That way, control and speed maintainence is an issue. This will keep the game running at a slower pace I think.

Don't send a man to do a monkey's work.
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #4 - Posted 2003-07-29 10:15:13 »

Guys, I really love this place, community wise, it just doesn't get better...

The zooming in/out is a neat idea.. but I'm multiplayer, so there could be lots of other ships. Which one do I use to caculate the zoom?

Radar - tick, got that one already Smiley

Asteroids (and other things) are on the agenda, maybe I'm just worrying too early?

Many thanks for the feedback so far,

Kev

Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #5 - Posted 2003-07-29 11:03:08 »

Or you could make it zoom depending on the speed you're traveling in. So the slower you move, the farther you see.

That would bring the overall speed of the game down, while still allowing for quick escapes.

Play Minecraft!
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2003-07-29 11:04:53 »

Coo, cunning idea. May see this implemented pretty soon Smiley

Kev

Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #7 - Posted 2003-07-29 11:11:44 »

w00t. =D I'm starting to really like this game. =D

Play Minecraft!
Offline princec

« JGO Spiffy Duke »


Medals: 434
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2003-07-29 13:28:44 »

Try a little HUD thing that always points at the nearest enemy if there are none on the screen too. I got asked to do this but it didn't fit with the screen scrolling. I think it'd work fine if the ship's always in the centre of the screen.


Cas Smiley

Offline nickdotjava

Junior Devvie




I have fallen to the dark side.  I'm using DX9


« Reply #9 - Posted 2003-07-29 13:58:35 »

You should add cloaking.  Make it so that you're just as vulnerable to collisions, weapons fire, etc. as anyone else, but they can't see you.  And maybe make you appear for a second when you fire.

IMHO, that would kick ass.  Of course, if everyone cloaked, then it would just be everyone carpet bombing space.

Is this going to be like a MMO Action game?  Where we can save our ships?  Or do they disappear into the electronic ether when we quit?  If it's a MMO action game, you are my hero!

-Nick

"Oh ya, that's trivial.  I should have it done in an hour."
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #10 - Posted 2003-07-29 14:05:31 »

I hadn't intended it to be MMO, more of battle game (ala counter strike). However, that being said, I see no reason why it shouldn't be MMO aswell, go for the full trading thing (although I know this will annoy Endolf Wink).

I've been trying to aim at obtainable goals, hence making this battle oriented. Maybe I'll do a "Astroprime: Universe" afterwards or something, but I'd just like to get this bit down first.

Cloaking however is a brilliant idea. I'll add it to the planned features list. Just updated the web site generally, http://www.cokeandcode.com/astroprime

Thanks for all the ideas folks,

Kev

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #11 - Posted 2003-07-29 14:12:25 »

Just a though, but you probably want to try playing Subspace and NeTrek for some good prior art in this area. Subspace was originally going to be a commercial game. They solicited opinions from people around the world, got close to a release... and then it disappeared. Now it's back as a free online game. Not quite sure what happened in between, but it must have been interesting. Smiley As for NeTrek, you can't call yourself a geek if you've never played NeTrek.  Grin

Java Game Console Project
Last Journal Entry: 12/17/04
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #12 - Posted 2003-07-29 14:18:45 »

Thanks for the links, SS looks pretty cool. I was really basing the whole thing of XPilot. I guess the idea isn't too original, but hopefully no one will be offended if I just carry on.

Damn it, I can't stop thinking about a MMO version now either. I think it'd have to be a different game client/server really, but even so.. hmm...

Kev

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #13 - Posted 2003-07-29 17:33:17 »

Quote
Or you could make it zoom depending on the speed you're traveling in. So the slower you move, the farther you see.

That would bring the overall speed of the game down, while still allowing for quick escapes.


...and maybe combine with GTA-esque directional zoom. The screen-offset/centring of the ship changes depending on speed and direction. In GTA, of course, the faster you went the further ahead you could see AND it zoomed out - and even so it was still damn hard to get far in a Lambo

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #14 - Posted 2003-07-29 17:46:42 »

I don't know why, but webstart still doesn't work on any of the PC's I use - two flavours of Windows and linux - so I'd appreciate a non-JWS link?

I don't understand why JWS is apparently completely buggered on most of the PC's I see it on (?), but I wish people wouldn't keep making JWS-only apps.

PS I've heard similar things from other people, so I'm fairly confident it's not that lump of kryptonite embedded in my stomach that breaks any JWS installation within 20 feet...but you never know. [if anyone knows how to get it to work, I'd be interested]

malloc will be first against the wall when the revolution comes...
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #15 - Posted 2003-07-29 17:56:49 »

Ok, Ok, I'll create a sans webstart version. I'll have to package JOGL with it tho I spose.. I was trying to stop having to do this.

Kev

Offline tortoise

Junior Devvie




<3 Shmups


« Reply #16 - Posted 2003-07-29 18:06:56 »

Quote
I don't know why, but webstart still doesn't work on any of the PC's I use - two flavours of Windows and linux - so I'd appreciate a non-JWS link?]


What do you mean by not work? Because on my machine, Java Web Start will load up and get going but then immediately lock up on me. I have to kill it with the task manager, then if I run it again (same program loading), it's fine. It does that every time. I've not tried it under Linux.
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #17 - Posted 2003-07-29 18:24:51 »

Right, I've added a bunch of zip files for the current version. I'm afraid they might not get updated as quick as the web start version, but I can but try Smiley

They're all under the downloads section, hopefully they'll work. Give um a try and let me know..

You can also run the server from them.

Cheers,

Kev

Offline AndersDahlberg

Junior Devvie





« Reply #18 - Posted 2003-07-29 18:30:51 »

Quote


What do you mean by not work? Because on my machine, Java Web Start will load up and get going but then immediately lock up on me. I have to kill it with the task manager, then if I run it again (same program loading), it's fine. It does that every time. I've not tried it under Linux.


Are you using the new [windows] version included with 1.4.2? I've had problems with fullscreen apps + webstart where the app directly goes to fullscreen and at a small delay a webstart "integration" popup behind steals focus thus forcing you to a alt-tab.
Offline tortoise

Junior Devvie




<3 Shmups


« Reply #19 - Posted 2003-07-29 18:33:45 »

Yes it's 1.4.2 but it does this for all kinds of programs: games (fullscreen or not) and general applications.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #20 - Posted 2003-07-29 20:08:29 »

It could be your graphics card that is locking up WebStart.. I found that DirectX is sometimes very flakey and many Java apps would lockup my machine (because of Swing's use of DirectX) until I replaced the graphics drivers.

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #21 - Posted 2003-07-29 20:19:44 »

Quote


What do you mean by not work? Because on my machine, Java Web Start will load up and get going but then immediately lock up on me. I have to kill it with the task manager, then if I run it again (same program loading), it's fine. It does that every time. I've not tried it under Linux.


Yeah, I've definitely had that, but repeated attempts still don't work for me IIRC. Other times, it just acts as if it isn't even installed - no file association/mime-type/etc, nothing. java webstart pages just make MSIE go "Duh?". Actually, I may not even have tried it on linux. Although, given how much harder it is to set stuff like this up on linux (no standard web-browser, for instance) I may never even have managed to get it to start, let alone work Sad.

I've had similar problems all the way back since 1.3, and when it was an optional package. The way I see it, if they still can't make the damn thing work on a large percentage of clients, I'm not even going to think about using it as a developer for at least a few years. What's the point in a deployment technology to make life easier for the user when it silently crashes, hangs, and doesn't work? (From a sun-provided install package!)

malloc will be first against the wall when the revolution comes...
Offline AndersDahlberg

Junior Devvie





« Reply #22 - Posted 2003-07-29 20:28:34 »

EDIT: Lol, so much for posting a reply in the wrong place Smiley
Offline sugarshark

Junior Devvie




Sugar to the sharks.


« Reply #23 - Posted 2003-07-31 06:49:29 »

I had the same problem regarding Webstart on my Win2K machine at work when I upgraded to JDK 1.4.2. Webstart , which did run just fine in with the 1.4.1 beta wouldn't work anymore.
Only uninstalling of all JREs/JDKs and reinstalling of JDK 1.4.2 helped. Must have been a registry related problem. This behavior was reproducable on other Win2K machines  which had a JRE with Webstart installed before.

But this is the only problem I ever had with Java Webstart.
With my other machines (Linux and Win) it just works. So to say it is completly buggered might be a bit of exaggeration.  Wink

About installing it in Linux, you just need one line in your ~/.mailcap (or systemwide /etc/mailcap) file and all  browsers and mail clients know JWS:
1  
application/x-java-jnlp-file;/opt/j2sdk1.4,2/jre/javaws/javaws %s

The webstart install script adds this line for you, along with the entry in ~/.mime.types

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #24 - Posted 2003-07-31 09:12:20 »

Quote

About installing it in Linux, you just need one line in your ~/.mailcap (or systemwide /etc/mailcap) file and all  browsers and mail clients know JWS:
1  
application/x-java-jnlp-file;/opt/j2sdk1.4,2/jre/javaws/javaws %s

The webstart install script adds this line for you, along with the entry in ~/.mime.types


Thanks for all that. I've had 5 versions of Mozilla, two of netscape (against my will - distro installed them Sad ), and done two restores from backups on this PC - so it's quite possible I broke something subtle.

I'm especially thankful that you told me about Mailcap - OpenOffice 1.0.1 has 0wn3d that file (filled it with 50 lines of associations), despite the fact that I'd installed 1.0.3 (which apparently was too shy and retiring to want to take control)...in typical linux fashion, it's a stupid filename (I don't have mail-related apps on this computer, so what do I want with a file called mailcap?) - although I can guess historical reasons why a mime-type assoc file would be called that -  and there's no manpage for it.

malloc will be first against the wall when the revolution comes...
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #25 - Posted 2003-07-31 09:17:21 »

Quote
Right, I've added a bunch of zip files for the current version. I'm afraid they might not get updated as quick as the web start version, but I can but try Smiley

They're all under the downloads section, hopefully they'll work. Give um a try and let me know..


Seems to be the standard problem that using external libraries with the JRE is either incorrectly documented (by Sun), broken (in some platforms), or undefined (and so basically no-one has a clue)...

It would give me more confidence (as a developer) in things like LWJGL if this kind of thing didn't happen everytime to most people on linux (I can sort it out, thanks to Elias, but none of my users would be able to). My vague memories of LWJGL are that I need to add a -X directive or similiar, to force the classloader to recognize the .so file in the directory, but I've no idea what any more Sad.

All I do remember is that the JRE/JDK violates "principle of least surprise" here: you can't just put libjogl.so in the classpath; that has no effect.

java -jar prime.jar
Exception in thread "main" java.lang.NoClassDefFoundError: net/java/games/jogl/GLEventListener
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302

malloc will be first against the wall when the revolution comes...
Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #26 - Posted 2003-07-31 10:02:42 »

If it was a library linking problem I'd go for:

1  
2  
3  
4  
5  
java -Djava.library.path=. -jar prime.jar 

or

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH;.


But it looks to me like it can't actually find the jogl.jar, which probably means I've got my manifest wrong, maybe I got the / the wrong way round or something. This might work better:

1  
java -cp prime.jar:lib/newdawnnet.jar:lib/jogl.jar -Djava.library.path=. org.newdawn.astro.client.Game

I'll check it out and try have it fixed as soon as. Knew I shouldn't have rushed those distros Wink

Kev

Offline kevglass

« JGO Spiffy Duke »


Medals: 212
Projects: 24
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #27 - Posted 2003-07-31 10:05:57 »

Yep, looks like I got my slashes the wrong way round, god I'm becoming such a windows freak...

Kev

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #28 - Posted 2003-07-31 12:36:38 »

Quote
This might work better:
1  
java -cp prime.jar:lib/newdawnnet.jar:lib/jogl.jar -Djava.library.path=. org.newdawn.astro.client.Game


Yeah, that did the trick. Thanks.

malloc will be first against the wall when the revolution comes...
Offline JasonB

Junior Devvie





« Reply #29 - Posted 2003-07-31 18:31:06 »

Back on your original subject, have you thought about having dots around the edge of the screen that indicate the position of offscreen enemies?  The dots could change colour as the enemy grows closer and then fade away just before they appear on screen again...

(with apologies to anyone who might've suggested this before, if I missed it in the prior postings)
Pages: [1] 2
  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.

rwatson462 (36 views)
2014-12-15 09:26:44

Mr.CodeIt (29 views)
2014-12-14 19:50:38

BurntPizza (61 views)
2014-12-09 22:41:13

BurntPizza (98 views)
2014-12-08 04:46:31

JscottyBieshaar (58 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (76 views)
2014-11-29 21:32:03

toopeicgaming1999 (137 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (37 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!