Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (800)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (866)
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  
  An Asteroids-Like Shooter Called Core Shot  (Read 491 times)
0 Members and 1 Guest are viewing this topic.
Offline nigelp

Senior Newbie


Projects: 1



« Posted 2020-01-10 05:27:20 »

Here's a link to a download of a jar.
A target shows up in the middle you need to shoot to move onto the next level.
Sometimes you need to shoot enemy ships for the target to show up.

https://drive.google.com/file/d/16zrhhkbH-y4XVlHIAQ9G8h6SSYWJajIT/view?usp=sharing

-Use the arrow keys to move.
 -A and D to rotate.
-Space to shoot.
 -S to stop with air brakes around level 6 and W for a force shield around level 8.
-Sometimes you need to minimize and maximize the screen to regain control of the ship.  
-You can save the level you are on with a save menu in the upper left corner.
-The last level, which is 10, is glitchy, but if you quit and restart the level it is fine.

Still working a bit.


If anyone knows how to upload a jar to a webpage, so you can just click a link to play that would be awesome.



Offline yboya
« Reply #1 - Posted 2020-01-10 08:43:00 »

Hello,

I think there is a problem with the downloadable file, the access seems not to be public.
Offline nigelp

Senior Newbie


Projects: 1



« Reply #2 - Posted 2020-01-10 13:56:59 »

Ok, try now.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline yboya
« Reply #3 - Posted 2020-01-10 17:59:04 »

- Downloaded jar successfully
- Typing java -jar coreshot.jar (With openjdk 11.0.5 2019-10-15)
- Clicking on the "start" button
==> The two blue buttons get white, and I have the exception :

java.io.FileNotFoundException: D:\pics\blue_sound waves\music\ComTruiseUsurper.wav (The system cannot find the path specified)
Offline nigelp

Senior Newbie


Projects: 1



« Reply #4 - Posted 2020-01-10 21:21:08 »

Ok I will fix that.  It still plays right? Just without sound.

I think it plays if you just click the jar and don't run it from the command prompt.
Offline KaiHH

JGO Kernel


Medals: 780



« Reply #5 - Posted 2020-01-10 22:33:57 »

You have hardcoded absolute file paths in your class files... this will definitely not work.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
zipgrep 'D:\\pics\\blue_sound' coreshot.jar 
com/nigel/soundwavesgame/Level5.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level8.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level4.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level2.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level6.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level10.class:Binary file (standard input) matches
com/nigel/soundwavesgame/BlueSoundGame.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level9.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Rocket.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level7.class:Binary file (standard input) matches
com/nigel/soundwavesgame/Level3.class:Binary file (standard input) matches
com/nigel/soundwavesgame/objects/Target.class:Binary file (standard input) matches
Offline nigelp

Senior Newbie


Projects: 1



« Reply #6 - Posted 2020-01-10 22:38:38 »

Yeah, just on the background music though. I am pretty sure I have the problem fixed.  Try again, if you want.
Offline orange451

JGO Kernel


Medals: 560
Projects: 8
Exp: 8 years


Your face? Your ass? What's the difference?


« Reply #7 - Posted 2020-01-10 22:41:16 »

I turn on the game and clicked start. After a second or two I hear some music, then the UI goes blank. No errors in console Clueless

First Recon. A java made online first person shooter!
Offline nigelp

Senior Newbie


Projects: 1



« Reply #8 - Posted 2020-01-10 22:43:37 »

Did you try to minimize and then maximize??
Offline orange451

JGO Kernel


Medals: 560
Projects: 8
Exp: 8 years


Your face? Your ass? What's the difference?


« Reply #9 - Posted 2020-01-10 22:56:52 »

Ah that fixed it. Game runs a little fast on my computer. I assume it's not delta/timed or framerate capped?

First Recon. A java made online first person shooter!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline nigelp

Senior Newbie


Projects: 1



« Reply #10 - Posted 2020-01-10 23:00:30 »

No, its not. It runs fine on mine. I might look into delta and framerate caps, especially if others complain.

 Thanks for the feedback.
Offline orange451

JGO Kernel


Medals: 560
Projects: 8
Exp: 8 years


Your face? Your ass? What's the difference?


« Reply #11 - Posted 2020-01-11 02:18:57 »

No, its not. It runs fine on mine. I might look into delta and framerate caps, especially if others complain.

 Thanks for the feedback.
I know it runs fine on yours, because you designed your game to run specifically for YOUR cpu.

First Recon. A java made online first person shooter!
Offline thewind

Innocent Bystander





« Reply #12 - Posted 2020-01-11 05:21:09 »

It does feel like the spaceship moves a little too quick. What kind of game loop are you using if updates aren't capped?
Offline nigelp

Senior Newbie


Projects: 1



« Reply #13 - Posted 2020-01-11 06:20:23 »

Its on a timer that updates every millisecond and the ship is set to move 3 pixels in any direction every millisecond.  

I tried different combinations of update times and pixels moved but this seemed to work for me.

For example, the animation in the background is on a separate timer that updates every second.
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (337 views)
2019-09-04 15:33:17

hadezbladez (5118 views)
2018-11-16 13:46:03

hadezbladez (2000 views)
2018-11-16 13:41:33

hadezbladez (5388 views)
2018-11-16 13:35:35

hadezbladez (1113 views)
2018-11-16 13:32:03

EgonOlsen (4527 views)
2018-06-10 19:43:48

EgonOlsen (5383 views)
2018-06-10 19:43:44

EgonOlsen (3075 views)
2018-06-10 19:43:20

DesertCoockie (3969 views)
2018-05-13 18:23:11

nelsongames (4519 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04: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!