# KristofferDorph

Member

14

102 Neutral

• Rank
Member

• Website
1. ## Seemingly random number based on coordinates

[quote name='alvaro' timestamp='1311126623' post='4837743'] Can you post exactly what you did? I see how Perlin noise and your situation both can benefit from a hash function, but I don't know how you would apply Perlin noise directly to your situation. [/quote] I used a 2d Simplex Perlin noise, that is a modified version of the original: What I use is a javascript port of: [color="#999988"][url="http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf"]http://staffwww.itn....implexnoise.pdf[/url][/color] Wich works somewhat faster than the classic method, and for now, in a grid of (150,150) I can't really see any change in performance in comparison to just making a normal random number between -1 and 1 :-) /Kristoffer
2. ## Seemingly random number based on coordinates

Thanks a bunch for all the replies ! Got it working with the Perlin Noise, super smart method :-)
3. ## Seemingly random number based on coordinates

Hi gamedevs! I'm making a little game, where I need an almost infinite world. The game is 2d, and to make it less memory consuming I want the entire map to be generated based on a seed. The same way minecraft is randomly generated based on a seed. So in short, what I need is a number based on each x and y coordinate that seems random, but is the same everytime the map is loaded. For instance, x = 3, y = 5 gives 42 and (63,15) gives 23 Right now i use this equation: Math.round(((y) * (x+1) + (y/20) + (x/32)) % 20) (javascript) But it repeats every 32 block or something like that. Anybody who can come up with a fix ? :-) Regards Kristoffer
4. ## Hexagons or just regular isometric map?

Hi guys! I'm currently working on a travian, ogame, browser based game. The genre is sci-fi, and every user has one or more cities on the world map. My problem is this: I would like to use hexagons, for the map tiles, for two reasons: 1. Not used very often 2. Maybe suits the sci-fi genre better than rhombus's My problem with using hexagons comparet to rhombus's, is that I don't have an easy way to show the users where on the map they are located with coordinates. (could be fixed with throwing the coordinates away from the UI, and display a minimap in the corner of the real map) I also want all the players to be able to see the position of theirs and other players cities by looking at the player's profile. But I don't really know how to do this without the use of coordinates? Maybe a very small map illustrating the rough position, or direction from the center of the map? What do you think? or do you have any ideas to my huuugee problem? :-) /Dorphern
5. ## The basic idea

Yeeeaaahhh! Yet another browser game! :-) Whuh! Yup, but actually I haven't seen any one with this theme and style yet (also the reason why I'm making it). I am tired of all those fancy browser RTS's out there, where the graphics is the main part of the game, and it takes away all the focus of the game play, and so does the "lets milk the players for money" things. I know! Payment, we need it, and so do I. Sorry to say it, but we can't just take away that part, but we can make it less important to buy, so that you can still get a great experience without using money. On the other hand, you will have an advantage if you do. So! the gamee, the gammeee! yeah, I know. Get to the point they say :-) It is an sci-fi RTS, in some universe, maybe on the earth, I don't know for sure yet. If you know Travian, og OGame you know wich type of game I'm making. There will be some resources: Crystals, Metal aaaaaaannd, yup, that's it. NO WAIT! There's power or energy, wich name you'd prefer, to run your civilisation, you need it to build, and to run your shit! :-) And a final resource (well I think it is) ... citizens! To work for you, and go to war for you ;-) That's it for now! :-) I will post some more details in the future, and some screens as well ;-) - Dorph
6. ## Online MMORTS guidlines and help

[quote name='Bigdeadbug' timestamp='1299956235' post='4784917'] I'm not sure if [size="2"]anyone’s [/size]mentioned it and it may not be any help but i noticed on the Paradox interactive site that "[url="http://www.youtube.com/watch?v=ZRgEVEnmZ4w"]Dreamlords: Resurrection[/url]" has launched. It's meant to be a Free to Play MMORTS, have not tried it yet so can't say if it's any good. The trailer does look a bit iffy but i guess i shouldn't judge a book by its cover:P. Anyway hope it helps, even if it just shows you how not to do it. [/quote] Thanks for linking :-) Yeah, your right about it looking a bit iffy, but I definitely think the concept is great :-)
7. ## Online MMORTS guidlines and help

[quote name='Edtharan' timestamp='1299856277' post='4784394'] Part of the problem of RTS games being converted into MMO is that RTS games generally have a strong Positive Feedback loop in them. In RTS games, this is important because it brings a swift conclusion to the game when one player gets the upper hand. However, in an MMO, there is no "swift conclusion" as the world is persistent and just because one player does well, it should cause the end of the game. What is needed is a Negative Feedback loop that makes good players have to work harder and harder the more of a lead they want. This kind of change would completely change the dynamic of the game and the risk here is that it changes it beyond what RTS gamers want from their game. The Positive Feedback Loop in RTS games is the: "Build Units -> Take over Resource Points using units -> Use resources to make more units" loop. This means that the better someone does, the easier it is for them to keep getting better. One idea here is to have a limit the number of units the player can have. This can be a hard limit, or a soft limit. Hard limits have an (arbitrary) number of population points and each unit costs population points to field. Soft limits have an ongoing cost (upkeep) associated with each unit and the upkeep vs income values determine the unit limit. The soft limit has a problem, that the player can still gain resources to increase their income and thus get around the soft limit restriction. The only way the soft limit works is to also limit the players ability to gain income. So although I am more for a soft limit solution, it is harder to implement and you can usually get a similar end effect with a hard limit (so the hard limit is usually more practical, but I find the soft limit more aesthetically pleasing). [/quote] So say, if I choose to put food into the game, it will make a soft limit, in the way that you have to use time (building farms) to generate more food for your warriors? And then having the price for farms go up as you level them up, it would cost more and more to keep a bigger army. But, because it's an online rts it also takes more and more of the players time the bigger his army and empire grow, so that is a kind og soft limit as well you could say?
8. ## Online MMORTS guidlines and help

[quote name='Zethariel' timestamp='1299704925' post='4783720'] This is your game. It is the furute. People could generate power from thin air as far as I'm concerned. Let the crystals emit a magnetic field, and lets say that two crystals that constantly orbit around each other generate power. Or that these crystals inherently have a charge, and melt away as they are used. Use your imagination and don't let stereotypes strangle you [/quote] Thanks! :-) haven't really thought of it that way, even though it's just straight forward and obvious
9. ## Online MMORTS guidlines and help

Hi Guys, I need a second answer on a thing I ran into. :-) I'm thinking about resources for the game, don't know why I'm starting there, but I am. It's a sci-fi "theme" so I've come up with these 2 resources: Metal and Food. The buildings will use power, so I was thinking a third resource could be Crystal wich could be one way to gain power, besides solarpower. The problem is, that in real life it's impossible to create power from crystals, so I thought of Deuterium wich is used to generate power in fussion powerplants. But is it okay to use Crystals or what is your opinion?
10. ## Online MMORTS guidlines and help

[quote name='Zethariel' timestamp='1299697031' post='4783667'] Always happy to help In return, sign me up for any beta! [/quote] Hehe, i sure will! :-)