Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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  Discussions / General Discussions / Re: How should I replicating the fill or bucket tool in a 2d array? on: 2013-02-20 03:15:02
That's exactly what I was looking for! Thank you for the quick response.
2  Discussions / General Discussions / [SOLVED] How should I replicating the fill or bucket tool in a 2d array? on: 2013-02-20 02:10:21
Edit: Found a solution online while researching Flood Filling thanks to actual. It's a simple recursive method that works very well. Here's a link to the javascript example (also doable in Java): http://www.somethinghitme.com/2012/03/07/html5-canvas-flood-fill/

I'm currently working on a level editor for an Android game. My goal is to add cool tools such as:

  • pencil: Add single textures to the grid
  • eraser: remove texture from grid
  • bucket: fill in neighbor textures

I can't seem to find any tutorials on how to fill in an arbitrary geometric area for the bucket tool. I'm not necessarily looking for source code, I just can't seem to figure out how to go about filling in parts of a 2d array. I've considered using path-finding techniques, but I feel there may be a simple solution. Here is an image of what I'm dealing with:


I've created many level editors in the past, but never played around with the bucket tool idea. If you have any thoughts, please post about it; I'm sure other people would like to know how to do this as well. Thanks in advance!

PS - This tool is being written from HTML 5's Canvas (Javascript), not Java. I've worked with both, so syntax isn't really a problem; I'll take any pseudo code.
3  Java Game APIs & Engines / Android / Re: [canvas issue] Has anyone seen this problem? on: 2013-02-14 21:59:49
It's more than just blank space; it's dead space (pun not intended). The physical touch event doesn't even work in that area. The rendered background moves appears much further down on other devices.
4  Java Game APIs & Engines / Android / [canvas issue] Has anyone seen this problem? on: 2013-01-29 00:31:17
My friends recently showed me a bug that shows up for his android. He owns the Sprint Photon and the game runs off of the Canvas library. Here's what it looks like:


Any thoughts? I'd like to patch this up for future games.
5  Games Center / WIP games, tools & toy projects / Re: Boxel: Android Source Code Now Available on: 2012-12-10 02:14:12
Unfortuntately, that zombie picture has nothing to do with the game, but if anyone's interested, here is the source code for Boxel (full v1.0.3.1). This should be a nice guide for those who want to start their very own Android game: http://www.mediafire.com/?70fu6ndmo41p2pj
6  Games Center / WIP games, tools & toy projects / Re: Boxel: Now Entering Beta (Available on Google Play) on: 2012-11-20 12:06:28
If you have an android, go ahead and try out Boxel for free. I'd love to hear some feedback as well!


7  Games Center / WIP games, tools & toy projects / Re: Boxel: A Canabalt style game on: 2012-10-20 14:08:02
Any recommendations for the game would be extremely awesome. I'm all ears if you have any ideas.
8  Games Center / WIP games, tools & toy projects / Boxel: Android Source Code Now Available on: 2012-10-12 21:19:34
Post update v5

Own it for free through Google Play (for android v2.2+): https://play.google.com/store/apps/details?id=pack.boxel.main&feature=search_result#?t=W251bGwsMSwyLDEsInBhY2suYm94ZWwubWFpbiJd

I've recently decided to provide the source code to anybody who is interested. I'm a bit embarrassed to show how messy my code can get, but I'm sure someone out there might appreciate the code for their own use. Without further delay, I present to your the latest version of the source code: http://www.mediafire.com/?70fu6ndmo41p2pj

If you need help installing the code, please let me know. It's pretty easy to set up when you know what you're doing. I recommend using Eclipse to code with Java

Change Log: v1.0.3.1

  • Minor Bug Fixes
  • Improved FPS...slightly

Now that the game is finished, I can finally begin working on new games. Thanks for reading!
9  Games Center / Showcase / Re: Arrow Runner 2.0 on: 2012-09-09 04:17:31
I like it, maybe try to get your ship to rotate in it's direction. For example, if you press space, it evens out. Otherwise, it pencil dives into the ground. Nice job man; pretty fun
10  Games Center / Showcase / Re: Falling Pots on: 2012-09-06 01:24:10
I thought those looked familiar haha. Keep up the good work and definitely ask questions constantly; these guys love solving problems!
11  Games Center / WIP games, tools & toy projects / Re: Flack v1.3 on: 2012-09-06 01:03:42
I thought about making it android compatible. Maybe the controls would be too hard if it was tilt-motion based? The last update allows it to be resizable so converting it shouldn't be the issue.
12  Games Center / WIP games, tools & toy projects / Re: Flack on: 2012-06-17 19:04:59
Haha, sorry about that man. Also, I need to replace that beta with a demo soon. (The beta is pretty outdated).
13  Games Center / WIP games, tools & toy projects / Flack on: 2012-06-17 18:38:49
I am more than happy to announce that the first full version of Flack is now available at Desura.com. PC users can grab their copy right away (Mac users will have a version available in a few hours). This has been an incredibly exciting process for me since this is my first officially published game. I poured a great amount of work into this game, and I believe you will enjoy Flack even if platformers aren't your cup-of-tea.



<a href="http://www.youtube.com/v/JcxKpLjWTnE?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/JcxKpLjWTnE?version=3&amp;hl=en_US&amp;start=</a>



Flack v1.0-v1.3 Update

  • Added The Level Generator - Play through 6 completely random levels anytime
  • Added The Keeper's Shop - Try to capture the Keeper who is disguised as coin. Purchase items with the coins you have collected
  • Added the option to play in either full screen or re-sizable resolutions...I'm not sure why it took so long to figure this out haha
  • Made minor improvements towards the players animation
  • Improved the demo. Try out most features included in the full version



Level Generator Example

The Keeper's Shop

Full Screen Preview



Link to Website: http://www.desura.com/games/flack
Link to the Demo: http://www.desura.com/games/flack/download/2739



Thanks for reading again. Enjoy the demo!
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (32 views)
2013-05-17 21:29:12

alaslipknot (41 views)
2013-05-16 21:24:48

gouessej (71 views)
2013-05-16 00:53:38

gouessej (69 views)
2013-05-16 00:17:58

theagentd (78 views)
2013-05-15 15:01:13

theagentd (73 views)
2013-05-15 15:00:54

StreetDoggy (113 views)
2013-05-14 15:56:26

kutucuk (137 views)
2013-05-12 17:10:36

kutucuk (137 views)
2013-05-12 15:36:09

UnluckyDevil (145 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.149 seconds with 21 queries.