what is HTML5 whitout CSS3 ?

For developers using the Construct 2 Javascript SDK

Post » Thu Nov 28, 2013 8:10 pm

This is HTML 5 or more js or jQuery ,but what is HTML5 whitout CSS3 they go hand in hand,i miss setting normal CSS3 properties to text like inset textshadow etc.

anyone working on CSS3 plugin ??

or c2 should make this HTML5 essential thing in to the engine.

Loocking forward to c2 update beta on this .






B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Thu Nov 28, 2013 11:51 pm

Construct 2 games basically don't use CSS at all. If your question is what is HTML5 without CSS, then the answer is everything you see in Construct 2!

C2 games are based on HTML5 canvas, which is just a grid of pixels that can be drawn to via Javascript. No need for CSS there, except to position the canvas (which doesn't touch CSS3).
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,625

Post » Fri Nov 29, 2013 5:41 am

hmmm not the best answer

<canvas> is a tag in html5 that you can apply css on as all other tags in the htmlanguage5

then it is a CANVAS ENGINE and not HTML5 , HTML5 includes many aspects,css3 ,webgl,webstorage, semantics,nuts and bolts, audio video,Connectivity,presentation , many of this thing are in c2 .so i dont see why to leave out css3 , it should be possible i believe , it would make the engine even more HTML5 , i think you guys can fix it somehow, looking forward to this implementation , it would be awsome for all of us and allso good for the engines reputation

Thanks in advance

Dan   istavang2013-11-29 05:49:52
B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Fri Nov 29, 2013 8:01 am

@istavang
A css3 plugin is on my todo list for a while now...
I'm on a big project for now, but if you can wait...
Passionate developer

If my work helped you to make your project, please consider making a donation :)
B
44
S
12
G
14
Posts: 631
Reputation: 10,987

Post » Fri Nov 29, 2013 10:05 am

Canvas is a HTML5 tag, so it's still correct to say it's a HTML5 engine. It's not actually possible to directly use CSS3 in canvas games, because CSS applies to styling DOM elements in a HTML document, and there are no DOM elements in a canvas game other than the canvas itself.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,625

Post » Fri Nov 29, 2013 10:55 am

well its possible to use several <canvas> in one layout then u can if so easely apply css on to an other child <canvas class="css3" > that should be doible ..think posetiv, its a challage to u guys it would be appriciated istavang2013-11-29 10:57:09
B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Fri Nov 29, 2013 11:03 am

is it possible to apply css3 on fontface then ? that was what i was missing. or apply a file style.css to modify all the css3 properties

on the text element c2 plugin

any tips there   istavang2013-11-29 11:05:46
B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Fri Nov 29, 2013 11:53 am

You need to consider it doesn't work with webgl, and the dom stuff cant be easily stuck into anything other than a browser, IE no native, or mobile.
Image ImageImage
B
169
S
50
G
174
Posts: 8,328
Reputation: 110,800

Post » Fri Nov 29, 2013 12:06 pm


well maybe its sounds not quit right ,

i live by the motto nothing is imposible! its only more or less difficult ;)

i will figure it out myself then some workaround   istavang2013-11-29 12:07:22
B
13
S
5
G
4
Posts: 176
Reputation: 4,429

Post » Fri Nov 29, 2013 12:14 pm

[QUOTE=istavang]
well maybe its sounds not quit right ,

i live by the motto nothing is imposible! its only more or less difficult ;)

i will figure it out myself then some workaround   [/QUOTE]
Export your game to html then add the css3 stylesheet in using the index file. Won't that work?

Or else use spritefonts.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Next

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests