Fax / QuickMapUtils

A very simple repo with experiments with mapping.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Map Gen

This is a quick util to generate a map from a perlin noise.

Not impressive, but it works.

.net code + SharpNoise. The warning about the version of SharpNoise can be ignored.

Run it

  • VStudio : open the solution, restore nuget packages, F5.
  • CLI :
cd QuickMap
dotnet restore
dotnet run [int seed]
  • Web: Launch WebMap project in debug.

Keyboard (console only)

{q} exit

{+} Zoom out

{-} Zoom in

any other key will regenerate the map with a random seed

Web version

Only 2 webmethods are supported right now:

  • GET / -> returns a map with a random seed
  • GET /{seed} -> returns the map generated with the specified seed

Example result

0.................................01222221100.........0.........000..000.............................12345555444443210..............00001244456777777677665544445543220.................................
2211100......................................................0000110111000...........................0134455554445553100..............011235688888888777765654320...............................        
1100......................................................000111123332100............................0233344555555433332100...010000011234557888888766654433333321110..........................         
0....................................................0011233444433233322110.........................012234556666555454443210112333322233334567888888886654443211100010111100........................    
...................................................012233444444433332210................................02333323332212220....00112333221235676676677777776543333322111110.0000..........................
..........011100.....................................023455654443222100.........00..........................0000..............01122222233445666566666666543221000000000.................................
......001222233210.......00..........................0124566664321111110....111222122111100..00.................................00000000122344444566554432110...00.00...................................
....122333344544321110..01111100000.................0.01124566542111110...1111011112222221101110....................................001100122334444333210.....0111000...................................
.....01233444555543333334543200.....................000011345544433333311111112333455554433322110...............................00000122211111123344322000......0000100............................00000
..00111233355654433344555665420...................011110..01111112234432100000011335678887654321000............................0011111122210001333223333433222220...00....................0.000001111000
001112344445655544433355443222221.....................0000..........011112111111013356788876553111000...............................00000112222323454444566666553211000..................010001111112210
00112322233434332221112111101233222210.............................................02345666654422223210...................................000123444446677788777776433321000..............011000110000...
23343233333344321110....011221111222210............................................112345544322210110.........................................12334455567888888888766654320.............000.............
3444545555544432100........0000000011110............................................0022232110................................................011122233345555444567776544331100........00000............
55456765565444432220..............................................................00111111010..................................................110000010011122344454444444433222210.01122211000.........
33334455433223221100.................000......................................000000............................................................00..000000012122335444344444322222211234444432110.......
22222222334322233211.....................................00.001111111001221221222220..............010.............................................0011000..00112333333222233333344445666666665543211100.
333443343334455321100.........................................001112211222222221111110...........0000...................................0100122100000...............00000..0013457888877766555544321100.
344544333332222110.........................0111.................00.00124455665544210....................................................1222100001110......................023677888888654210........   
322222233322100...................000001112222100....................012346666654310................0000101233331.......................012123321100......................024567777888888874210.........
0...0000..........................01011112223443211110.............00221234555554320.................000122344543210................00..0012222110.....................0135678888888888865433200000.....
...................................0000111234555444321.................0122233333210...............01112234455544322100..........011223222334310....................01334577788887655333232222222       
..000.............................1122222223334333210....................01122210...0011100...01223445333455666544322211111221123334554454433310.....................1345567788888777777654333356       
11232110................0........1234444344444332210........................0110.....01133333455666444333233322222223222233333456677775544334543211.................0122234468888888886766667           
110111110........000122222222212233444332344333321.......................000000......0123456655565555443222110000011112233445444556665544443334432100011110000.....00001235677888888888888888888888778  
1111221........000123444544454344566655554554454430...............................00001234666666665543332112211112222344555555555555554443333321112332333321110.........12333454445655667767888888888888
2222111000......01233556665445555555556788766643321...............................0100134555555555545543333344332112233456655555544322100001122234667777765432110........00...01122355545556677778775556
0011110.....00.0012223333332234445554445556555321100110..........................00123455556544433222222232112211122222223432233222210.....012456888888765544321100......00.....001233445555555655543334
.......................0000022334443210001111000..011100....................0112233345676654320....01110000..........0000001000010000000011223578888876654444432110....0......0012100001233211111000001 
10...........................1111112210..........0.01221101100...............0011123334444321...........00............................123345567888777653221122333320...........00000.00000..............
0000.......00.....................01110........011122333221100....0......00....0011222333321........0.010......................0......123444556677766554311222244433320................................0
...................................010011211111233334433221110000010..0.010110001222212210...........0................00011233221000.002344444555567766544444455555542100...............................
................................0...0...000.....012222110012233322221111100..........................................11112121222200011234566555556778776666566776654212210..............................
.....................................................0011244455555444221000...........................................0011000000.....002356666666677888888777788888654433210............................
.......................................................0123455455555444332110.....0.00.0...................................00111111212234444566788888888888888888887655422110...........................
......................................................0234444345667787776544332211111111111...........................00000012344333333344555567788888888888866542210..............................     
...1111110.......00...................................01244555544455555666555444433233332100.......................000..00112234455556544455556667777778887642100................................       
...01222221000111111100.........................0.....0000012334444322212343444443344432210......................0000.....011344556777777887775555567788888654210.................................      
...122343321123445544321......................00100........0123322212210112223332111000000000................00012211111111123456777765565566766444456788888888864321100.....................0..........
..122334333345566677875543221..................................0012223221000..0..00100000.................0123334543321000012344333322233344433333333445677888876654320......................00111122221
0123344444344456678888766666543210...0..0..........................012222100..........0100000..0..000.0112333334556653110.........0...011100.00011122355666767776765431......................01223344321
1122344444455556788888877655333322100...............................000..............001110000.....0123323445677754210........................013456655445554332210.....................112356665420    
..0..0124567777888888865543211....................................................0001221100012244445566678764432111111000..............0123345544444332210.....................001112245666554         
........012345688866555432100......................................................01111111111233434455567533332222211110...........00.01234455654434332210...................0.0013455667666           
...........0125788888888888887653110........................................................00101221111222212334554432334444332110.....0....012112334433345444334333210..................1234556678887  
..............02456678886541............................................................01211101112223234455433334444432100......00...00010123333234323565532210........011111100..0112356666666        
...............012345668888754210..........................................................00111113344442222222111122233210000...............000110111122455665432110000000.00.000........011232333     
0.................02345677788888754210........................................................0012224444555432111223332233343220...................000..00001233344555543211100..............0122110..01
...............01122324555555554311000.......................................................0..01123455554332233455544455566543100................0.......00122233444221000...............0122222210...
..............001234544444322110..........................................................00001100.01222221124555666666777776543210................000100000000123222110.................00123332222110.
0.............01123444322221000000....00...........................000....................0000..00...0...00012334566544456777543211110..00.........02221112222222221100.0.................01211122222210
.............023345555543210111110.......................01222121122221..........................010010....012454443334445666665433322000000.......012222334443322110........................000.00100..
0.00.....12223344555677665554433320....................00123334433223221100....00...0122210.......0111100...0244555554556777776531000010100100...001233333221110........................................
4333222233444334444567776555432210......................012223333333221111100.....001122223311000000..000.0023456666555545544443221...............0122332221............................................
776666565544321122345666554332110........................01123455433211110000001222211111222321122222111001222345555544555444543100................0111100..............................................
3333322211111001234556665543210.0.......................01233444332110012222122334431.001233343444444444321101123444334454555553210.....................................................................
0...00.0......01123456654333210000......................001234332110..0001111122343211100012223445565544432110111111222333444554333222110...............................................................
110.00..........0122333333322121000.........................01100............01221110.....0112344444444433211110.....01122234555554333211...........................................................00..
00................1233322222111000.......................00010...............................012222344433210............0112445565432000..............................................000000000011011122
10...............01222222222101111210.0222222210..........0011....................................011122211000..........123555433321100..............................................0123333311111233333

About

A very simple repo with experiments with mapping.


Languages

Language:C# 100.0%