YOUREWINNER.COM
 
   

SPEARS ARE HERE!!!
 
Thunder
#46 07-11-2012, 07:57:44 AM
so the spears are put in a random position each time the page loads? It's whack when they all somehow end up in the same place

yeah, I have no idea how I'd save their position and still allow unlimited spears (which is what the people want)


maybe you could have each spear have an ID, with the x,y position encoded in the ID?

maybe i'm overthinking this, but it's just a suggestion

EDIT: x,y position and spear type, encoded on the ID

That's one way of doing it. Also, the spears could be aligned with each other horizontally in a centered row according to some algorithm (but then all of the spears would move when you add a new one). I think storing an array of strings denoting each spear's properties is probably the best idea.


yourethunder
ywoc
#47 07-11-2012, 08:13:00 AM
I demand spear usernames


Dissident
#48 07-11-2012, 10:40:23 AM
  • the ultimate, the muffin man
  • Administrator
  • *****
    *****
    *****
    *****
    *****
    *****
  • Posts: 17453
  • Rigcoins: 99970202.79
  • Send Money to Dissident
    Thumb Up
  • weeaboosexual orientation uncleardissident b shirt+
  • "smash the patriarchy"
this is probably the greatest thing ever




Dissident International Anti-Furry Organization
JC VON BASTARD
#49 07-11-2012, 10:49:45 AM
Most innovative forum on the internet 2012




jcthedude
#50 07-11-2012, 12:18:04 PM
- Last Edit: 07-11-2012, 12:31:30 PM
  • Guest
so the spears are put in a random position each time the page loads? It's whack when they all somehow end up in the same place

yeah, I have no idea how I'd save their position and still allow unlimited spears (which is what the people want)


maybe you could have each spear have an ID, with the x,y position encoded in the ID?

maybe i'm overthinking this, but it's just a suggestion

EDIT: x,y position and spear type, encoded on the ID

That's one way of doing it. Also, the spears could be aligned with each other horizontally in a centered row according to some algorithm (but then all of the spears would move when you add a new one). I think storing an array of strings denoting each spear's properties is probably the best idea.

Yeah I was thinking of just storing an array of arrays (which contain the x, y position of each spear) in a mysql field, but I didn't feel like looking up how to store an array in mysql last night.
maybe today

i feel like i'm making the forum load slower by generating all these random numbers every time
even if it's just miliseconds longer, THAT IS TOO LONG


Cirus
#51 07-11-2012, 13:35:20 PM
HOW DID I FORGET ABOUT HATS HOLY poo poo

The hats would need to be somehow not covered with spears


cirus_
#52 07-11-2012, 13:39:35 PM
  • Guest
HOW DID I FORGET ABOUT HATS HOLY poo poo

The hats would need to be somehow not covered with spears

Shouldn't be a problem, just give the hat a higher z-index.
I just need somebody to make some silly hats


Cirus
#53 07-11-2012, 13:58:07 PM
Why stop at hats?

20 gold chains


cirus_
Svetlana
#54 07-11-2012, 13:59:32 PM
yeah but that'd take more sql work

my way is simpler


lana_chan my name is erin
#55 07-11-2012, 14:06:36 PM
  • Guest
Why stop at hats?

20 gold chains

omg somebody please make gold chains EXTRA BLINGY


#56 07-11-2012, 14:09:37 PM
  • Guest
yeah but that'd take more sql work

my way is simpler

how do i save the each spear's id without sql tho?


#57 07-11-2012, 14:11:19 PM
  • Guest
Why stop at hats?

20 gold chains

omg somebody please make gold chains EXTRA BLINGY

And some GIANT HOOP EARRINGS TOO


#58 07-11-2012, 14:11:50 PM
  • Guest
Why stop at hats?

20 gold chains

omg somebody please make gold chains EXTRA BLINGY

And some GIANT HOOP EARRINGS TOO

And BLACK PEOPLE LIPS


Cirus
#59 07-11-2012, 14:17:51 PM
roaring flames behind an avatar


cirus_
#60 07-11-2012, 14:32:18 PM
- Last Edit: 07-11-2012, 14:48:33 PM
  • Guest
roaring flames behind an avatar

Cirus is it hot in here or is it JUST ME

edit: removed flames cuz they were stupid


0 Members and 1 Guest are viewing this topic.