Make a Doom Game with this code #16
Replies: 1 comment
-
` <style> body {background-color: #000000; color: #ffffff; } </style> <title>Triangle Test</title> Start End-----------NECT------
var prevision = 22; function popStackTrace (ind){ function pushStackTrace(nameofun){ function PrintStackTrace(){ var globalfuname = "black"; function radtodeg(rad){ function degtorad(deg){ function JSONprintdot(adot){ class DotRegister {
let vidid = pushStackTrace("DotRegister.popdot");
if(ind >1 ){
let vidid = pushStackTrace("DotRegister.popnum");
let vidid = pushStackTrace("DotRegister.fetchdot"); } var dotreg = new DotRegister(); function dr (indexor){
} class RefDot{
if(this.links.length <4){this.links.push(arefdotref);}
if(ejoule < 0){var sec = new Dot(0,0,0,new D1Line(0)); secfla = 1;
// So if Energy is x,y,z t=3 checkarg(x1){
let vidid = pushStackTrace("setTyme");
let vidid = pushStackTrace("RefDot.setFrameOrigin"); shiftplace(q1 = 0,q2 = 0,q3 = 0,q4 = 0) { copyOfDot () { addDot (addenddot) { subtractDot (addenddot){
let vidid = pushStackTrace("RefDot.subtractdot");
let vidid = pushStackTrace("RefDot.singlefactormultiply");
let vidid = pushStackTrace("RefDot.matrixmultiply");
let vidid = pushStackTrace("RefDot.dotproduct");
let vidid = pushStackTrace("RefDot.returndelta");
isSpatiallyEquivalent(secdot = -1, gran = 3){ popStackTrace(vidid);
let vidid = pushStackTrace("RefDot.wasequivalent"); if(secfla == 1){dr(secdot).rubbish();}
print(){
rotateAroundTheXAxis (ang){ */ rotateAroundTheYAxis (ang) { rotateAroundTheZAxis (ang){ } Rotate(xa=0,ya=0,za=0){ isPointOnPlane (poin){ } class D1Line { this.distance = leng;
if(arg1 instanceof D1Line){ if( (this.start <= arg1.start) && (this.end >= arg1.start)){ if((unionstart == -1) || (unionend == -1)){printoutt("-------------EROR in D1LINE===========");} }
if(this.start < 0) { } whetherpointintersects (pnt){ whetherD1Lineequiv (D1here){ shiftstartpoint (sp){ shiftendpoint (ep){ shiftanyendpoint (st){ resizeeastfromstart (newlen){ //add - //minus - singlefactormultiply (mfact){ extendbysignedEW = function (signewlen){ addD1Line (ODL){ minusD1Line (ODL){ copyD1Line (){ function checkdotarg (x1) {
class LineRegister { constructor (){ printdump(ind = 0){ matchline(artic){ pushline(onru){
} } popline(ind){ fetchline(ind){ } } var linreg = new LineRegister(); class RefLine {
let vidid = pushStackTrace("RefLine.constructor");
this.points = [this.start, this.end]; checkarg(argx){
let dx = dr(this.end).x - dr(this.start).x; let m1 = new RefDot(dx,dy,dz,dt);
} } isXInLineRange(ecs){
} isDotOnLine(QDot){ var an1 = this.Euclid2ndPostulateByParameter(para); } translateByAddition(addenddot){ rotateAroundAxes(xa = 0, ya=0, za=0){ } } } setEnd(newend){
} crawlDistanceFromStart(newdist){ changeDistanceChangeEnd(newdist){ copyOfLine_MemorySensitive(){ Euclid2ndPostulateByY(wai){
dr(retv).addDot(this.p[0]); InfInt3(lin){ //var Pay0,Pax0, Pay1, Pax1, Pby0, Pbx0, Pby1, Pbx1; var Pby0 = dr(B.p[0]).y; var Pay0 = dr(B.p[0]).y; var Pby0 = dr(B.p[0]).z; var Pay0 = dr(B.p[0]).z; var Pby0 = dr(B.p[0]).z; var Pay0 = dr(B.p[0]).z; }else { //By My erroneousReasoning, At this level of comparison , adding the A.start to B.start should yeild the intersection, and if the intersection lies within the segment bounds...
let Numc = Pay0 - Pby0 ; } dydxM(){ printouttheparametricformat(){ } InfinityResolveByX(ecs = 0){
let r1 = new RefDot(ecs, ny, nz, nt); //printoutt(
return r1.regind; } isColinear(quedot){ return dr(quedot).isSpatiallyEquivalent(AnsDot); FiniteResolveByX(ecs){
let retv = this.Euclid2ndPostulateByX(ecs);
let retv = this.Euclid2ndPostulateByY(wai); CreatePlaneWithThirdDot(poin3){ InfinityIntersection(aline){
// printoneline("not xz paralel");
// printoneline("not yz paralel");
// printoneline("not ZY paralel");
// printoutt("not XY paralel");
this.printouttheparametricformat();
} if(flatflag1){ return an2; return -1; } CreateNormalPlaneUsingPoint(ecs){ if(poin != -1){ findPointOnCartesianPlaneFromXY( plan, ecs = 0, wai = 0){ } findEquilateralHeight(EdgeLength = 100, baselength = 50){ CrossProduct3D(aline){ let Ion, jon, kon; ion = dr(lr(aline).delta).z * dr(this.delta).y - dr(lr(aline).delta).y * dr(this.delta).z; var rd = new RefDot(ion, jon, kon); } } function PositiveLine(leng){ function checklinearg(argx){
constructor (){ printdump(ind = 0){
if(va2 == -1){ }else{ poptriangle(ind){ fetchtriangle(ind){ } matchtriangle(arc){
} } var granularity = 2;//XXX make INLINE
} } reconstructtriangle(dots){ popStackTrace(vid); } if(dr(this.center) instanceof RefDot){ } if(deg > 0){ if(deg > 1){
lawofcosines ( ) {
} findArea () {
*/
createNormalVector(orderoflines = 1){
let v1, v2; let x2s3 = new RefDot((( dr(v1.delta).y * dr(v2.delta).z) - (dr(v1.delta).z * dr(v2.delta).y)), createCartesianPlaneEquation(){ CreatePointOnInfCartesianPlaneFromXY(ecs = 0, wai = 0){ CreatePointOnInfCartesianPlaneFromYZ(wai = 0, zee = 0){ CreatePointOnInfCartesianPlaneFromXZ(ecs = 0, zee = 0){ findExcludedDot (IncludedLineIndex){ makePlanarGraphOfTriangle () { let vidid = pushStackTrace("RefTriangle.make3DPlaneOfTriangle"); var asfd = new RefDot(0,0,0); let flag23 = 1; let flag13 = 1;
let ln1 = new RefLine(point1, point2);
if(lr(this.plane[x3]) instanceof RefLine){ findEquilateralHeight(EdgeLength = 100, baselength = 50){ changeColour(kak){ draw(TCF = globalviewerframe){ } function checktrianglearg (ard){ // 𐤕ְּ𐤄𐤅ֹ𐤌 constructor (BaseLine ) { //printoutt("HERE IT IS 8210"); //printoutt("HERE IT IS 8310"); dr(this.points[0]).timeaccruer++; tr(this.faces[0]).rubbish(0); } print(){ } draw(DFS = globalviewerframe){ } createEquilateralTriangleWithXY(BaseLine, ecs = 0, wai = 0){
let sparepoint = dr(lr(BaseLine).center).copyOfDot(); let PerpenPoint = lr(BaseLine).findPointOnCartesianPlaneFromXY(NormPlan,ecs, wai);
let spareline1 = new RefLine(lr(BaseLine).center, PerpenPoint); } findFourthDotFromFace(FaceR){ let CC = dr(tr(FaceR).center).copyOfDot(); let bl = new RefLine(tr(FaceR).center, tr(FaceR).points[1]); ml.changeDistanceChangeEnd(mll); return ml.end; } createFourFacesFromFourPoints(){ //Uses the Single-Thread method, two wrap around the outside. Assumes a granularity creep of one. createSixEdgesFromFourFaces(){
} createFaceStruts(){ rubbishFaceStruts(){ } createEdgeStruts(){ rubbishEdgeStruts(){ setCenter(){
c1 = lr(this.facestruts[0]).InfInt3(this.facestruts[1]); } createLandSkyEdges(){ // set 4th point as highest point this.skyedges[0] = new RefLine(sp1[0], sp1[3]); } findAverageCenter(){
this.averagecenter.singlefactormultiply(1/counter); } class RefTimeViewerFrame {
clearTimeout(this.presdela); //set up delay for next tick;
createnewcanvas(xmax = 300,ymax = 300){ insertnewcanvas(pa = document.body, newcan = 0){ if(newcan){pa.appendChild(newcan);} } whitebackground(){
findoppositerightanglewithadjacentandoppositesangle (adj, opang){ drawatom (px, py, amu, kala = "#00FF00"){ nx = Number.parseFloat(nx).toFixed(1); } drawaline (addedrefline) {
depthdraw (Rhine){ //7 and with opposite = x or y, then angle a is above newlin.colour = Rhine.colour; if( RivStr.atomic != -1){ drawRegLine(RLineIndx){ } }// var a1 = new RefTimeViewerFrame(); d1.colour = "#c0ec0e"; printoutt("center of tetrahedron is " + JSON.stringify(dr(T1.center))); a1.depthdraw(lr(T1.lines[0])); function tickertape () { |
Beta Was this translation helpful? Give feedback.
-
Please. Even if it's a collaborative/community Project. Someone make this dream come true.
Beta Was this translation helpful? Give feedback.
All reactions