Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (602)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: collision detection problem on: 2013-01-23 21:15:18
ok so if i want to make it clear because i don't think i have completely understood you
you're telling me to make an array of missiles make it like the borders array so it only draws them where they should appear
lets say
0 0 1 (or nulls)                                                                                               1 1 1
0 1 0                                                                                                            0 1 0
1 0 0 .. if this is what you meant how do i check collision here if lets the borders are  0 0 0 then i would stop drawing at the 1 in the center? just to clarify
2  Game Development / Newbie & Debugging Questions / collision detection problem on: 2013-01-23 14:50:24
I've been working on a dropdown shooter game i've been working on this for a long time now i have not been able to solve one problem that's stopping me from proggressing

my code : http://pastebin.java-gaming.org/e58cc3f9c3f

I know its too long but i cant really ask one part of it as it wouldnt make sense
i have an array of tiles the map which makes up the map each tile location ad rectangle is represented in borders[] array
and i have the bullet rectangle which changes continuesly
what i want is if bullet collides with any of the tiles it should dissappear you can see from my messy code that i've tried numerous ways

and any advice on how to improve my code would be greatly appreciated

and if i get to fix this i would share my game and maybe show people how easy it is to make one
any help is greatly appreciated since this is bugging me for days now
thanks in advance
Pages: [1]
 
Jesse (15 views)
2015-07-29 04:35:27

Riven (37 views)
2015-07-27 16:38:00

Riven (18 views)
2015-07-27 15:35:20

Riven (21 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (30 views)
2015-07-25 00:14:37

BurntPizza (41 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (29 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21
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!