my second SB game
it's a classical Mahjong solitaire
it doesn't work yet on touch screens (but it shouldn't be very complicated to manage)
i notice a little display bug on Edge
if you have suggestions or if you see bugs, do not hesitate to report it to me.
http://cg.racine.free.fr/mahjong/
Search found 39 matches
- Fri Mar 30, 2018 4:19 pm
- Forum: Showcase
- Topic: Magic Mah-jong
- Replies: 3
- Views: 6342
- Tue Mar 13, 2018 7:16 pm
- Forum: Coding Questions
- Topic: css and google fonts
- Replies: 1
- Views: 2911
Re: css and google fonts
!$('head').append('<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />');
Macro gicon(nom)
"<i class='material-icons' style='font-size:40px'>"+nom+"</i>"
EndMacro
OpenWindow(1,0,0,800,600,"",#PB_Window_ScreenCentered)
ButtonGadget(0,10,10,100,50,gicon("home ...
Macro gicon(nom)
"<i class='material-icons' style='font-size:40px'>"+nom+"</i>"
EndMacro
OpenWindow(1,0,0,800,600,"",#PB_Window_ScreenCentered)
ButtonGadget(0,10,10,100,50,gicon("home ...
- Fri Dec 29, 2017 4:52 pm
- Forum: Tricks 'n' Tips
- Topic: Style Editor v1.0
- Replies: 4
- Views: 7540
Style Editor v1.0
Hello, everybody,
Peter gave me a way to change the style sheet.
I took the opportunity to make a small editor.
It's just a start, but it already allows you to customize the SB interface in a simple way.
(By the following, I will add the possibility to add a texture, to select the font, to use the ...
Peter gave me a way to change the style sheet.
I took the opportunity to make a small editor.
It's just a start, but it already allows you to customize the SB interface in a simple way.
(By the following, I will add the possibility to add a texture, to select the font, to use the ...
- Fri Dec 15, 2017 12:01 pm
- Forum: Showcase
- Topic: Zen Puzzle
- Replies: 10
- Views: 15754
Re: Zen Puzzle
i add some comments :
XIncludeFile("...") ;<--- my vectordrawing lib
Macro cola(col,a=$ff):(col|(a<<24)):EndMacro
Procedure piece(type,li.f,lp.f,sh.f,sd.f,sb.f,sg.f,x,y)
Protected dx,dy
Macro forme(l,sh,sd,sb,sg,dec)
dx=lp+dec
dy=lp+dec
MovePathCursor(dx-li,dy-li)
AddPathCurve(dx,dy+(-1 ...
XIncludeFile("...") ;<--- my vectordrawing lib
Macro cola(col,a=$ff):(col|(a<<24)):EndMacro
Procedure piece(type,li.f,lp.f,sh.f,sd.f,sb.f,sg.f,x,y)
Protected dx,dy
Macro forme(l,sh,sd,sb,sg,dec)
dx=lp+dec
dy=lp+dec
MovePathCursor(dx-li,dy-li)
AddPathCurve(dx,dy+(-1 ...
- Wed Dec 13, 2017 1:57 pm
- Forum: Showcase
- Topic: Zen Puzzle
- Replies: 10
- Views: 15754
Re: Zen Puzzle
@ Dirk Geppert :
i use this code :
Macro cola(col,a=$ff):(col|(a<<24)):EndMacro
Procedure piece(type,l.f,sh.f,sd.f,sb.f,sg.f)
Protected dx,dy
Macro forme(l,sh,sd,sb,sg,dec)
dx=2*l+dec
dy=2*l+dec
MovePathCursor(dx-l,dy-l)
AddPathCurve(dx,dy+(-1-sh)*l, dx,dy+ (-1+sh)*l,dx+ l,dy-l ...
i use this code :
Macro cola(col,a=$ff):(col|(a<<24)):EndMacro
Procedure piece(type,l.f,sh.f,sd.f,sb.f,sg.f)
Protected dx,dy
Macro forme(l,sh,sd,sb,sg,dec)
dx=2*l+dec
dy=2*l+dec
MovePathCursor(dx-l,dy-l)
AddPathCurve(dx,dy+(-1-sh)*l, dx,dy+ (-1+sh)*l,dx+ l,dy-l ...
- Tue Dec 12, 2017 11:27 am
- Forum: Showcase
- Topic: Zen Puzzle
- Replies: 10
- Views: 15754
Re: Zen Puzzle
it's just
- Fri Dec 08, 2017 3:09 pm
- Forum: Showcase
- Topic: Zen Puzzle
- Replies: 10
- Views: 15754
Re: Zen Puzzle
Yes, it's SB.
just the minimum of javascript for what is not yet taken into account: full screen/local storage/...
but it only represents a few lines
on the other hand, I had to redo the lib "VectorDrawing" which is not really usable for games (slowness problem)
I posted my version on
http://forums ...
just the minimum of javascript for what is not yet taken into account: full screen/local storage/...
but it only represents a few lines
on the other hand, I had to redo the lib "VectorDrawing" which is not really usable for games (slowness problem)
I posted my version on
http://forums ...
- Fri Dec 08, 2017 1:42 pm
- Forum: Showcase
- Topic: Zen Puzzle
- Replies: 10
- Views: 15754
Zen Puzzle
my first SB game
this is a classic puzzle game.
it doesn't work yet on touch screens (but it shouldn't be very complicated to manage)
if you have suggestions or if you see bugs, do not hesitate to report it to me.
http://cg.racine.free.fr/puzzle/
this is a classic puzzle game.
it doesn't work yet on touch screens (but it shouldn't be very complicated to manage)
if you have suggestions or if you see bugs, do not hesitate to report it to me.
http://cg.racine.free.fr/puzzle/
- Fri Dec 08, 2017 1:26 pm
- Forum: Coding Questions
- Topic: modify the theme by code
- Replies: 2
- Views: 4917
Re: modify the theme by code
Thank you very much Peter
you are indispensable on the spiderbasic forum
thanks to you, I will be able to customize the SB interface "easily".
PS:
for the class ". dijitButtonNode", properties are defined with the term "! important":
why?
how to know when to add this term ?
you are indispensable on the spiderbasic forum
thanks to you, I will be able to customize the SB interface "easily".
PS:
for the class ". dijitButtonNode", properties are defined with the term "! important":
why?
how to know when to add this term ?
- Thu Dec 07, 2017 4:59 pm
- Forum: Coding Questions
- Topic: modify the theme by code
- Replies: 2
- Views: 4917
modify the theme by code
hello,
I'm trying to change the theme by code.
problem:
when I modify the theme after creating windows and gadgets
it's okay, but what is created next keeps the initial theme.
Procedure css()
!$("body").css("font", "30px time");
!$("body").css("color", "#f00");
!$(".spiderwindow").css ...
I'm trying to change the theme by code.
problem:
when I modify the theme after creating windows and gadgets
it's okay, but what is created next keeps the initial theme.
Procedure css()
!$("body").css("font", "30px time");
!$("body").css("color", "#f00");
!$(".spiderwindow").css ...