Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (784)
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  
  MoreSpaceInvaders  (Read 7611 times)
0 Members and 1 Guest are viewing this topic.
Offline Drenius
« Posted 2014-07-24 21:20:48 »

Hi everybody!

Just made another little game for my "More"+[classic] series!  (MorePong, MoreTetris)

This time it is SpaceInvaders.
You are controlling a lonely orbital defense station trying to protect your planet from endless hordes of aliens!

Space or Ctrl to fire
Right/left arrow or D/A key to rotate clockwise/anti clockwise
ESC/P/PAUSE to pause/continue

v 1.1.3

And the screenshot:
Offline wessles

JGO Kernel

Medals: 326
Projects: 4

All coding knowledge will be useless at peak oil.

« Reply #1 - Posted 2014-07-25 01:32:09 »

Great job, Drenius. I look forward to the next installment in this awesome series  Grin!

Offline danieldean

Senior Devvie

Medals: 5
Projects: 1

« Reply #2 - Posted 2014-07-25 12:59:24 »

Nice game, interesting concept.  Tongue I managed to get 149 over 107 seconds or so but I can't get any further the swirling has an odd affect on me if I don't stay focused on the middle..

One thing, I tried but could not quit the game using the window close and eventually I got this:

The crashed program seems to use third-party or local libraries:


It is highly recommended to check if the problem persists without those first.

Do you want to continue the report process anyway?

This is on Ubuntu 14.04 with OpenJDK. The second time around it seemed to close okay, when I opened it form the terminal, but then I noticed it hadn't returned my prompt. It seems like something keeps running?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #3 - Posted 2014-07-25 14:39:49 »

@wessles: Thank you! Slowly running out of ideas I like though.  Smiley

@danieldean: Thats odd... The warning you see is thrown because the program extracts the needed LWJGL natives there and uses them then. This should not relate to the window closing though... Maybe it is the JFrame doing some multithreaded stuff in background where it is not supposed to do hmm...  Clueless

Thank you both for testing!
Offline danieldean

Senior Devvie

Medals: 5
Projects: 1

« Reply #4 - Posted 2014-07-25 15:17:30 »

You can probably forget about it, it's been fine for another few tries. Sometimes I think Ubuntu just likes to complain about anything using it's own natives for the sake of it.

Can't beat my score though.  Cry I always seem to get the planet shot by an alien at the same point. Is this how it happens? You let them get too close any they open fire?

It's interesting because I've been making my own Space Invaders and I couldn't think of a way to put spin on the original. Looking at your series it seems to do it well for all them all!
Offline Drenius
« Reply #5 - Posted 2014-07-25 15:45:20 »

Thank you!  Grin
The enemies are indeed supposed to drop their bomb once they reach their final orbit at a random angle between 0 and 90 degree clockwise. Did not find a better way to avoid overlapping other ones...
Offline danieldean

Senior Devvie

Medals: 5
Projects: 1

« Reply #6 - Posted 2014-07-25 16:08:37 »

In my attempt, which you can find here should you wish to try it, I take the central x-coordinate of the alien, the central y-coordinate of the cannon and then see if the resulting point is inside the cannons hit box, if it is then the alien has a 0.001 probability to fire each tick. To get around the the overlap the aliens simply cannot collide with their own shots. I think this is how the original worked, maybe it's wrong but it works okay. In my mind there's some funky z-ordering going on and it's all good.

Yours is a good game and I like it but it's a bit predictable in that you know when you're safe. Maybe have the aliens aim for and shoot at the defence station until they get to final orbit then fire at the planet instead. In either case it's game over.

I feel a bit wrong suggesting this as it's probably a lot harder than what I've done and I've not graduated myself from Java 2D yet but hey ho...  Roll Eyes
Offline Drenius
« Reply #7 - Posted 2014-07-25 23:56:20 »

Just updated OP with version 1.1! :

- The enemies do not longer spawn and mostly drop bombs all at the same position but the spawn position rotates around the center
- New enemies fade in more smoothly
- The survival timer does no longer progress while the game is paused
Offline mag
« Reply #8 - Posted 2014-07-26 00:29:36 »

Nice! looks polished already and I'm adoring the screenshake.
Keep it up.  Smiley
Offline Drenius
« Reply #9 - Posted 2014-07-26 20:37:12 »

@mag Thank you! Smiley
The screenshake is probably the most important effect in this, but there was at least one complaint about it so there is v1.1.1!  Smiley :
- options menu with adjustable screenshake intensity and sound volume! (press "O" in pause screen)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Drenius
« Reply #10 - Posted 2014-07-27 12:37:22 »

v1.1.2: Added A/D keys to rotation control and CTRL keys to shoot, so the game is more flexible to control!
Offline alesky

Junior Devvie

Medals: 3
Exp: 15 years


« Reply #11 - Posted 2014-07-28 18:42:37 »


the game si very nice

a Technical question

how do you draw the planet so bright?
is it a circle with a white circle texture and  the blend active or samething else?

Offline Drenius
« Reply #12 - Posted 2014-07-28 18:51:04 »

@alesky: Erm, it is a circle out of white triangles with another such circle running from white at center to black outside under it. Not quite sure what your question is about, there is no brighter color than white, maybe your eyes play you a trick because of the second mentioned circle, the atmosphere, in contrast?
Offline alesky

Junior Devvie

Medals: 3
Exp: 15 years


« Reply #13 - Posted 2014-07-29 15:15:58 »

yes the atmosphere generated was nice

so it is just a circle of withe triangles and another circle of interpolated triangle from white to black
very simple and the result is very nice!

instead how did you obtain the effect of the shields around the enemies?

Offline Drenius
« Reply #14 - Posted 2014-08-02 16:02:08 »

Just found and fixed a bug of casting longs to integers at the wrong position causing the enemy textures to vanish, so there is v1.1.3!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

theagentd (99 views)
2017-02-18 13:42:33

theagentd (103 views)
2017-02-18 13:35:16

h.pernpeintner (1268 views)
2017-01-24 22:39:11

h.pernpeintner (1257 views)
2017-01-24 22:38:32

Galdo (1816 views)
2017-01-12 13:44:09

Archive (1921 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2459 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2298 views)
2016-12-15 21:50:57

Lunch (2377 views)
2016-12-06 16:01:40

ral0r2 (2155 views)
2016-11-23 16:08:26
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 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‑
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!