Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Eeems

Pages: 1 ... 225 226 [227] 228 229 ... 370
3391
Web Programming and Design / Re: jBasic
« on: May 04, 2010, 05:22:44 pm »
yeah..well I got multiple keypresses working, but now I can't support the way I had it before, so:
http://www.webonweboff.com/tips/js/event_key_codes.aspx keycodes are here, and the new format for getKey() is:

getKey(e)
returns true if the key is pressed and false if it is not

e =  the keycode you are checking for

3392
Web Programming and Design / Re: jBasic
« on: May 04, 2010, 04:50:41 pm »
yes, this will be meant for game development, so which key's would you want?

3393
Web Programming and Design / Re: jBasic
« on: May 04, 2010, 04:27:49 pm »
ok, I've been making some progress on jBasic, so far I have just added some support for getting and setting the x and y position of objects, so this will make it easier to move stuff on the screen. It's hard to make an object orientated language work like TI-Basic, so there will be some differences, mainly, it's still object orientated. I'll probably be adding more object manipulators, like something that checks if it is still within the screen, etc.
For the Key's I have text identifier support for the arrow keys, shift, ctrl, alt, pause/break and enter, any more I should make easily accessible? Keep in mind I still have the Key-codes so you can check for all the keys :P Multiple key-presses are still not supported, but I will be adding them possibly soon.

New Template:
Code: [Select]
<html>
 <head>
  <title>
   Title
  </title>
  <script type="text/javascript" src="jBasic.js"></script>
  <script type="text/javascript">
   function setup(){
    //put code here
   }
  </script>
 </head>
 <body onload="gScreen = document.getElementById('window');setup();" >
  <div id="window" >
  </div>
  <form name="keyform">
   <input id="getkey" style="visibility:hidden;" readonly="readonly" type="text" value=""></input>
   <input id="getkeycode" style="visibility:hidden;" readonly="readonly" type="text" value=""></input>
  </form>
 </body>
</html>

3394
Nice! I can't wait to use it on my calc :p
what's the new estimate on the completion date?

3395
Other / Re: Android on iPhone!
« on: May 03, 2010, 04:23:36 pm »
Apple can't do anything either :p

3396
Other / Re: Android on iPhone!
« on: May 03, 2010, 01:42:03 am »
Its free, but it hasnt been ported to iTouch yet.

3397
Other / Re: Android on iPhone!
« on: May 02, 2010, 06:40:31 pm »
I've been following this since they first booted the Kernel :P
It has me excited :P can't wait to get a device that I can try it out on :P

3399
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 11:07:52 pm »
Yeah I intend to write some tutorials :) hopefully they will help :)

Now to figure out how to get multiple keypresses.

3400
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 07:01:27 pm »
well that and if you have a pre-designed character built with html (using tables and such) then you can use this to add them.
ok, GetKey() and getKeyCode() works now :D they require the addition of
Code: [Select]
<form name="keyform">
  <input id="getkey" style="visibility:hidden;" readonly="readonly" type="text" value=""></input>
  <input id="getkeycode" style="visibility:hidden;" readonly="readonly" type="text" value=""></input>
</form>
between the <body> tags

try pressing the arrow keys in the demo :P

3401
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 06:34:38 pm »
I mean like animated characters and such, things that you built using HTML and you want to just include that.

also, getKey() doesn't work...but I'm working on it.

3402
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 05:34:26 pm »
well if/else/endif/while are all the built in javascript ones. This is because I have no idea how to make them from scratch x.x
I'm going to add in keycontrol commands soon.

New Commands:
object(type,css,html,x,y);
creates an object on the screen, good for prebuilt characters and such.

type = the tag name. Must be a string. eg: 'div' or 'span'.
css = the css of the object. Note that position is changed to absolute and that top/left are changed to y/x respectively.
html = the innerHTML of the object, must be a string.
x = the x location of the top left corner in pixels
y = the y location of the top left corner in pixels

getkey();
returns the most recent key to be pressed is returned in string form. the command is not completed yet.

3403
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 05:02:38 pm »
thanks!

ok, I've added a way to delete objects, currently it will return the pointer to the object that you draw, so all you have to do is:
Code: [Select]
objectPointer = Line(0,0,100,200,10,"black");
pixelOff(objectPointer);
to remember the object and to delete it :) simple as that :)
I've updated the demo with the commands.
New commands:

pixelOff(pointer);
deletes an object on the screen
pointer = a variable pointing to the object. You can save variables to objects by adding a
Code: [Select]
objectPointerName =before each object you draw that you want to be able to delete.

screenOff();
Makes the screen and all its contents invisible.

screenOn();
Makes the screen and all it's contents visible.

EDIT: just aded the circle command, so this only works on FF, and webkit browsers, but as soon as CSS5 becomes standard, this will still work :D

circle(x,y,radius,color);
draws a circle on the screen.
x = the x location of the top left corner of the circle in pixels
y =  the y location of the top left corner of the circle in pixels
radius = the radius of the circle in pixels (half the width)
color = the color of the circle. Can be hex or colorname.

3404
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 04:35:32 pm »
actually, it measures its time based on the computers clock, so it will only have slowdown with the code running, but that probably shouldn't become a problem except on really slow computers.

actually it should work on all browsers that support JavaScript right now. I may run into problems with allowing people to make circles, but that will only be with browsers that don't support CSS5 (only FF and Webkit browsers support it right now) but I haven't tried to make them yet. Right now I'm focusing on figuring out how I'm going to let people delete specific objects on the screen but in a way that makes it seem like it is TI-Basic...

3405
MY EARS ARE BLEEDING!!!!!11!!!!1!!!!!111111ONEONEONE

wow....that was...epic
I never want to watch that again though x.x

Pages: 1 ... 225 226 [227] 228 229 ... 370