gimymblert
|
|
« Reply #1233 on: February 25, 2018, 06:49:07 PM » |
|
I'm trying to make a html version of the swf above, but the local HTML don't seem t pick up the .js file, I don't know how to fix that ... Anyidea what I do wrong? <html> <head> <script type='text/javascript' src="gameIdea.js"></script> </head> <body> <div id="test"><p>hello</p></div> <p>hello</p> </body> </html> //GAME DESIGN //type of game //It's a NumPlayer player GameView GameGenre game var NumPlayer = ["single","asynchrone","multi","p2p","two","4","8", "16","24","32","64","massively multi"]; var GameView = ["text","side scroller","top down","first person", "third person","over the shoulder","split screen", "isometric","axonometric","alternate reality", "augmented reality","Virtual reality"]; var GameGenre = ["immersive sim","story","roguelike","beat'm up", "sport","open world","combat","building","art", "hop and bop","rpg","shooter","4X","puzzle", "tactic","racing","arena shooter","simulation", "management","artillery","dollhouse","adventure", "social","Wrpg","Jrpg","Crpg"];
//world design //set in WorldSize WorldTone WorldGenre world var WorldSize = ["tiny","average","big","huge"]; var WorldTone = ["dark","atmospheric","funny","dangerous"]; var WorldGenre = ["dream","prehistoric","futuristic","superheroes", "noir","steampunk","cyberpunk","fantasy", "sword and sorcery","science fiction","urban", "space opera","underground","hardboiled", "underwater","post apocalyptic","metroidvania"];
//gameplay concept //where the player is a PlayerRole var PlayerRole = ["wizard","tomboy","sorcerer","sorceress","cosmonaut", "guy","soldier","bro dude","faery","man","man", "mascot animal","regular person","game designer", "effeminate hero"]; //who want to PlayerAction PlayerTarget for PlayerMotivation var PlayerAction = ["wait","attack","assemble","liberate","recover", "observe","gather","collect","goto","create","destroy", "trade","use","take","defend","kill","talk", "intercept","guard","transport","escort"]; var PlayerTarget = ["monster","npc","message","secret of dangerous place", "data","magic equipment","scientific technology"]; var PlayerMotivation = ["spirit","conquest","serenity","wealth","protection", "potential","reputation","ability","knowledge", "equipment","comfort"]; //without PlayerFailure by PlayerModus var PlayerFailure = ["dying","getting lost"]; var PlayerModus = ["mentoring new life form","building a team", "looking for hint","navigating the world", "killing everything"];
//STORY SETTING var StoryAttraction = ["fear","desire","apathy?"];//"fear","desire","apathy?" var StoryCost = ["obtain","lose"]; var StoryValence = ["negatif","positif","neutral"]; var StoryNeed = ["safety","relation","aspiration"];//achievement = aspiration var StorySpace = ["activity","space","attitude","behavior"];//(>>internal/external + process/state) var StoryTargets = ["itself","someone","everybody","other"]; var StoryAction = ["spend","ignore","hold","destroy"];
//resolution //StoryAttraction to StoryCost - StoryValence StoryNeed of StorySpace for StoryTargets var resolution = RandomWord(StoryAttraction) + " to " + RandomWord(StoryCost) + " " + RandomWord(StoryValence) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) + " for " + RandomWord(StoryTargets); //attitude //StoryTargets StoryAction - StoryValence StoryNeed of StorySpace for StoryTargets var attitude = RandomWord(StoryTargets) + " " + RandomWord(StoryAction) + " " + RandomWord(StoryValence) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) + " for " + RandomWord(StoryTargets); //action //StoryAction StoryNeed of StoryTargets var action = RandomWord(StoryAction) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StoryTargets); //event //StoryTargets StoryAction StoryNeed of StoryTargets var event = RandomWord(StoryTargets) + " " + RandomWord(StoryAction) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StoryTargets); //balance //StoryValence StoryNeed of StorySpace for StoryTargets (theme) //is greater than //(theme) var theme1 = RandomWord(StoryValence) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) + " for " + RandomWord(StoryTargets); var theme2 = RandomWord(StoryValence) + " " + RandomWord(StoryNeed) + " of " + RandomWord(StorySpace) + " for " + RandomWord(StoryTargets);
var balance = theme1 + " is greater than " + theme2; //-------------------- //process //constructive/destructive change (state) is/has/will [not] happen-ing to something/resource //state //absence/presence/deficit/excess/uncommon_state of something/resource provoke abnormality/problem
//the process/state cause [not] need to person/group
function RandomWord(var word){ return math.random() * word.length; };
//var elem = document.getElementById("test"); var elem = document.getElementsByTagName("p");
document.write("hello world"); alert("alert"); elem.innerHTML = "goraphi";//balance;
|