Retrogamecoding(.org) > BrowserBasic
New release v0.5
Guilect:
I see the problem with launching in Chrome. a double quote is in the wrong place.
From the mneu; Tools > Options > Tools; select "View in Chrome" then press Edit button.
Parameters line reads
"--allow-file-access-from-files file:///%d%n.html"
You need to move that first double quote to just before the word file, like this:
--allow-file-access-from-files "file:///%d%n.html"
I will fix it in the next release.
Guilect:
@bolbo
I did not want to add a run with default browser button because on Windows XP the default browser is IE and that version does not support HTML5. I realize that people can install another browser and make that the OSes default browser but it thought it might cause issues with newbies. I thought it would be safer to specifically call out what browser to open the game with.
I can add an Opera button. So can you. ;)
--- Quote ---Do you plan to support classes ?
--- End quote ---
Do I plan to support Classes... Oh boy. I am not sure if this is a similar topic to add the GOTO statement. It is clear that some people are for it and other think that it has not place in a BASIC language. At some point I might add functions to UDT's (Types). Use of this would be optional and entirely up to the user.
--- Quote --- Is there a way to set the game dimensions ?
--- End quote ---
setDimensions sets the dimensions of the canvas. It expects a width and height, in pixels.
setDimensions(width, height)
--- Quote ---What about showing performance indicators like frames per second ?
--- End quote ---
I can't believe that a fps command is not already in there. I will add it.
--- Quote ---Support of highscores to let the players compete online.
--- End quote ---
That is down the road a bit.
--- Quote ---Comment multiple lines in the editor.
--- End quote ---
That is now working in this last release.
Just highlight the lines you want commented out, right-click the mouse, chose comments > line.
--- Quote ---Physics engine, multiplayer, 3d..
--- End quote ---
Physics and 3D sound like fun things to consider in the future.
bolbo:
Thank you kindly for the detailed and useful answer!
I was just curious about your plans on classes, not that I am necessarily interested in seeing object oriented features ;)
Regarding multiplayer, I've just seen that node.js could be of help.
Thanks again :)
SteveOW:
Hi Guilect,
errors with x,y positions of shapes drawn after the first ellipse
--- Code: ---' ellipses
Function OnLoad()
' this is the callback OnLoad. It gets called one time when the web page loads
' put in variables that need to be initialized
' load sounds and images in here also
setBackgroundColor(255,128,128)
EndFunction
Function OnDraw()
' this is the callback OnDraw, it is called once per game loop
' Put all of your drawing commands in here
var iii as number
for iii = 5 to 10 step 5
setColor(0,255,0)
strokeEllipse( 100+iii,100, 90, 10)
setColor(255,255,0)
fillEllipse( 100+iii,100, 90, 10)
next iii
EndFunction
--- End code ---
Guilect:
The ellipses were being translated into position before drawing them, but there was no restore translation.
It is now fixed.
Attached is the fixed luv.min.js file. (had to rename to luv.min.js.txt to attach to this forum)
I will delete this attachment after the next release of BB.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version