Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I'm trying to learn JavaScript

Name: Anonymous 2018-10-25 12:02

That is what I wrote so far:
https://jsfiddle.net/Nikita_Sadkov/4h72j5s6/

Name: Anonymous 2018-10-25 12:08

make your're are game

Name: Anonymous 2018-10-25 15:13

var initial = "\
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9|\
0 * |\
1 * * |\
2 * |\
3 * * |\
4 * * * |\

Name: Anonymous 2018-10-25 15:16

Fancy

Name: Anonymous 2018-10-25 15:26

They might be hating you, but you’re the only one who poasts codans on this board. Keep it up, Mentifex!

Name: Anonymous 2018-10-25 15:31

Link requires js. Don't click.

Name: Anonymous 2018-10-25 15:51

>>6
How do you manage to poast with one hand while you’re jerking off rms’s buffalo dick with the other?

Name: Anonymous 2018-10-25 19:04

var initial = "\
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9|\
0 |\
1 |\
2 |\
3 * * |\
4 * * |\
5 |\
6 |\
7 |\
8 * |\
9 * * |\
0 * |\
1 |\
2 |\
3 |\
4 |\
5 |\
6 |\
7 |\
8 |\
9 ";

Name: Anonymous 2018-10-25 20:13

escaping newlines with \ is non-standard

Name: Anonymous 2018-10-26 6:18

>>5
mentifex and bydlita are not the same person

Name: Anonymous 2018-10-26 10:31

>>10
You are extremely wrong.

Name: Anonymous 2018-10-26 10:32

>>11
deep lore

Name: Anonymous 2018-10-26 10:44

>>11
make your're are strong AI

Name: Anonymous 2018-10-26 12:57

>>10
Nikita doesn't shill his ancient markov chain toy. He probably wouldn't have used markov chain, since markov was a ruskie.
Mentifex didn't murder any hamsters.

Name: Anonymous 2018-10-26 13:32

>>14
Nikita: didn't make his's is game
Mentifex: didn't make his's is AI mind (but he claims to)
Cudder: didn't make her's is browser
FrozenAnus: didn't make his's is MMO

Name: Anonymous 2018-10-26 13:50

>>15
FrozenAnus: didn't make his's is MMO
He made it. But it is compressed to a single bit, using his infinite compression scheme.

Name: Darth Vader 2018-10-26 19:33

oOnversation marked as unreal.

Name: Anonymous 2018-10-27 17:58

Here is an updated version:
https://jsfiddle.net/Nikita_Sadkov/ef5ud031/

now you can give rewrite patterns, and the code can optionally mirror (m) and rotate (r) them for symmetry.

Name: Anonymous 2018-10-27 20:30

Nice codans, Nikita!

Name: Anonymous 2018-10-27 21:51

Name: Anonymous 2018-10-28 8:13

>>20
This is very nice. Feels like old school demos.
Are you planning to make video games in html5?

Name: Anonymous 2018-10-28 8:56

I’m disappointed because an old GRU agent writes better code than me.

Name: Anonymous 2018-10-28 15:27

Particles flying around attractor:
https://jsfiddle.net/Nikita_Sadkov/yuc846ta/

Name: Anonymous 2018-10-29 7:12

will you now make your're are game in javashit? also, IIRC you were a lisper. check out parenscript for compiling common lisp to js, and clojurescript for doing the same with clojure

Name: Anonymous 2018-10-29 13:57

>>23
I have one a bit like that on my phone

webgl with some generated data demo https://codepen.io/anon/pen/xyYLqe

Name: Anonymous 2018-10-29 13:58

>>23
Cool.
Can you poast your code with some annotations? I'd like to understand it but I'm a fucking idiot.

Name: Anonymous 2018-10-29 14:35

>>26
It uses basic high school physics:
1. Each partice has velocity vector, which is set to random at the start of script
2. Then velocity is changed by gravity force, pointing towards attractor point.
3. The particle also produces some heat, which gets dissipated in four directions, leaving fat trails.

Basically, you should read https://www.mathsisfun.com/calculus/integration-introduction.html

Name: Anonymous 2018-10-29 16:30

>>27
iunno man, seems long

Name: Anonymous 2018-10-29 16:32

>>18
you can format the strings like this
var initial0 = `
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 |
0 |
1 |
2 |
3 |
4 * * |
5 * * |
6 * * |
7 |
8 * |
9 * * |
0 |
1 |
2 |
3 |
4 * * * |
5 * * |
6 * * * * |
7 * * |
8 |
9 `;


and change .split("|"); to .split("|\n");

Name: Anonymous 2018-10-29 16:49

>>29
I tried, it led to some parser errors.

Name: Anonymous 2018-11-22 5:38

New fire algorithm
https://jsfiddle.net/Nikita_Sadkov/mgLp4eut/

This time stolen from the following Lua demo.

I have yet to see more broken language than Lua and JS, they are both horrible in almost every aspect.

w=120
h=100


buf={}
palete={15,15,
14,14,
9,9,
6,6,
3,
7,
1,
0}


function TIC()

--Init matrix
if t==0 then
for x=0,w do
buf[x]={}
for y=0,h do
buf[x][y]=0
end
end
end

--Reduce load on CPU
if(t%8/2==1) then
--Clear screen
cls(0)
--Text
print("Fire Walk with me",70,80)

--Move Fire And Smooth
for x=1,w-1 do
for y=1,h do
c=buf[x][y]
if c then
b=buf[x][y-1] or 0
t=buf[x][y+1] or 0
l=buf[x-1][y] or 10
r=buf[x+1][y] or 10
c=math.floor((b+t+l+r)/3.2)
end
buf[x][y-2]=c
end
end

--Add more fire at bottom
for x=0,w do
buf[x][h]=math.random(1,4)
buf[x][h-1]= buf[x][h]
end


--Draw Fire
for x=0,w do
for y=0,h do
c=palete[buf[x][y]]
if c then pix(60+x,138+y-h,c)end
end
end
end

t=t+1
end

Name: Anonymous 2018-11-22 5:41

>>31
Note how both Lua and JS versions access array elements beyond their bounds, without producing any error. They call that a feature.

Name: Anonymous 2018-11-22 8:00

those dubs are a feature

Name: Anonymous 2018-11-22 8:02

>>32
It is a feature, it means you can have infinite arrays
let a = []
a[0] = "hax"
a[Infinity] = "anus"
for (let i = 0; i <= Infinity; i += Infinity) {
console.log(a[i])
}

Name: Anonymous 2018-11-22 8:04

>>34
it means you can have infinite arrays
No It means bugs slip through unnoticed, crashing production system.

Name: Anonymous 2018-11-22 16:09

>>34
when are you going to need that?

Name: Anonymous 2018-11-22 17:49

>>36
when doing infinite compression, of course

Name: Anonymous 2018-11-30 6:38

Wrote a video game plot generator:
https://jsfiddle.net/Nikita_Sadkov/9g6aqch4/

Name: Anonymous 2018-11-30 8:05

>>38
I like how it always starts with "your're are". also, algorithmically generate your're are game

Name: Anonymous 2020-06-04 11:50

bampu pantsu

'member when actual programmers were posting here?

edit: just testing some hidden cool features Edited on 04/06/2020 11:52.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List