|
Post by Admin on Jul 10, 2019 18:49:04 GMT
The remainder of division (modulo operator)
|
|
|
Post by Ollie on Sept 11, 2019 22:29:12 GMT
How do I put restrictions (done with curly brackets in desmos) on functions in touch Lua
|
|
|
Post by Ollie on Sept 11, 2019 22:33:06 GMT
Never mind I was looking for derivatives
|
|
|
Post by Ollie on Sept 12, 2019 13:30:49 GMT
Alright I figured out what I'm going to make. A game called freakout. Catch the sparks that appear when you catch them. Sometimes no sparks appear, sonetimes three appear. Loose points if you loose sparks, gain points if you catch them.. loose all the sparks the games over.
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 22, 2019 22:56:02 GMT
I don't know how to program or do math, but I'm a good listener takes me about a day to figure stuff out.
|
|
|
Post by Ollie Ha on Sept 25, 2019 15:12:43 GMT
vf = 'p2c4'
What does this mean?
|
|
|
Post by sum14 on Sept 25, 2019 17:22:37 GMT
What can socket be used for?
|
|
|
Post by Admin on Sept 26, 2019 12:57:03 GMT
vf = 'p2c4' What does this mean? vf stands for vertex format. when your draw, you are required provide an array of vertices to draw (alongside with basic primitive shape type). p2c4 says each vertex I provide for drawing is composed of two position components (axis) x and y, and four color components (red, green, blue, alpha) (each component is provided as float value in the vertices array)
|
|
|
Post by Admin on Sept 26, 2019 13:01:16 GMT
What can socket be used for? network socket is basically used to transfer data between two devices over network (internet or intranet). for more info: en.wikipedia.org/wiki/Network_socket
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 15:48:11 GMT
Cool. Can I publish a website with socket?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 19:38:38 GMT
Hey how do I apply multiple values say from 0 to screen height to variables
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 19:50:30 GMT
draw.setscreen(1) draw.getsize(width, height) for x= 0,width do x = x + 1 end for y= 0, height do y = y + 1 end draw.point( x, y, black ) draw.point ( s, f, blue )
Why isn't height and width showing up as a number?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 19:59:52 GMT
draw.setscreen(1) width, height = draw.getsize() x = 0 y = 0 for x= 0,width do x = x + 1
for y= 0, height do y = y + 1
draw.point( x, y, draw.black ) end end
How do I make it so the points all come up at once?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 20:31:58 GMT
a = 40000 w = 20000 t = 10000 v = a * math.sin((2*math.pi*t)/w) mo = {v} audio.playbuffer( mo )
What does the error message mean on this?
|
|
14sum
Junior Member
Posts: 66
|
Post by 14sum on Sept 26, 2019 20:46:19 GMT
url = require("socket.url") draw.setscreen(1) width, height = draw.getsize() draw.string( "welcome to sure social", width-((1/2)*width), height-((1/4)*height), draw.black)
Why isn't my string showing up?
|
|