Computing Squid
@ComputingSquid
some bored guy coding
0
reef hunterCOTS hunter - remastered | A play on the KaboomJS default template |
a collaboration with @emojigame @pinatacactus and others
22
1
0
ComputingSquid Gameplay:
jump around
collect coins & powerups
jump on starfish
press space to shoot a bullet
touch a boat to go to the next level2 months ago
It says, unexcpected end-of-input on a line where there is clearly none:
main.rb:142: syntax error, unexpected end-of-input, expecting keyword_end
put
Ruby
I'm confused. So this was a project for my Dad to calculate mean deviation. But then i was like yay it should work and the JavaScript looked ok, but
Coder100 ok so basically the error is that all the meandev variables are not defined:
let meanDev1;
let meanDev2;
let meanDev3;
let meanDev4;
let meanDev5;
This is because in your function:
function calc(theVar, meanDev) {
You don't own meanDev (meaning you can't change the variable that gave you that value). The solution is to just return the value.
Solution
ALSO ADD SEMICOLONS THIS IS NOT PYTHON3 years ago
Coder100 image
Can I ask why you are doing Number(meanDev) and then discarding the result?3 years ago
I'm am kind of confused, I Do not know how to correctly set something as a number and then make it check if the user has visited and then not reset th
HTML, CSS, JS
Coder100 Hi, localstorage saves everything as a string.
So for you:
if (!localStorage.getItem("score")) localStorage.setItem("score", "0")
let score = Number(localStorage.getItem("score"));
And now, each time you change score, you will have to save it:
score ++;
localStorage.setItem("score", score)
Links:
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
https://www.w3schools.com/jsref/propwinlocalstorage.asp3 years ago
PYer You can try using cookies: https://www.w3schools.com/js/js_cookies.asp
document.cookie = "hasvisited=1";
3 years ago
PattanAhmed @ComputingSquid Hi,
You can use Databases...
Variables...
And etc.
Check this website to know more:-
Click here
That's it.
Thanks!
Hope this helps3 years ago
I was just putting a link in a repl but then the target="_blank" opened up in a new tab, did not work. So I made a test repl(down below) And I'm wonde
HTML, CSS, JS
uhhhhhh
Because it showed someone else's pfp and cycles on my profile, it might be a bug.
Go to someone else's profile, the click on your profile
CodingCactus hi, i reported this a very long time ago https://repl.it/bugs/p/switching-between-viewing-profiles3 years ago
Coder100 Yes, that is an error I have encountered. Please help and report here. Thanks!
btw, you might also want to put inside:
go to someone else's profile, then click on yourself on the top left, select profile.
`3 years ago
PattanAhmed @ComputingSquid Hi Squid,
When I open your profile nothing seems wrong
01
But if you can't access your profile name then it's 100% a bug!
You can report it in the Bugs Section
You can go to Bugs Section from here
Feel free to post your bug there
The community of Repl may follow up with you there.
*Hope this helps
Please mark my answer if this helps*3 years ago
[Unofficial] Guide To Awarding Cycles
> Note: I'm not a mod or content creator, but this is what I think:
I think people should be free with upvotes
I wondering why this does not work
magicItem = ["Wand" , "Orb" , "Staff" , "Rod" , "Token"].sample
weapon = ["Mace" , "Sword" , "Spear" , "Bow" , "Da
Ruby
PattanAhmed @ComputingSquid Hi Squid,
Ruby is awesome, I know.
ruby
But you have some hard times getting your problems to get solved. :(
**Check these websites that I found online. I think it may help you
1st website, 2nd website...**
Please check those websites as it will be useful to you.
Hope this helps
Please mark my answer if this helps.3 years ago
So basically i tried to make some ruby script some the shop had some different items each time and it stayed the same when it got added to the player
Ruby
Coder100 Well, you are using require_relative requiring shop which requires main which requires shop which ...
Might want to remove the require statement inside shop.rb3 years ago
I included a link to the repl.it post for something, but it just opened up the website which is kind of sad. =(
I'm not sure what is wrong.
I made this repl. I worked hard. This is still in development. I'm just posting it now.
I used MDN and w3schools for this.
Credits included.
You don't
CodingCactus here is a bot: https://discordapp.com/oauth2/authorize?client_id=700051830394060801&scope=bot&permissions=03 years ago
so, I made a repl for my discord server, and I'm just wondering, before i post it, is it still advertising if you post something for your company/thin
ComputingSquid my actual post:
https://repl.it/talk/share/This-repl-is-for-my-Discord-server-I-made-a-repl-for-my-discord-server/44902
hopefully i don't get banned accidentally3 years ago
firefish @DynamicSquid Short answer: yes and no. Long answer
If it's something like HEY GUYS, CHECK OUT MY DISCORD SERVER, I MADE THIS REPL FOR THEM!!! that is advertising. If you say something like and just so you know, this repl was dedicated to my discord server, if you want to, you can check them out ;) then that would be OK.3 years ago
OK, so I am sort of experienced but i need help with seeing the text, and the entire image so welp please reply
So, I need to be able to see the text
like, do i just put nil? i don't think it works. because the only other way i know is to make a game inside one big loop and then make conditions to e
I tried to use gosu except it did not work. it just said, package installation failed.
Error_2
Ok, so my repl just keeps saying: error, string literal in condition, whenever I use an if...else loop. it is sooooo anyoing. can anyone help me?
KobeFF O yeah, ik this is an old post, but for future reference, if this still is an issue for you, it's most likely because you forgot to use "==" instead of "=".
e.g. instead of
x = 1
if x = "2"
puts "x is 2"
else
puts "I can't guess the number"
end
try:
x = 1
if x == "2"
puts "x is 2"
else
puts "I can't guess the number"
end
`2 years ago
This is a d&d based game, but has some errors. I'm trying to fix it.