This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi everyone. Ive been spending today working on a simple java program that is supposed to listen for the up down left or right key and print an isometric cube to screen in a new position depending on which key is pressed.
Now that part of the code seems to be working fine (though im sure im over complicating it), but I also have a section of code that is supposed to remove cubes. so if you created 3 cubes going up for example you should be able to press the down key three times and remove all 3 of those cube and than begin to create cubes going downward once those 3 are removed.
There seems to be something funky with my logic because this part of the code only deletes a cube once and than after that seemingly does nothing or in some strange cases creates a ton of duplicates of ImageView cubes.
If anyone could tell me where my logic is flawed I would really appreciate it as Im kind of stumped right now.
link to code below, also If im being too vague or need to supply or clarify any additional information please let me know. Thanks in advance guys.
https://gist.github.com/permawritersblock/95aa0cfcc5de5fca25e6382e31e64b35
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnjava/c...