Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 22 Nov 2026 - @808.38
Forum Activity: Three Stars ~ Boop! The forum will close in 192.beats! Random | Recent Posts | Guild Recents
News: It's only life! :dog: Guild Events: 22: fate
+  MelonLand Forum
|-+  Worlds & Video Games
| |-+  ⚽︎ ∙ Look ma, I made a game!
| | |-+  Return of the squares


« previous next »
Pages: [1] Print Embed
Author Topic: Return of the squares  (Read 811 times)
Noah_S
Sr. Member ⚓︎
****
View Profile WWWArt


Noah. Earth. I make website. I.. I.. Noah. Earth.
⛺︎ My Room
iMood: Noah_S
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonfunguyVisited on Melon's 10th Anniversary!I got robbed by Dan Q on Melonland!I met Dan Q on Melonland!A coin!
« on: Autumn, 05 Nov 2026 @812 » Toggle Font Embed

The bunny's boards are leaking! Help her fix them in return of the squares, the group needs a fourth being.

I started this project on Wednesday last week, and it's the most complex game I've made so far. 1730 lines and 132 uses of the word "mediumaquamarine" later, it's done.

Logged

perfectionist_better.gifweb_designer.gifspeed_of_time.gifbutton290.pngmy_dream_wedding.gifClippy beats AI

Artifact Swap: Clippy just wanted to helpClippy would never track youClippy didn't need data centersClippy would never make a subscription programClippy would never sell your dataFake penguinLarge watercraftGrowing ballwhen life gives you crab make mailMessage Buddylaptop
DunsenChurner
Casual Poster ⚓︎
*
View Profile WWW


⛺︎ My Room
OS: Linux Mint

Guild Memberships:
Artifacts:
ReadingJoined 2026!
« Reply #1 on: Autumn, 05 Nov 2026 @839 » Embed

I liked playing this game @Noah_S !  :grin:  That is alot of <div>s you had to use in the playspace  :eyes: But I can tell the work paid off because it was very fun to play :)

Logged

"I cannot pretend I am without fear. But my predominant feeling is one of gratitude."
 - Oliver Sacks

(/|\)

Artifact Swap: yo phone lingin! yo phone lingin!
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonThe Worm is creeping around Melonland profiles!Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #2 on: Autumn, 05 Nov 2026 @846 » Toggle Font Embed

Wow, this is complex!

It took me a while to work out how to play. Perhaps when adding the 'click' event to the buttons at the bottom you might .classList.add('clickable') or similar, and then .classList.remove('clickable') from them each when it's not your turn? Then you could add CSS to make it more-obvious where you were supposed to click, e.g. something like this?


Code
/* fade-out buttons that can't be clicked */
#floodbuttons button:not(.clickable) {
  opacity: 0.5;
}

/* Use a "pointer" when hovering over buttons that can be clicked */
#floodbuttons button.clickable {
  cursor: pointer;
}

But yeah, this is a really cool and ambitious project! I had no idea where where you were going with it when I saw your earlier work: really amazing to see it come together!

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif https://origami.danq.dev/88x31.gif https://skelly.monster/dem-bones-88x31.gif

Artifact Swap: Pink ham-ham rangerPolyamorousI met Dan Q on Melonland!shoeJoined 2025!cinnamoroll
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonYou're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top Hat
« Reply #3 on: Autumn, 05 Nov 2026 @847 » Toggle Font Embed

Im almost at the end of the game, but the other players are taking like 5 mins to finish their turns and the browser keeps saying the page is running slow and the numbers disappear and then come back!

I think this game might be too intense for my computer  :drat:


Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Red Tulip
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonThe Worm is creeping around Melonland profiles!Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #4 on: Autumn, 05 Nov 2026 @850 » Toggle Font Embed

I just got a "This page is slowing down Firefox." warning. The processing gets quite deep for the AIs towards the end, I'm guessing!

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif https://origami.danq.dev/88x31.gif https://skelly.monster/dem-bones-88x31.gif

Artifact Swap: Pink ham-ham rangerPolyamorousI met Dan Q on Melonland!shoeJoined 2025!cinnamoroll
Seryndelle
Jr. Member ⚓︎
**
View Profile WWWArt


she/they
⛺︎ My Room
StatusCafe: Seryndelle
XMPP: Chat!
iMood: Seryndelle
RSS: RSS

Guild Memberships:
Artifacts:
In my field of paper FLOOOOOWWWEERRRRSSSFirst 1000 Members!Joined 2023!
« Reply #5 on: Autumn, 06 Nov 2026 @007 » Toggle Font Embed

That was great fun, thank you! :seal:

I didn't have much trouble with running it, although my LibreWolf browser did pop up and say that the page was slowing things down; the message then promptly disappeared and everything seemed to sort itself out!

Also, I thought it was a competitive game at first! I wonder what that says about me... :ohdear:

Logged

we're all spoonfuls of the same soup (and it's delicious!) :chef:

https://archivescence.nekoweb.org/img/d/fal/d67.png

Artifact Swap: Visited on Melon's 10th Anniversary!I met Dan Q on Melonland!
Noah_S
Sr. Member ⚓︎
****
View Profile WWWArt


Noah. Earth. I make website. I.. I.. Noah. Earth.
⛺︎ My Room
iMood: Noah_S
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonfunguyVisited on Melon's 10th Anniversary!I got robbed by Dan Q on Melonland!I met Dan Q on Melonland!A coin!
« Reply #6 on: Autumn, 06 Nov 2026 @565 » Toggle Font Embed

I updated it a bit, it should run somewhat better even if it's still not as smooth as I'd like. I'm struggling with how to tell Fox, Bunny and Lynx that they don't have to look at every tile next to one of theirs without them getting overloaded from that instead.

After several failed attempts at opacity, I added a line of dialogue to the fox to explain that only some of the colors are pickable. The cursor is now a pointer over them.

Also, I thought it was a competitive game at first! I wonder what that says about me... :ohdear:

Well.. those are the norm. I was initially turning it into one, but as I was trying to get that to work, it felt increasingly wrong. Then I had a moment of "What am I even doing? This isn't what I want to be making" and pivoted. Then coding was fun again.

Logged

perfectionist_better.gifweb_designer.gifspeed_of_time.gifbutton290.pngmy_dream_wedding.gifClippy beats AI

Artifact Swap: Clippy just wanted to helpClippy would never track youClippy didn't need data centersClippy would never make a subscription programClippy would never sell your dataFake penguinLarge watercraftGrowing ballwhen life gives you crab make mailMessage Buddylaptop
TheFrugalGamer
Hero Member ⚓︎
*****
View Profile WWWArt


⛺︎ My Room
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
See A Bug Summer 2025 ParticipantGreat Posts PacmanFirst 1000 Members!Joined 2022!
« Reply #7 on: Autumn, 06 Nov 2026 @696 » Toggle Font Embed

Very fun game! I like how it was collaborative in the end--I also initially thought it was competitive, but then I started to think about how the logic worked, and so I read back over the dialogue and realized it said "help"! This was very satisfying to play!

Logged


Artifact Swap: Pink TulipEmerald OreAquamarine
Noah_S
Sr. Member ⚓︎
****
View Profile WWWArt


Noah. Earth. I make website. I.. I.. Noah. Earth.
⛺︎ My Room
iMood: Noah_S
RSS: RSS

Guild Memberships:
Artifacts:
Caught by RubbereonfunguyVisited on Melon's 10th Anniversary!I got robbed by Dan Q on Melonland!I met Dan Q on Melonland!A coin!
« Reply #8 on: Autumn, 07 Nov 2026 @474 » Toggle Font Embed

I just posted this on my news page

Quote
I did some more tweaking of the code, and return of the squares now runs smoothly all the way to the end for me. It was a really silly mistake, I had put the function to claim squares inside of a loop instead of after it. And that loop was designed to change the color of every tile that Fox, Bunny or Lynx had already claimed. The loop runs once for every tile they have, so it runs more and more towards the end of the game. And it was taking the check for neighboring unclaimed tiles of the same color function with it every time.

The lesson from this: If your code gets slow, check what you have in any loops.

Logged

perfectionist_better.gifweb_designer.gifspeed_of_time.gifbutton290.pngmy_dream_wedding.gifClippy beats AI

Artifact Swap: Clippy just wanted to helpClippy would never track youClippy didn't need data centersClippy would never make a subscription programClippy would never sell your dataFake penguinLarge watercraftGrowing ballwhen life gives you crab make mailMessage Buddylaptop
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Guide | Rules | Whos a Mod? | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Flibbit7
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe