I'm making a game that uses the Z axis and I'm wondering if anyone has a 3D engine I can use. I'll make sure to credit you.
Does anyone have a 3D engine I can use?
VarrienceLvl 25
i don't really have a library but i do have a starter project if you plan to use webGL i made a demo project
https://studio.code.org/projects/gamelab/OPqP0gIuJ8yVAh4751oZXaFQHQsB1Ke5PlOeyVFiBLk/edit
FluffypoopoLvl 55
Brendan I'm working on a online pong game (Got the connecting to work but need to make it play
FluffypoopoLvl 55
I did the easy one now i need to do the hard one
FluffypoopoLvl 55
Anyone got any ideas to store mass amounts of data in gamelabs?
No not really.
I do have a pong game that I made that you can use for the base gameplay if you like.
https://studio.code.org/projects/gamelab/RBQeg--z_pgfuVLPZxdn8TBvuQ_n8r7Udy0sVYBtkQU
Just copy and paste the code so that it doesn't appear as a remix if you don't want it to.
ackvonhuelioLvl 41
Fluffypoopo
umm, arrays? a useful little thing is if you click the little triangle to the left of an array or function in non block mode and then it collapses the array so you don't have to scroll
FluffypoopoLvl 55
ackvonhuelio I don't have time could you make a basic one please
ackvonhuelioLvl 41
Fluffypoopo
wdym
basic what
ackvonhuelioLvl 41
Fluffypoopo
https://studio.code.org/projects/gamelab/kQvHjWXaASXUvc_YbNCY0UeFmpqRi1Slg6Jg8YaKsc8/view
heres an example of data saved through keyvalues
FluffypoopoLvl 55
- iPhone
ackvonhuelio I need to store like 7 things in one thing
ackvonhuelioLvl 41
- Edited
Fluffypoopo
use an array then.
In case you don't know how to do this:
// define the array
var x = [4, 10, true, 16, 21, 'hi', 85];
// print 'hi' (arrays start with 0), x[0] returns the first item in the array, x[1] returns the second, x[2] the third, etc.
console.log(x[5]); // x[5] is 'hi'
// change 16 to 160
x[3] = 160;
// prints 160 instead of 16 because it was changed
console.log(x[3]);
// add 'wassup' to the end of the array
x.push('wassup');
// remove 21 from the array, 21 is 4 in the array
x.splice(4,1); //dont worry about the 1
// veeerrrryyyy important remember arrays start with 0
thats it i think
FluffypoopoLvl 55
ackvonhuelio I am going, to be honest, I have not been sleeping, so I'm %90 asleep
ackvonhuelioLvl 41
Fluffypoopo
hey, i'm not getting payed so i have no requirement to be interesting
INTERNECIONLvl 62
- Windows
I know I am late but
y'know what nevermind it seems you already have things covered here
FluffypoopoLvl 55
- iPhone
interesting message
INTERNECIONLvl 62
- Windows
What do you mean by that I was thinking about things outside of code.org. but I realized what site we are on
- Windows
Brendan i learned that a sprite actually has a useless z variable
i say useless becuase i messed around with it a little and it never did anything.
ackvonhuelioLvl 41
Unknowing-Thorax
Sprites are objects, so yeah
a sprite also has a
.ofahiufh property,
and a
.whyIsAckvonhuelioAwesome property,
and a
.isThisSpriteAChicken property,
etc.
but they're all undefined
personLvl 62
.Whyaregroupssohardtousesometimes property
ackvonhuelioLvl 41
person
don't use groups, use arrays instead
arrays are like groups without unnecessary bugs and arrays can also hold other values
personLvl 62
what the code for it?
- iPhone
In Python it’s x = [] to make an array dunno with Java though. Pretty sure it’s the same
VarrienceLvl 25
Nxjfjhdhdhdhdnj are you talking about JS or actual Java, in JS yes this would be an acceptable an acceptable form of declaration, however in Java it's not legal because all types of data must be included and are specific to only 1 type of data hence i use a bit more of a specific classification for arrays even when i am faced with a program that does accept more than 1 type of data
- iPhone
Varrience
I am talking about Java. I know it’s not technically legal code because it’s not properly being declared, I just don’t know how to properly declare it in Java…
ackvonhuelioLvl 41
in javascript or what CDO uses it's
theArray = [value0,value1,value2,etc.];