summerpewp Posted November 17, 2009 Share Posted November 17, 2009 Trying to create a generator for a game I'm making. It requires a random map to be generated but I can't seem to find any open source code to work with. Since I am sort of new to programming this is a little over my head. Curious if there is an open source php file I can edit / learn from...? Any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/181825-map-generator/ Share on other sites More sharing options...
mikesta707 Posted November 17, 2009 Share Posted November 17, 2009 depends on what you do with the random map. Do you just want to show an image? Link to comment https://forums.phpfreaks.com/topic/181825-map-generator/#findComment-958901 Share on other sites More sharing options...
sp@rky13 Posted November 17, 2009 Share Posted November 17, 2009 is it more of dots for a thing on the map? Link to comment https://forums.phpfreaks.com/topic/181825-map-generator/#findComment-959047 Share on other sites More sharing options...
oni-kun Posted November 17, 2009 Share Posted November 17, 2009 You can use the GD library to generate a random map.. But It's going to be extremely hard to have it do anything on the map.. Your best bet is to use JS if that's what you're looking for, the generation/interaction is its advantage and strength. Link to comment https://forums.phpfreaks.com/topic/181825-map-generator/#findComment-959053 Share on other sites More sharing options...
summerpewp Posted November 17, 2009 Author Share Posted November 17, 2009 well , I'm making a small game for a school project. Where there will be random people in these zones to interact with etc. So It will need to be navigated on . That part I understand and can manage. The hard part is the random zones. Link to comment https://forums.phpfreaks.com/topic/181825-map-generator/#findComment-959292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.