Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: 1 ... 5 6 [7] 8 9 10
 on: 2014-07-22 22:16:47 
Started by ags1 - Last post by ags1
I'm not looping through the collection... Wrapping the int in an Integer fixes the issue.

Edit: replying to pandemoniumhun, but Riven has the answer.

 on: 2014-07-22 22:13:49 
Started by ags1 - Last post by Riven
List.remove(Object) and List.remove(index) are easily confused in the case of List<Integer>

Your (supposedly) original code is extremely error prone, Dalvik or not:
int v = ...;
if (isBonus.contains(v)) { // will be boxed to an Integer VALUE
  isBonus.remove(v); // removes arbitrary value at INDEX v

 on: 2014-07-22 22:07:35 
Started by ags1 - Last post by PandaMoniumHUN
Stack trace?
It very well might be something obvious like ConcurrentModificationException, but from those 4 lines of code it would be hard to tell.

 on: 2014-07-22 22:01:54 
Started by Thotep - Last post by Thotep
A week ago my computer stopped working (beware of thunderstorms, guys!). I was unable to even turn it on... I spent two days digging inside and it turned out that my motherboard and hdd died. Not that bad! I was afraid I'd have to replace all of the parts, which would be a financial problem (especially since I don't want to run any preorders nor a Kickstarter campaign). I bought and installed a new motherboard, reinstalled Windows (sigh...) and I'm ready to work!
Fortunately I had quite recent backups, I lost just an evening's worth of work on Prophour23.
The bad part is that I made almost no progress this week.
I just started to work on a proper main menu screen, here's a sneak peek:

 on: 2014-07-22 21:59:04 
Started by VIrtueeL - Last post by thedanisaur
It's looking pretty good so far. Keep it up! I agree with the previous posters on dedication, it's a skill like any other and takes practice.

Something that has helped me recently(over the last year) is having a clear goal in mind from the outset and keeping the game "simple".

I think if you sit down at the beginning and decide what your final game will include, write it all out story/levels/features/classes/etc, before you even touch coding then you have a better chance of success. From there it's all about the determination to keep going till you're done.

 on: 2014-07-22 21:57:15 
Started by ags1 - Last post by ags1
This will crash:

if (isBonus.contains(v)) {
   isBonus.remove(new Integer(v));
   lpb.getBackground().setColorFilter(Color.WHITE, PorterDuff.Mode.MULTIPLY);

Where v is an int. Contains(int) is fine, but remove(int) aint.

 on: 2014-07-22 20:30:09 
Started by xWhiteraven321x - Last post by opiop65
Honestly just keep watching the tutorial (theCherno) and rewrite the code. I've watched his tutorials too, they work fine. You made a mistake copying his code somewhere.

 on: 2014-07-22 19:10:13 
Started by noblemaster - Last post by Herjan
I wonder about the water color however! I like the water color in C. What's your guys take?

So small difference, but A wins the price.

A looks the best indeed, but I think that is because the water is varied (it is not as plain as in B/C).
There are 2 colors mixing in A (which makes it different from the water in B), but its a little dark.
If you mix another (somewhat more blue/dark) color through C like you did in A, it may be looking great.

 on: 2014-07-22 18:26:26 
Started by Jacob Pickens - Last post by KevinWorkman
I highly recommend LeJos:

I built a drawing robot using LeJos:

 on: 2014-07-22 18:25:22 
Started by noblemaster - Last post by JVallius
Thanks for the feedback so far guys!  Grin

Looks like A is the winner in regards to map! I wonder about the water color however! I like the water color in C. What's your guys take?

So small difference, but A wins the price.

Pages: 1 ... 5 6 [7] 8 9 10

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (11 views)
2014-07-24 07:59:36

Riven (10 views)
2014-07-24 03:16:32

Riven (11 views)
2014-07-24 03:07:15

Riven (12 views)
2014-07-24 02:56:16

ctomni231 (42 views)
2014-07-18 12:55:21

Zero Volt (38 views)
2014-07-18 05:47:54

danieldean (32 views)
2014-07-18 05:41:23

MustardPeter (34 views)
2014-07-17 05:30:00

Cero (49 views)
2014-07-16 06:42:17

Riven (50 views)
2014-07-15 00:02:53
HotSpot Options
by dleskov
2014-07-08 09:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 06:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 06:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 17:13:37

HotSpot Options
by Roquen
2014-05-15 15:59:54

HotSpot Options
by Roquen
2014-05-06 21:03:10

Escape Analysis
by Roquen
2014-04-30 04:16:43

Experimental Toys
by Roquen
2014-04-28 19:24:22 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!