Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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  
  Starkiller  (Read 2188 times)
0 Members and 1 Guest are viewing this topic.
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Posted 2013-02-02 00:23:38 »



Trying to do a 3d spacesim though its not working properly at the moment.. All the transforms are going wrong and the ship isnt flying in a straight line (probably the same reason!).. Its interesting that when you bank the ship it sometimes goes backwards or forwards randomly..


Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #1 - Posted 2013-02-03 01:28:28 »

[applet archive=minishoot2.jar class=M.class width=400 height=400]

Stuff changed:
Fixed the projection equation after giving the projection screen 50 width and making the camera 50 units away from it.
Fixed the ship source, ship now flies in the correct direction.
More stars.

Keys: WASD for movement, space for LAZARS!
Offline Rorkien
« Reply #2 - Posted 2013-02-03 01:31:49 »

Try (Without the spaces in the beggining and end  persecutioncomplex)

[ applet archive=minishoot2.jar class=the.entire.path.YourMainClass width=400 height=400 ]
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline masteryoom

JGO Coder


Medals: 5
Projects: 2


If you look closely, you might see it turning...


« Reply #3 - Posted 2013-02-03 01:34:20 »

[applet archive=http://www.java-gaming.org/user-generated-content/members/158235/minishoot2.jar class=full.path width=512 height=384]

Smiley
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #4 - Posted 2013-02-03 13:19:50 »


Thanks for your help.. I got the applet working with archive=minishoot2.jar and class=M.class.


http://www.stevydoos.com/testshoot.html
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 139
Projects: 4
Exp: 3 years



« Reply #5 - Posted 2013-02-03 17:43:43 »

Pretty cool, is this 2.5d or 3d?
Lasers look a bit weird if you hold the spacebar down, and the movement would look a little more natural if there was a. rotation or b. a viewport(window) instead of being able to see everything
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #6 - Posted 2013-02-03 19:45:10 »

Its 3d, though every object is billboarded.

Made the lasers flickery.. Am a little unsure of how to change the controls, but I see what you're saying..
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #7 - Posted 2013-02-03 21:45:01 »


Is this control system what you're looking for?

[applet archive=minishoot2a.jar class=M.class width=400 height=400]

I'm making the camera the center of the game universe and updating all objects with a rotation, rather than keeping the angles and calculating this all the time.. I just need to rotate the object movement vectors too.. At the moment it is very difficult to shoot stuff!
Offline doos

Senior Devvie


Medals: 2
Projects: 2


Here be random


« Reply #8 - Posted 2013-02-03 22:03:47 »

Ok, added some more tricks (everything that goes offscreen in one direction comes back onscreen in another).

[applet archive=minishoot2b.jar class=M.class width=400 height=400]

Enjoy!
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 139
Projects: 4
Exp: 3 years



« Reply #9 - Posted 2013-02-03 22:10:56 »

I didn't mean so much as to rotate the entire ship, I was just thinking of it still moving left/right but tilting to the direction of the movement(like a real plane).
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.

PocketCrafter7 (13 views)
2014-11-28 16:25:35

PocketCrafter7 (9 views)
2014-11-28 16:25:09

PocketCrafter7 (10 views)
2014-11-28 16:24:29

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

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

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!