Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  
  Ludum Dare #15  (Read 3572 times)
0 Members and 1 Guest are viewing this topic.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Posted 2009-08-27 14:04:18 »

Ludum Dare #15, a solo 48h game programming competition, is coming up this weekend (August 28th-30th). I'm definitely planning to enter!

I know this is a bit of a late post about it, but better late than never, right? Smiley

Offline rdcarvallo

Senior Member


Projects: 5
Exp: 15 years


2D Java games forever!


« Reply #1 - Posted 2009-08-27 20:49:04 »

Ok,

    I registered in the site. I'll try to make something, hoping to have more time than the 6+ hours I had for the JGO'09 "Bending" compo.

    Look for rdcarvallo's posts on LD.

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #2 - Posted 2009-08-31 04:21:34 »

I'm done! Cavernous Shooter! is a little top-down shooter set in a cave environment.

Windows / OSX / Linux / Source
Java Webstart


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CommanderKeith
« Reply #3 - Posted 2009-08-31 10:50:54 »

Cool game! I like that type of top-down view shooter. May I ask, how did you do the physics for when the player crashes into the walls?

Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #4 - Posted 2009-08-31 16:51:09 »

Thanks!

As for my implementation, it is somewhat broken (I've a normalization bug, and didn't have time to fix it, and wall collision is a bit sloppy too), but here's the idea:

First I look for player/line intersections. If one is found, I move the player back to where he was before this update. Then I calculate the dot product of the player's movement vector and the surface's normal vector. Finally I subtract the normal vector multiplied by the dot product from the player's movement vector. This new movement is applied to the player, making him slide along the wall. That's it!

A better idea then looking for object/line intersections would naturally be to check if the object has passed or collided with the wall in the current update, but I was a bit lazy about that and am relying on framerate instead (which I suppose might have been a mistake in retrospect).

Maybe I should also point out that although levels are sets of polygons, I always split those up into a set of lines before actually doing any calculations on them.

Offline CommanderKeith
« Reply #5 - Posted 2009-09-01 13:06:22 »

Wow, well that works well. I never knew it could be so simple, nice job!

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.

xsi3rr4x (53 views)
2014-04-15 18:08:23

BurntPizza (51 views)
2014-04-15 03:46:01

UprightPath (65 views)
2014-04-14 17:39:50

UprightPath (47 views)
2014-04-14 17:35:47

Porlus (65 views)
2014-04-14 15:48:38

tom_mai78101 (89 views)
2014-04-10 04:04:31

BurntPizza (149 views)
2014-04-08 23:06:04

tom_mai78101 (245 views)
2014-04-05 13:34:39

trollwarrior1 (203 views)
2014-04-04 12:06:45

CJLetsGame (210 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!