Author Topic: Styling mouse cursors - Acceptable?  (Read 288 times)

Offline boolean

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Styling mouse cursors - Acceptable?
« on: January 17, 2012, 10:49:14 PM »
On a normal day I utterly despise websites that style your mouse cursor along with 'under construction' gifs and marquee tags. Yet, I find I actually don't mind when browser games give me a custom mouse cursor. I was checking out cruel-online.de from BlackScorp and the high quality mouse cursor looked really nice.

So I'm curious - When it comes to browser games, are styling mouse cursors acceptable? Are there any usability concerns I might not be aware of?


Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: Styling mouse cursors - Acceptable?
« Reply #1 on: January 18, 2012, 02:55:49 AM »
IMHO games are the only place where styling a cursor is ok.

I believe:
- size should be very close to standard cursor
- shape should be very close to standard cursor, please make the tip sharp, shouldn't be all bulky
- must be well visible, contrasting the rest of the page
- must not be too complex or distracting
- a slight shadow is handy to make it feel float above the screen
- make the other variants as well (pointer, text...)
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline Doidel

  • Level 16
  • *
  • Posts: 141
  • Reputation: +2/-0
    • View Profile
    • Cohorts of Kargonar
Re: Styling mouse cursors - Acceptable?
« Reply #2 on: January 18, 2012, 03:11:19 AM »
I have two!
When you're in healing mode your cursor becomes a heal sign and when you're in destruction mode (for the village) your cursor becomes a pickaxe :)

Admire me.
* Keep it simple *

Offline Barrikor

  • Level 21
  • *
  • Posts: 248
  • Reputation: +3/-0
    • View Profile
Re: Styling mouse cursors - Acceptable?
« Reply #3 on: January 18, 2012, 12:26:01 PM »
Hi Boolean =) Not sure if we've met yet  :)

I'm with everyone else here (so far :P) that custom mouse cursors are fine in games.

It's kinda similar to the annoyance in the old days of people having music playing as soon as a website loaded, or worse - a video. Nowadays I don't come across that anymore except for where I'm expecting it and want it - like YouTube. So yeah, while a custom mouse cursor would be a turn-away on a normal site, on a game it can even be a positive and give the user a better game experience. (Assuming of course that the cursor image is usable and a good match for the game)

From the coding side now, the old custom cursors we used to see were made using M$ junk, so they only work on stupid IE. To make a decent cross-browser cursor I think you'll need to do some Javascript hackery...

[EDIT]
Guess I was a wrong, I see now that they've got it in the CSS2 specification....

Quote from: CSS2 Spec
:link,:visited { cursor: url(example.svg#linkcursor), url(hyper.cur), pointer }

This example sets the cursor on all hyperlinks (whether visited or not) to an external SVG cursor. User agents that do not support SVG cursors would simply skip to the next value and attempt to use the "hyper.cur" cursor. If that cursor format was also not supported, the UA would skip to the next value and simply render the 'pointer' cursor.




@ Doidel
Makes sense =)  Your game has awesome eye candy, if someone is gonna bulldoze a good looking building they might as well have a good looking tool for the job :P
« Last Edit: January 18, 2012, 12:56:31 PM by Barrikor »
Projects: Pith Framework (at 0.5), CactusGUI (at 0.3)

Offline boolean

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: Styling mouse cursors - Acceptable?
« Reply #4 on: January 18, 2012, 06:27:05 PM »
That's good to know, I think I'll add one in then  :)

@Barrikor: That CSS2 spec is good to know. My concern was if they don't support the cursor that it would cause an issue. It's good to know it will just default to pointer.
 
btw, Doidel, you're game looks freaking amazing  :o

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal