Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (492)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3
  ignore  |  Print  
  Xcylin: A sci-fi open world voxel game.  (Read 15946 times)
0 Members and 1 Guest are viewing this topic.
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #30 - Posted 2013-06-15 12:05:46 »

I'm currently working on the terrain shaping. That involves planting trees and forming each sector (32x32x128 blocks) further.

I started with some random tree generation:





Still having some work to do as the block data structure seems to be slow in some cases - maybe a synchronization problem. When a sector is shaped the laser is suddenly not that effective anymore Wink

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline RUSD

Junior Member


Projects: 2



« Reply #31 - Posted 2013-06-16 20:47:57 »

This game looks pretty cool!  I'd be happy to be a tester if you need one.   Grin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #32 - Posted 2013-06-16 23:40:37 »

This game looks pretty cool!  I'd be happy to be a tester if you need one.   Grin

I'm planning to do some alpha testing soon (in a few weeks). I will post details here when everything is ready for that - just need to add some more basic things into the game like crafting and maybe some dungeons Wink

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #33 - Posted 2013-06-17 09:17:06 »

Cant wait Smiley
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #34 - Posted 2013-06-18 02:28:14 »

Wow, those pics look nice, color choice really emphasize the "sci-fi" feel I think.
Offline Longarmx
« Reply #35 - Posted 2013-06-18 02:30:04 »

This looks really good! Wink I think the lighting with the bright colors really makes everything stand out.

Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #36 - Posted 2013-06-24 08:44:38 »

Now I also added some plants to the surface to make it appear more vivid:



Next up: some fruits for the trees that the player can loot.

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline Kroniz

Senior Newbie





« Reply #37 - Posted 2013-06-24 08:48:14 »

Would be cool to see some kind of plane or simlair?
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #38 - Posted 2013-06-24 11:46:14 »

Would be cool to see some kind of plane or simlair?

Xcylin possesses a xen technology that is mostly underground based - so no planes Wink But there will be lifeforms running (or even flying) around and you will get to build some kind of jetpack Wink

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #39 - Posted 2013-07-18 09:47:23 »

Now that I have more time for Xcylin, here is an update on what I'm currently working on:

I noticed a slight jitter when the sectors are getting build that really annoyes me. So I'm doing a lot of benchmarking to find the source. So far I found out that the state manager update most likely causes the jitter by taking more then 11ms in some situations. In normal conditions (no new sectors are being built) one loop just takes 0.9ms. I already accounted for 4ms of that 11ms but the other 7ms are still a mystery.

I think this all has something to do with the biome generation: when a sector is built for the first time the according biom/shaper method is called that allows to create trees/plants etc. This also updates in some situations other sectors (e.g. when the leafs of a tree expand to a different sector) so a lot of sectors have to be recreated and that might lead to the jitter.

Maybe I have to split the mesh of a sector into smaller parts but I already tried that once with 16x16x16 block parts that only resulted in a huge framerate drop. So possibly I have to go with 16x128x16 block parts. I think I will have to experiment for a while to get this right. Too bad I really want to add more features and not debug for some days Sad

Nevertheless I have decided to use this thread as a kind of blog for the development of Xcylin as long as I have no time to create a website. So check this page from time to time if you want to stay up to date. I will also announce the alpha test here.

Also: here is a recent screenshot of an underground jitter testing site on Xcylin.


Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #40 - Posted 2013-08-12 19:50:39 »

Time for a small update: I'm currently working on the story/items in the game and also on adding water to Xcylin.

Also the water (and light within the water) looks quite good I still need to implement the correct physics simulation - I hope JBullet won't make it too complicated for me in this case. Also I need to play around a bit more with the flow of water so that it feels natural.

Here is a video showing the new water blocks in action:

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

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline quew8

JGO Coder


Medals: 29



« Reply #41 - Posted 2013-08-12 20:02:16 »

It definitely looks like a cool effect but you might want to scale it down a bit. Most water isn't going to be that ripply. That looks like water under rain. But again, looks good.
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #42 - Posted 2013-08-12 21:00:51 »

It definitely looks like a cool effect but you might want to scale it down a bit. Most water isn't going to be that ripply. That looks like water under rain. But again, looks good.

I agree with you - the water still needs fine tuning. But all the things like ripple strength, movement, color, light absorbtion can be set in the corresponsing javascript file that looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
function onInit(block) {
    block.setTexture("Textures/water.png");
   
    block.setLightAbsorbtionLevel(0.3);
   
    block.setLiquid(true);
    block.setLiquidFallOff(1.0);
    block.setLiquidRippleFactor(3.0);
    block.setLiquidColor(new Color(0, 0.2, 0.8));
    block.setLiquidFlowSpeed(new Vector3f(0, 1, 0));
}

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #43 - Posted 2013-08-13 20:30:53 »

I've updated the ripple effect - now it looks like this:


Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline Morgan Allen
« Reply #44 - Posted 2013-08-18 17:32:15 »

That looks pretty sweet.
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #45 - Posted 2013-08-18 19:15:20 »

Looks much better IMO  Tongue

"Experience is what you get when you did not get what you wanted"
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #46 - Posted 2013-08-19 09:46:39 »

That looks pretty sweet.

Thanks Smiley

Looks much better IMO  Tongue

Yes, I also like it more that way.

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #47 - Posted 2013-10-12 20:57:53 »

Now that I added water, next thing was to make equipable items. Of course the behaviour of these items is also scripted in JavaScript. First thing I did was Jetpack!  Cool

Here is a first demo of me flying the jetpack. It is by design not that easy to control - just like a real one Wink

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

By the way, this is how it is defined in Javascript:

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  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
function onInit(item) {
    item.setGraphicMesh("Textures/item_placeholder.png");
    item.setStackUpTo(1);
   
    var useableItemTrait = new UseableItemTrait();
    useableItemTrait.setCheckActiveFunction(isActive);
    useableItemTrait.setWhileActiveFunction(whileActive);
    useableItemTrait.setOnButtonPressFunction(onButtonPressed);
    item.setTrait(useableItemTrait);
}

var active = false;

function isActive(world) {
    return active;
}

function whileActive(world) {
    var player = world.getPlayer();
    if (player.isOnFloor()) {
        world.getPlayer().setUseWalkBehaviour(true);
    } else {
        world.getPlayer().setUseWalkBehaviour(false);
        var walkDirection = player.getWalkDirection();
        var impulse = new Vector3f(walkDirection.x * 10, walkDirection.y * 20, walkDirection.z * 10);
        var impulseXZ = new Vector3f(impulse.x, 0, impulse.z);

        var velocity = player.getVelocity();
        var velocityXZ = new Vector3f(velocity.x, 0, velocity.z);
       
        //we limit the XZ speed a bit
       if (velocityXZ.length() > 5) {
            var velocityXZ_N = velocityXZ.normalize();
            var a1 = impulseXZ.dot(velocityXZ_N);
            var projection = velocityXZ_N.mult(a1);
            impulseXZ.subtractLocal(projection);
           
            impulse.set(impulseXZ.x, impulse.y, impulseXZ.z);
        }
       
        //the jetpack uses energy
       if (impulse.y > 0) {
            player.addEnergy(- 0.4);
        }
        if (player.getEnergy() < 1) {
            impulse.y = 0;
        }
       
        player.applyImpulse(impulse);
    }
}

function onButtonPressed(world) {
    active = !active;
    if (!active) {
        world.getPlayer().setUseWalkBehaviour(true);
    }
}


Next up: a personal Teleporter that allows to transport on top of the topmost block at the current position.

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #48 - Posted 2014-02-13 09:18:24 »

Over the last couple of weeks I tweaked a lot of code to prepare Xcylin for a nearing alpha release. Though I'm still not completely happy with the optimizations as there are still some small lags from time to time - but I already have plans to counter them.

Recently I perfected the water spreading algorithm so that water now flows quite like it should. It is of course still an approximation of the real behaviour of water. Here you can see it in action:

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

While experimenting with the water algorithm I realized that it would also be possible to create some sort of acid that burns through rock. So I made a small test of that and it worked as expected (without any change to the engine itself - yeah!). Only problem is that I didn't add a level of saturation.

So my first test with a cube of acid just burned all the way down to the bottom of the level. My next thought was to build a pool with a floor that won't be corroded by the acid and it turned out nicely. Here you can see how that looked like after some time:



Of course also in this case the acid never would have stoped burning through the rocks Wink

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline xsvenson
« Reply #49 - Posted 2014-02-13 18:04:27 »

Nice video.
Though the "water" seems to be more of a jelly. While watching the video, I would have expected that the bottom layer flows faster than it currently does. The water stacks a block and then goes to the next one. Non-intuitive. Also the water in the container emptied itself vertically before horizontally.
Will You be keeping it like that ?


“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Online opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #50 - Posted 2014-02-13 18:26:17 »

Your jumping seems really "floaty". Are you going for a low gravity effect? If you are, it seems good. But if you aren't that would get old really fast, no offense!

Offline quew8

JGO Coder


Medals: 29



« Reply #51 - Posted 2014-02-13 18:55:09 »

I second the jelly water. Also the stacking. The container emptying thing is I think just an effect of these things though. Change them and I think it'll be a lot smoother. Still looks very nice though.
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #52 - Posted 2014-02-13 20:06:58 »

Your jumping seems really "floaty". Are you going for a low gravity effect? If you are, it seems good. But if you aren't that would get old really fast, no offense!

You are right, I'm not fully happy with the jumping either since I let the physics engine handle it (and yes g is at 9.81m/s^2). On the other hand I want to have physical forces that can be applied to the player. You see, the core problem is that a normal person is not able to jump two meters high - so it feels unrealistic even it is in fact correct.

Maybe I have to fake some faster motion by applying any additional force or completely controlling the velocity by myself (as I already do with x/z-movement). I then would have to add the applied forces myself.

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #53 - Posted 2014-02-13 20:33:24 »

Nice video.
Though the "water" seems to be more of a jelly. While watching the video, I would have expected that the bottom layer flows faster than it currently does. The water stacks a block and then goes to the next one. Non-intuitive. Also the water in the container emptied itself vertically before horizontally.
Will You be keeping it like that ?

The water moves not in real time but with the speed of the physics engine (60FPS at the moment) but this is by design to keep the used CPU cycles at a reasonable level. And you are right, that makes it look a bit like jelly. But you have to understand that the player can place water anywhere(!) in the (currently) 50x50x32x32x128 blocks world and then the simulation has to take care that it behaves in a way like water. It is also important to know that each change in water level makes a retesselation of the given sourroundings necessary, so this is not a simple process. But I agree that it is not 100% accurate - the question is, is it possible to make it more accurate without making it unreasonable complex and slow? If you compare it to Minecraft for example, then you see that water is also not simulated in any completely accurate way, just because it would most likely not be feasible.

And to explain why the water moves vertically first is simply because gravity is the bigger force here. I implemented it to first check if a block is below the water and if so the water should flow down, then if there is still water in the current block it would flow in the x/z-directions. You can check the javscript code below that I currently use - any suggestions are very welcome Smiley

The water javascript code: http://pastebin.java-gaming.org/5c2af2e3581
The onChange() function is called every time when a block is changed that is a neighbor of this block or the block at the position of this block has been changed.
You get four parameters:
  • world - the world to access all world relevant stuff (like terrain, player, npc ...)
  • blockInstance - the instance of this class that is adjacent to the change
  • blockInstanceBefore - the instance of a block before it was changed
  • blockInstanceNow - the instance of a block after it has been changed

Soon when we release the alpha version, you can play around with the block definitions for yourself to optimize these things if you like Smiley

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Offline RobinB

JGO Ninja


Medals: 44
Projects: 1
Exp: 3 years


Spacegame in progress


« Reply #54 - Posted 2014-02-13 22:57:24 »

Water should simultaneously flow to the bottom and right, now the vertical flows faster then horizontal, maybe you could speed one up or slow the other down.
To overcome the tessellation problem, you could create a flowing (opaque) effect, so you have less updates when water changes place.
Offline Gibbo3771
« Reply #55 - Posted 2014-02-14 04:09:57 »

Looks good but unfortunately the voxel design is getting beaten half to death Lol.

Fortunately for you must of them don't make it but this one actually seems more unique than shitecraft

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline quew8

JGO Coder


Medals: 29



« Reply #56 - Posted 2014-02-14 07:42:15 »

I hope you mean clones of mine craft by that - even that I would disagree with - it might be worth taking a look at Notch's status in the ratings board before you say anything rash about his baby.
Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #57 - Posted 2014-02-14 08:11:37 »

Looks good but unfortunately the voxel design is getting beaten half to death Lol.

Fortunately for you must of them don't make it but this one actually seems more unique than shitecraft

I'm sick of seeing this attitude.

Yes, I'm sick of the in-it-for-the-money, poorly done clones of any game too, but I don't need to go around saying everywhere how I don't like it.

I honestly don't care if some random person doesn't like poorly done clones. If posted in response to a poorly-done clone, it's not like the creator is going to go and fix it. If posted in response to a well-done one, it has no meaning. Just keep your opinion to yourself and don't post until you find something constructive to say. Otherwise you're justing wasting people's time.

(Okay, I am venting at quite a lot of people right now, due to the recent drama around King/RoyalGames, Flappy Bird etc. Your comment was relatively okay, but I have to say this anyway)

Offline Isvan
« Reply #58 - Posted 2014-02-14 08:57:53 »

So my first test with a cube of acid just burned all the way down to the bottom of the level. My next thought was to build a pool with a floor that won't be corroded by the acid and it turned out nicely. Here you can see how that looked like after some time:



Of course also in this case the acid never would have stoped burning through the rocks Wink

Why don't you have the amount of acid decrease every time it burns through something? That way it will be self contained, also more realistic. So If a player is mining they could run into a packet of acid (That was contained by a certain of rock) and they would either have to let to create a hole, or try to contain it.


<Off Topic> Shouldn't this be in the "Cube Worlds Projects" Sub Forum? </Off Topic>
Offline lastdigitofpi

JGO Coder


Medals: 14
Projects: 3
Exp: 8 years


Moebiusgames


« Reply #59 - Posted 2014-02-14 09:25:10 »

Looks good but unfortunately the voxel design is getting beaten half to death Lol.

Fortunately for you must of them don't make it but this one actually seems more unique than shitecraft

I know there are a lot of Minecraft clones that just try to quickly clone notch's success. Let me make one thing quite clear: I don't intend to do a blunt copy of MC, I see MC more as the first representative of a new game genre. A genre that didn't exist before simply because most of what MC does is cutting edge (even if it looks pixelated). That's by the way IMHO also the reason why most games are never finished/released. I don't know any game before MC that had the possibility to change the entire game's world, I mean there are games where you can change the level to a certain degree or even the whole level but not in this dimension!

With my game in particular the main difference to MC is that it is set in the future, has a storyline (though it's also open world) and an ending (which MC had not by the time I started Xcylin). But I also won't decline that it is of course inspired by MC a lot. But I see no point in recreating a game that already exists. So I think you will also see the main differences to MC when you get to play it this year Smiley

I hope you mean clones of mine craft by that - even that I would disagree with - it might be worth taking a look at Notch's status in the ratings board before you say anything rash about his baby.

I completely agree with you. But although I'm not entirely sure I think Gibbo3771 just refered with "shitecraft" to the poorly written rip offs of Minecraft and not Minecraft itself. Surely he knows that notch created a really remarkable game and if not he should look it up as it is all documented in this very forum!

Looks good but unfortunately the voxel design is getting beaten half to death Lol.

Fortunately for you must of them don't make it but this one actually seems more unique than shitecraft

I'm sick of seeing this attitude.

Yes, I'm sick of the in-it-for-the-money, poorly done clones of any game too, but I don't need to go around saying everywhere how I don't like it.

I honestly don't care if some random person doesn't like poorly done clones. If posted in response to a poorly-done clone, it's not like the creator is going to go and fix it. If posted in response to a well-done one, it has no meaning. Just keep your opinion to yourself and don't post until you find something constructive to say. Otherwise you're justing wasting people's time.

(Okay, I am venting at quite a lot of people right now, due to the recent drama around King/RoyalGames, Flappy Bird etc. Your comment was relatively okay, but I have to say this anyway)

Totally agree! And I'm as sick as you are about the recent Flappy Bird clone rush ...  Tongue

Follow the development on twitter:@moebiusdev or @xcylin
Xcylin on IndieDB: http://www.indiedb.com/games/xcylin
Pages: 1 [2] 3
  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.

Nickropheliac (15 views)
2014-08-31 19:59:12

TehJavaDev (23 views)
2014-08-28 15:26:30

CopyableCougar4 (33 views)
2014-08-22 16:31:30

atombrot (41 views)
2014-08-19 06:29:53

Tekkerue (40 views)
2014-08-16 03:45:27

Tekkerue (35 views)
2014-08-16 03:22:17

Tekkerue (25 views)
2014-08-16 03:20:21

Tekkerue (37 views)
2014-08-16 03:12:11

Rayexar (72 views)
2014-08-10 23:49:23

BurntPizza (49 views)
2014-08-09 18:09:32
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!