• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:51
CET 09:51
KST 17:51
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)8Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns6[BSL21] Non-Korean Championship - Starts Jan 103SC2 All-Star Invitational: Jan 17-1822Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises3
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns SC2 All-Star Invitational: Jan 17-18 Weekly Cups (Dec 22-28): Classic & MaxPax win, Percival surprises Starcraft 2 Zerg Coach
Tourneys
$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) WardiTV Winter Cup WardiTV Mondays SC2 AI Tournament 2026 OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes Mutation # 504 Retribution
Brood War
General
Potential ASL qualifier breakthroughs? BGH Auto Balance -> http://bghmmr.eu/ I would like to say something about StarCraft BW General Discussion StarCraft & BroodWar Campaign Speedrun Quest
Tourneys
[Megathread] Daily Proleagues [BSL21] Grand Finals - Sunday 21:00 CET [BSL21] Non-Korean Championship - Starts Jan 10 SLON Grand Finals – Season 2
Strategy
Game Theory for Starcraft Simple Questions, Simple Answers Current Meta [G] How to get started on ladder as a new Z player
Other Games
General Games
Mechabellum Beyond All Reason Stormgate/Frost Giant Megathread Awesome Games Done Quick 2026! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Trading/Investing Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced
Blogs
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Psychological Factors That D…
TrAiDoS
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2338 users

HTML5 hackers wanted

Blogs > mmp
Post a Reply
mmp
Profile Blog Joined April 2009
United States2130 Posts
November 22 2011 05:14 GMT
#1
I made a post in the Big Programming Thread but I'll post here too:

On November 22 2011 14:09 mmp wrote:
Are there any Javascript/Canvas/HTML5 hackers out there? I've been working on a framework for Canvas 2D Context for a while now and things are starting to come together (it's about 95% tested and 90% documented but there are some known holes, so be gentle).

The project is hosted at: http://gitorious.org/meta2d/core/trees/master/

If your browser is awesome (tested in FF7, Chrome14 -- Opera won't work right now, I assume IE will fail) you can try a demo of HTMLMouseEvent triggers here: http://mikemp.mit.edu/meta2d/demo/mouse.html

Unlike some other frameworks out there, this one is aimed at scalability of interactive applications without obfuscating the Context2D API. So you can port your existing canvas code over easily and use the extras that this framework provides to improve performance as needed.

It's a powerful utility if you want to write an HTML5 game, among other applications.

I'd appreciate some feedback & if you're interested in getting involved or have any questions feel free to pm me.


*
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
Gummy
Profile Blog Joined October 2010
United States2180 Posts
Last Edited: 2011-11-22 05:22:49
November 22 2011 05:22 GMT
#2
This is pretty cool. I don't know how the browser handles the rendering/event detection of elements vs. drawn canvas shapes. iirc, you have to create the bounding boxes yourself, and do an expensive user-code loop of the mouse's current location against all the drawn shapes. Is your project relevant to this issue?
¯\_(ツ)_/¯ There are three kinds of people in the world: those who can count and those who can't.
mmp
Profile Blog Joined April 2009
United States2130 Posts
Last Edited: 2011-11-22 07:04:55
November 22 2011 05:29 GMT
#3
On November 22 2011 14:22 Gummy wrote:
This is pretty cool. I don't know how the browser handles the rendering/event detection of elements vs. drawn canvas shapes. iirc, you have to create the bounding boxes yourself, and do an expensive user-code loop of the mouse's current location against all the drawn shapes. Is your project relevant to this issue?

Yes, the project addresses this performance issue (among others).

When you define an entity's repaint behavior, you can draw on a canvas with a normal-looking Context2D, apply whatever transformations you want, and then pass that same Context over to the mouse collision detector for, say, alpha-masking.

It does mouse collisions in O(logN) expected runtime for N entities. I can run that demo with 1000 shapes on my netbook before getting significant lag.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
Hidden_MotiveS
Profile Blog Joined February 2010
Canada2562 Posts
November 22 2011 17:23 GMT
#4
So does the mouseevent trigger use any html5?
mmp
Profile Blog Joined April 2009
United States2130 Posts
November 23 2011 06:41 GMT
#5
On November 23 2011 02:23 Hidden_MotiveS wrote:
So does the mouseevent trigger use any html5?

The canvas is the HTML5. Normal HTMLMouseEvents are propagated through entities inside the canvas as though they were elements -- just set onevent to your function(Event) callback.
I (λ (foo) (and (<3 foo) ( T_T foo) (RAGE foo) )) Starcraft
Enderbantoo
Profile Blog Joined December 2009
United States465 Posts
November 23 2011 08:33 GMT
#6
hey that's exactly what i'm doing. Im writing a canvas workflow program: http://www.enderbantoo.github.com/LONI-1

and i experienced all of what gummy was talking about, expensive bounding functions client side
At the biggest upset of all of bw, Shanghai SPL finals 2011
Enderbantoo
Profile Blog Joined December 2009
United States465 Posts
November 23 2011 08:36 GMT
#7
On November 23 2011 02:23 Hidden_MotiveS wrote:
So does the mouseevent trigger use any html5?



much more simple

canvas.onmousedown = function(e);

handle eah different clicks as e.button
At the biggest upset of all of bw, Shanghai SPL finals 2011
Hidden_MotiveS
Profile Blog Joined February 2010
Canada2562 Posts
November 24 2011 02:42 GMT
#8
On November 23 2011 15:41 mmp wrote:
Show nested quote +
On November 23 2011 02:23 Hidden_MotiveS wrote:
So does the mouseevent trigger use any html5?

The canvas is the HTML5. Normal HTMLMouseEvents are propagated through entities inside the canvas as though they were elements -- just set onevent to your function(Event) callback.

Ah I see now. Thanks.
Please log in or register to reply.
Live Events Refresh
Next event in 5h 9m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft619
StarCraft: Brood War
Larva 596
BeSt 292
Zeus 259
Rush 225
EffOrt 210
Leta 109
Shuttle 109
Sharp 67
Killer 63
Mind 50
[ Show more ]
NaDa 32
Sacsri 32
Bale 12
Dota 2
NeuroSwarm316
League of Legends
JimRising 657
Super Smash Bros
Mew2King61
Heroes of the Storm
Khaldor115
Other Games
singsing1118
Sick151
Happy99
ViBE33
Organizations
Other Games
BasetradeTV35
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH215
• Adnapsc2 1
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift7697
• Lourlo1299
• Stunt541
Upcoming Events
WardiTV Invitational
5h 9m
ByuN vs Percival
Percival vs Rogue
Percival vs Classic
ByuN vs Classic
ByuN vs Rogue
Classic vs Rogue
IPSL
11h 9m
DragOn vs Sziky
Replay Cast
1d
Wardi Open
1d 3h
Monday Night Weeklies
1d 8h
WardiTV Invitational
2 days
WardiTV Invitational
3 days
The PondCast
4 days
All Star Teams
5 days
INnoVation vs soO
sOs vs Scarlett
uThermal 2v2 Circuit
6 days
[ Show More ]
All Star Teams
6 days
MMA vs DongRaeGu
Rogue vs Oliveira
Liquipedia Results

Completed

Proleague 2026-01-10
Big Gabe Cup #3
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
OSC Championship Season 13
Underdog Cup #3
NA Kuram Kup
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025

Upcoming

CSL 2025 WINTER (S19)
Escore Tournament S1: W4
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Thunderfire SC2 All-star 2025
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.