Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 4 5 [6] 7 8 ... 16
  ignore  |  Print  
  [Slick2d] Retro-Pixel Castles > Now on Steam! <  (Read 55005 times)
0 Members and 3 Guests are viewing this topic.
Online trollwarrior1
« Reply #150 - Posted 2014-06-22 06:44:54 »

This is how texture bleeding looks on my screen.

Or something like that. Green is correct texture, and red is part of the texture that is not supposed to be displayed. This happens for brief moments, because the camera is moving. If you were to stop the camera the moment this happens, it would stay on the screen until you changed camera position. This happens when using non-int camera positions, which causes screen pixels and texels to missallign.

Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #151 - Posted 2014-06-22 06:50:10 »

Don't think anyone mentioned it:

When hovering over the buttons in the tools on the map editor, you need to position the mouse more towards the center or even pretty much the last pixel of the last button, as the text starts off the edge of the screen.

not sure how you code your text rendering, but you should just check to see if the beginning x is less then 0, if it is put it to like x = 5 or something, so their is a little gap from the edge.

That's been on my "todo" list for a while. Smiley

I just have to calculate where the font is, the font width, and nudge it over a bit. Just haven't gotten around to writing a method to do that yet.

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #152 - Posted 2014-06-22 08:02:52 »

This is how texture bleeding looks on my screen.

Or something like that. Green is correct texture, and red is part of the texture that is not supposed to be displayed. This happens for brief moments, because the camera is moving. If you were to stop the camera the moment this happens, it would stay on the screen until you changed camera position. This happens when using non-int camera positions, which causes screen pixels and texels to missallign.



Disable your force-enabled anti-aliasing settings in your nVidia/ATI control panel and try again. My game doesn't like AA. Wink

Here's a shot of what I assume you're seeing? (this is with 4x AA enabled)
www.retropixelcastles.com/junk/devshots/InDev-2014-06-22-3.png

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online trollwarrior1
« Reply #153 - Posted 2014-06-22 08:53:57 »

Here are my settings.

Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 832
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #154 - Posted 2014-06-22 08:55:33 »

As for the cracks, I *think* I have a good solution, but I have to try it out first. The cracks I believe are being caused by the subpixel movement since the map position is controlled by floats, if I round off all the excess decimals in the movement code it may eliminate the issue. I would just make the mapX/Y coordinates ints, but I lose a lot of control when I do that.
Don't change the model, round the values you pass to OpenGL. Pointing

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #155 - Posted 2014-06-22 09:08:41 »

Here are my settings.

hmm, how odd. Are you getting something like in the screenshot I linked you, or the vertical black lines?

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Online trollwarrior1
« Reply #156 - Posted 2014-06-22 09:53:19 »

Yes. Thats what I call sprite bleeding. My picture was describing just that.
Offline Bearded Cow

Senior Devvie


Medals: 2
Projects: 1
Exp: 1 year


¬..¬


« Reply #157 - Posted 2014-06-22 10:13:41 »

Wow, looking very professionally!!

Looking forward to the actual game Cheesy
Offline Grunnt

JGO Kernel


Medals: 94
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #158 - Posted 2014-06-22 13:51:26 »

I tried the map editor tech demo, its awesome work! Both technologically and style-wise, I love how it looks and feels.

Some things I noticed:
- the help popups on mouseover sometimes are partly off-screen (always centered on the cursor I presume), making them unreadable when over e.g. a button on the edge of the screen
- not being able to connect tiles with anything other than grass is a bit limiting: it would be nice to put e.g. a desert tile next to rock tiles, or different shades of mud next to each other. Currently I cant see how to do this (I suppose this is because its hard to make all the combinations)
- walls have directional shadows from the sun even at night, which looks a bit weird

But overall excellent job, and I'm looking forward to (buying) the game!

Online Drenius
« Reply #159 - Posted 2014-06-22 15:14:37 »

Some loading screens (you know, just "loading" and a moving gif...) could help to give the transitions e.g. from menu to editor a more necessary and less laggy feeling...

Also the option to create an image from the map does... hm, not sure what it does. The display disappears, shows the desctop (no interaction possible) and goes back to normal after some time. Could you make this more like a background worker?

Good job after all.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gibbo3771
« Reply #160 - Posted 2014-06-22 16:22:47 »

I like your UI, it is quite nice and polished. Simple (not in code ofc) but pleasant to look at.

It has a nice "feel" to it, the only thing is that the whole thing seems utterly pointless as it stands right now and I lost interest in it within about 30 seconds. Once it has more purpose and it is implemented into the game itself, in a way we can use; it will be good.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Slyth2727
« Reply #161 - Posted 2014-06-22 17:02:03 »

Sweet, you've released something!!!
Downloading now. Let the testing commence  Cheesy

Edit:
Alright, its pretty awesome. Everything is very smooth and easy to understand.
You should release something that lets us play around with the AI stuff you were originally talking about!

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #162 - Posted 2014-06-22 17:34:19 »

Yes. Thats what I call sprite bleeding. My picture was describing just that.

Hmm. I wonder if you have AA enabled for java programs somewhere?

The next build, I flagged the game to forcefully disable AA, we'll see if that helps your problem. Smiley

Wow, looking very professionally!!

Looking forward to the actual game Cheesy

Thanks Cheesy

I tried the map editor tech demo, its awesome work! Both technologically and style-wise, I love how it looks and feels.

Some things I noticed:
- the help popups on mouseover sometimes are partly off-screen (always centered on the cursor I presume), making them unreadable when over e.g. a button on the edge of the screen
- not being able to connect tiles with anything other than grass is a bit limiting: it would be nice to put e.g. a desert tile next to rock tiles, or different shades of mud next to each other. Currently I cant see how to do this (I suppose this is because its hard to make all the combinations)
- walls have directional shadows from the sun even at night, which looks a bit weird

But overall excellent job, and I'm looking forward to (buying) the game!

Mouseovers:
- Already on the fix list. Smiley

Connecting tiles:
- You hit the nail on the head, it would look really really nice but it would involve having a transition tile for every single tile in the game to every other tile in the game . . . and if I did it in the code with texture blending/etc it would just look cheap. :/

Night shadows:
- Also on the fix list. I was going to make the shadows fade as the sun went down. Cheesy

Some loading screens (you know, just "loading" and a moving gif...) could help to give the transitions e.g. from menu to editor a more necessary and less laggy feeling...

Also the option to create an image from the map does... hm, not sure what it does. The display disappears, shows the desctop (no interaction possible) and goes back to normal after some time. Could you make this more like a background worker?

Good job after all.

Loading screens:
Yeah, I plan to eventually add a loading screen.. even if it's just a static imagine, just something to let the player know loading is happening.

Map image:
Same with the map image out, it needs some sort of indication it's actually doing something. The map image out is very unoptimized at the moment.
(BTW: it drops the image in /screenShot/)


- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #163 - Posted 2014-06-22 20:14:33 »

I forgot to ask this; is anyone on a Linux of Mac machine? If so, did it run at all or throwback an error?

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline OpenGLShaders

Junior Devvie


Medals: 4
Exp: 2 years



« Reply #164 - Posted 2014-06-22 21:23:33 »

I forgot to ask this; is anyone on a Linux of Mac machine? If so, did it run at all or throwback an error?

On mac, a white fullscreen window pops up, then closes without displaying. Gives the NSAddLibrary failed/Java 7 incompatibility error.
Offline DarkCart

JGO Knight


Medals: 23
Projects: 7
Exp: 2 years


Power of the mind over flesh


« Reply #165 - Posted 2014-06-22 22:39:24 »

That's one pretty smooth map editor you got there. I can't wait to see the whole game!

Play Mazer | Or visit Sticks | Or try out SJGL
Offline Longarmx
« Reply #166 - Posted 2014-06-23 01:09:08 »

On start up, my mouse cursor disappears. I am using a custom cursor with CursorFX on windows though, so I don't know if there's much you can do about it. When I remove the custom cursor, it works fine.

A workaround could be to grab the mouse cursor, and then draw a mouse cursor image at the mouse position.

Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #167 - Posted 2014-06-23 01:22:30 »

On start up, my mouse cursor disappears. I am using a custom cursor with CursorFX on windows though, so I don't know if there's much you can do about it. When I remove the custom cursor, it works fine.

A workaround could be to grab the mouse cursor, and then draw a mouse cursor image at the mouse position.

I plan to have custom cursors for full screen mode, but when you use custom cursors in windowed LWJGL likes to lock focus on window until you tab out, making it annoying to play the game in windowed mode unless you don't hide the hardware cursor, and that would just look fugley rendering both the custom and hardware cursors at the same time. :/

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline loom_weaver

JGO Coder


Medals: 17



« Reply #168 - Posted 2014-06-23 02:04:42 »

Having trouble running this on my MacBook Pro 2013 with Retina.

1  
2  
3  
4  
$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
$ java -jar RPC-InDev-6-21-2014c.jar 
Mon Jun 23 05:08:03 IDT 2014 INFO:Slick Build #237
Mon Jun 23 05:08:03 IDT 2014 INFO:LWJGL Version: 2.8.5
Mon Jun 23 05:08:03 IDT 2014 INFO:OriginalDisplayMode: 1440 x 900 x 32 @0Hz
Mon Jun 23 05:08:03 IDT 2014 INFO:TargetDisplayMode: 1440 x 900 x 32 @0Hz
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
Mon Jun 23 05:08:05 IDT 2014 ERROR:Could not get the JAWT interface
org.lwjgl.LWJGLException: Could not get the JAWT interface
   at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method)
   at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:51)
   at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:94)
   at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:92)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:92)
   at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:66)
   at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:57)
   at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56)
   at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85)
   at org.lwjgl.opengl.MacOSXContextImplementation.create(MacOSXContextImplementation.java:47)
   at org.lwjgl.opengl.ContextGL.<init>(ContextGL.java:132)
   at org.lwjgl.opengl.Display.create(Display.java:847)
   at org.lwjgl.opengl.Display.create(Display.java:754)
   at org.newdawn.slick.AppGameContainer.tryCreateDisplay(AppGameContainer.java:302)
<snip>
org.newdawn.slick.SlickException: Failed to initialise the LWJGL display
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:378)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
   at rpc.launcher.Game.launchGame(Game.java:53)
   at rpc.launcher.Launcher.main(Launcher.java:16)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)


I then adjusted the settings.properties:
fullscreenUseNative=false
fullScreen=false

1  
2  
3  
4  
5  
6  
7  
8  
$ java -jar RPC-InDev-6-21-2014c.jar 
Mon Jun 23 05:06:21 IDT 2014 INFO:Slick Build #237
Mon Jun 23 05:06:21 IDT 2014 INFO:LWJGL Version: 2.8.5
Mon Jun 23 05:06:21 IDT 2014 INFO:OriginalDisplayMode: 1440 x 900 x 32 @0Hz
Mon Jun 23 05:06:21 IDT 2014 INFO:TargetDisplayMode: 1280 x 720 x 0 @0Hz
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
_NSJVMLoadLibrary: NSAddLibrary failed for /libjawt.dylib
JavaVM FATAL: lookup of function JAWT_GetAWT failed. Exit


I also tried copying over the 2.9.1 lwjgl natives but that gave me a linker mismatch:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
$ java -jar RPC-InDev-6-21-2014c.jar 
Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.LinkageError: Version mismatch: jar version is '23', native library version is '25'
   at org.lwjgl.Sys.<clinit>(Sys.java:118)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
   at org.newdawn.slick.AppGameContainer$1.run(AppGameContainer.java:39)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.newdawn.slick.AppGameContainer.<clinit>(AppGameContainer.java:36)
   at rpc.launcher.Game.launchGame(Game.java:42)
   at rpc.launcher.Launcher.main(Launcher.java:16)
   ... 5 more


Let me know if you want me to try anything else.
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #169 - Posted 2014-06-23 03:32:01 »

Changelog (Almost all of it based on your guy's input!)
6-22-2014
- New "float" font, with solid black borders.
- Button descriptions don't leave the bounds of the gameplay window.
- Main menu dropdown descriptions fixed.
- Potential fix for Mac OSX users.

A majority of the work today won't be visible to you guys in this build, it mostly involved getting object placement working correctly, but the new object placement tool was disabled in this build because it's not even remotely complete.

>>Download the Map Editor TECH DEMO HERE<<
http://retropixelcastles.com/junk/rawbuilds/RPC-InDev-6-22-2014.zip
(Disclaimer: Don't forget to provide constructive feedback!)

Explore all the old builds, if you dare!
http://retropixelcastles.com/junk/rawbuilds/

Having trouble running this on my MacBook Pro 2013 with Retina.

Try this latest build, let me know if it works for you (or if the error changed!) Wink

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline ra4king

JGO Kernel


Medals: 355
Projects: 3
Exp: 5 years


I'm the King!


« Reply #170 - Posted 2014-06-23 05:22:43 »

@loom_weaver
You didn't update the LWJGL jar.

Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #171 - Posted 2014-06-23 05:34:21 »

@loom_weaver
You didn't update the LWJGL jar.

I included the 2.9.1 jar in the last build. Smiley

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline OpenGLShaders

Junior Devvie


Medals: 4
Exp: 2 years



« Reply #172 - Posted 2014-06-23 12:58:48 »

Well, it crashed, but a with a different error this time Wink http://www.java-gaming.org/?action=pastebin&id=991
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #173 - Posted 2014-06-23 20:21:50 »

Making slow progress on object placement. Still a lot of work needs to be done though. But I've got basic collision detection working, it only allows you to place objects on valid map locations. I still have a ton of checks that need done, but it's a start!

Click to Play







- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline chrisethompson

Senior Newbie


Medals: 1
Exp: 5 years



« Reply #174 - Posted 2014-06-25 12:55:28 »

I really enjoyed playing with this.  It is really great.  I'm looking forward to seeing little peeps running around and trying to cope with the crazy map that I draw.  

Some quick ideas to help you.

On the initial map creation screen, TAB should probably jump you from one field to another (minor).  Also minor, the font is quite hard to read when you type in your map name.  Fonts are hard though (I certainly struggle with them), so not one to labor over right now I expect.

When placing trees it would be nice if there was a round brush, or if the edges were always a little more organic.

If you select a tile from the right draw, it would be nice if one tile is selected by default (perhaps the last one you used).  Otherwise you have to also click on the tile to select it.  Even if there is only one tile.

The eraser erases everything.  But drawing grass or earth respects the fact that trees exist and does not write over them.  Would be nice if the eraser respected the layers.  

You cant draw gravel up against "tiles" or walls without it erasing part of them and putting the base layer (like grass) in between.  Even if the brush size is 1.

If you hold down both mouse buttons and draw with dirt with a thin brush, then the drawing does not keep up with the speed that you move at.  It looks like you are drawing a nice road, but when you go back over it, there are gaps in it.

I can see that you can draw rock on top of rock, to make a mountainside, but its not initially clear how. I think that it is Accent Mode, is that right?  This does not work for drawing walls on top of rock, which would be nice.  It would also be nice if you could keep drawing layers to make a mountain.  Of course then we would need gravity for rivers and bridges and all sorts of fun stuff. Snow on the top for example.

Need an undo button.  I clicked several times by accident and found myself hitting ctrl-z automatically and then was disappointed when nothing happened...

Chris
Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #175 - Posted 2014-06-25 18:15:36 »

I really enjoyed playing with this.  It is really great.  I'm looking forward to seeing little peeps running around and trying to cope with the crazy map that I draw.   

Some quick ideas to help you.

On the initial map creation screen, TAB should probably jump you from one field to another (minor).  Also minor, the font is quite hard to read when you type in your map name.  Fonts are hard though (I certainly struggle with them), so not one to labor over right now I expect.

When placing trees it would be nice if there was a round brush, or if the edges were always a little more organic.

If you select a tile from the right draw, it would be nice if one tile is selected by default (perhaps the last one you used).  Otherwise you have to also click on the tile to select it.  Even if there is only one tile.

The eraser erases everything.  But drawing grass or earth respects the fact that trees exist and does not write over them.  Would be nice if the eraser respected the layers. 

You cant draw gravel up against "tiles" or walls without it erasing part of them and putting the base layer (like grass) in between.  Even if the brush size is 1.

If you hold down both mouse buttons and draw with dirt with a thin brush, then the drawing does not keep up with the speed that you move at.  It looks like you are drawing a nice road, but when you go back over it, there are gaps in it.

I can see that you can draw rock on top of rock, to make a mountainside, but its not initially clear how. I think that it is Accent Mode, is that right?  This does not work for drawing walls on top of rock, which would be nice.  It would also be nice if you could keep drawing layers to make a mountain.  Of course then we would need gravity for rivers and bridges and all sorts of fun stuff. Snow on the top for example.

Need an undo button.  I clicked several times by accident and found myself hitting ctrl-z automatically and then was disappointed when nothing happened...

Chris


Tiny font: Yeah, the tiny font is a problem. I've done a lot of work to clean it up, but it's still hard to read sometimes. (Uppercase N for example, looks like an H) I may eventually give in and figure a way to make it ever-so-slightly larger, or modify the entire GUI to take the large font instead. :/

Tab in menus: *adds to TODO list* Smiley

Round brush: Already on the list, I was actually going to eventually have several brush types. But "Round" and "Square" were both going to be my bare minimum.

Select tile by default: It does select one by default? Was it not selecting one for you?

Erase by layer: Actually that's how erase used to work, but it was really tedious having to select what layer to erase all the time. Although, that was also very old version of the editor and the lack of many other features is why is felt so clunky. Now I may be able to make a 4-state erase button. (Terrain, liquids, topography, or all) that you can cycle through. I'll add it to my list of things to do down the road. Smiley

Drawing tiles on top of each other: That's by design, The base terrain has it's own layer, but the terrain all drawn on top exists on the same layer, so there's no logical way to allow them to overlap, so they get as close as possible but never intermingle. The only real way to allow them all to connect would be to draw transition variations for every terrain -> every other terrain, and even right now with only 19 terrains that would be around 200~ transition tilesets. :/

Holes in drawing: Sadly, the drawing is tied to the games update cycles and your mouse's polling speed, right now really the only solution is to not move the mouse and map at the same time (or slower). Since the tiles are so tiny it's really easy for a fast mouse to totally skip over one tile here and there. I have it on my list of things to fix, but I have no clue how yet. I'd like to see how programs like Photoshop do it.

Layers on other layers that don't match up: Sadly, that could never work due to the limitations of the tile engine I created. The second layer of rocks/trees is actually an optical illusion, but the way the transition management part of the program works is each terrain is given 2 layers, a base layer and an accent layer. The accent layer must match the same tileset type below it, else the engine thinks it's a glitch and removes it. It's really more complicated than that, but I'm not sure how to simplify my answer without explaining how the entire tile engine works. Shocked So I guess the short answer is "the engine won't let you without rewriting half of the map controller code)

Undo button: Already on the list. I do the same thing all the time, and it's my program! Smiley


- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #176 - Posted 2014-06-25 19:02:02 »

Holes in drawing: Sadly, the drawing is tied to the games update cycles and your mouse's polling speed, right now really the only solution is to not move the mouse and map at the same time (or slower). Since the tiles are so tiny it's really easy for a fast mouse to totally skip over one tile here and there. I have it on my list of things to fix, but I have no clue how yet. I'd like to see how programs like Photoshop do it.

Get mouse coordinates before update and after. Fill all tiles between Smiley
Online BurntPizza

« JGO Bitwise Duke »


Medals: 271
Exp: 5 years



« Reply #177 - Posted 2014-06-25 19:07:52 »

Yeah I always implement a drawing tool like that as "draw line between current and last polled position." Usually works out pretty smooth. If you want to be really fancy you could use splines or something too.
Offline Herjan
« Reply #178 - Posted 2014-06-25 19:17:56 »

Select tile by default: It does select one by default? Was it not selecting one for you?

It does, but there was no way too see which (and so if) one was selected (at least in the build I tried). And that's why he probably didn't know about a default selection.

No offense, but in my eyes you are avoiding a lot of possibilities because "I have to rewrite half ...".
But really, that's what programming is: write, rewrite and rewrite, serious, I am working for over two weeks on client/server which communicate via UDP, I have been actively working on it for around 20 hours, and do you want to know the difference in LOC? Zero. And its no fun either, no new tiles to get abused, no awesome blood-effects to show off, nor is there any NPC trading items with you.

Offline Rayvolution

« JGO Spiffy Duke »


Medals: 222
Projects: 2
Exp: 1 year


Resident Crazyman


« Reply #179 - Posted 2014-06-25 20:15:17 »

Holes in drawing: Sadly, the drawing is tied to the games update cycles and your mouse's polling speed, right now really the only solution is to not move the mouse and map at the same time (or slower). Since the tiles are so tiny it's really easy for a fast mouse to totally skip over one tile here and there. I have it on my list of things to fix, but I have no clue how yet. I'd like to see how programs like Photoshop do it.
Get mouse coordinates before update and after. Fill all tiles between Smiley
Yeah I always implement a drawing tool like that as "draw line between current and last polled position." Usually works out pretty smooth. If you want to be really fancy you could use splines or something too.

Hey! That's pretty much the idea I had in my head. I assumed from working with older versions of Photoshop and some other drawing programs that's how they do it when the system is bogged down (because your smooth curvy lines turn into straight lines everywhere). I'll give it a shot when I get back to working on brush tools.

Select tile by default: It does select one by default? Was it not selecting one for you?

It does, but there was no way too see which (and so if) one was selected (at least in the build I tried). And that's why he probably didn't know about a default selection.

No offense, but in my eyes you are avoiding a lot of possibilities because "I have to rewrite half ...".
But really, that's what programming is: write, rewrite and rewrite, serious, I am working for over two weeks on client/server which communicate via UDP, I have been actively working on it for around 20 hours, and do you want to know the difference in LOC? Zero. And its no fun either, no new tiles to get abused, no awesome blood-effects to show off, nor is there any NPC trading items with you.

It highlights what is selected by default in the side tab, short of a big flashing message in the middle of your screen I'm not exactly sure how else I would notify the user. :/

Also, rewriting my MapController to completely reconfigure it to use layers in the way that was requested is a fundamental redesign of the entire program, because the accent layers that chrisethompson is suggesting to change have completely different behavior than regular layers. It's not a simple rewrite you fiddle with a few days to get right because you're a dedicated awesome coded, it's a fundamental change to the core of the game's code and requires basically starting over. While cool feature/idea, it's simply not worth scrapping half my code to add. You don't want to get caught in the adding-features-endlessly trap, else your projects would never be completed.

chrisethompson suggestion is actually a great idea; it's just not reasonably viable in this map engine without making the engine massively more complicated than I want it to be for the plans I have in the future for the rest of the gameplay. Wink

- Raymond "Rayvolution" Doerr.
Retro-Pixel Castles - Survival Sim/Builder/Roguelike!
LIVE-STREAMING DEVELOPMENT: http://www.twitch.tv/SG_Rayvolution
Pages: 1 ... 4 5 [6] 7 8 ... 16
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

SHC (21 views)
2014-11-25 12:00:59

SHC (19 views)
2014-11-25 11:53:45

Norakomi (18 views)
2014-11-25 11:26:43

Gibbo3771 (21 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (41 views)
2014-11-12 21:09:33

kovacsa (67 views)
2014-11-07 19:57:14
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!