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 ... 226 227 [228] 229 230 ... 370
3406
Miscellaneous / Re: Wow look those old Omnimaga pics I found :O
« on: May 01, 2010, 01:23:19 pm »
Whats the font you used for the calc irc?

3407
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 01:05:57 pm »
Well speed can be a problem, but yes you can set up timers :p setTimout("code",milliseconds) can be used to run something once setInterval("code",milliseconds) can be used to have it run every however milliseconds.

I have just made a randomInt() command. Click on the screen area in the demo to see it in action

randomInt(a,b);
Returns a random integer between two numbers.
a = the lower boundary
b = the upper boundary

3408
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 12:20:51 pm »
Yeah that was my thought :)
I'd also give you menu based addition of code, so it will give you a color selector and you enter all the other stuff and it would give you a preview of the element, then it would insert the code at the pointer in the text area. I would also give you the option of running the code withought saving. And when i get good enough maybe a visual designer...who knows :p
I have big plans for it right now :p

3409
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 11:35:09 am »
Actually i intend to add getkey() and randInt() and maybe more later. Im currently trying to figure out how to let you clear specific areas of the screen and i just might end up making each thing you draw have id's so you can do things with them without clearing the whole screen each time. I'll try my best to make it like TI-Basic, but there are going to be differences due to the object orietatedness (sp?) of JavaScript.
Hopefully it isnt too hard to pick up though.
I may make a XUL app to help you with it too. Who knows, this could be big :p

3410
Web Programming and Design / Re: jBasic
« on: May 01, 2010, 12:52:38 am »
Don't worry, I'll code for calcs for a very long time. Its what got me started on programming after all :p

I just added a line() command and a clrGraph() command as well.

line(Ax,Ay,Bx,By,w,color)
Draws a line on the screen.
Ax = the initial x location in pixels
Ay = the initial y location in pixels
Bx = the second x location in pixels
By = the second y location in pixels
w = the width of each line piece on the line
color = the color of the line. Can be hex or color name.

3411
Web Programming and Design / Re: jBasic
« on: April 30, 2010, 10:25:02 pm »
I killed it because i needed to get on to more projects so i can get my full credits in computers. I may come back to it later though.
No I'm still into programming calcs, but i dont have the time to do it much right now.

3412
Web Programming and Design / Re: jBasic
« on: April 30, 2010, 10:00:33 pm »
Well ADE kind of already died, but i haven't killed my mario physics engine yet. I'm just focusing on projects that get me marks at school right now.

3413
Web Programming and Design / Re: jBasic
« on: April 30, 2010, 08:07:13 pm »
Thanks :) I've put way too much time into figuring out the basic stuff x.x
I'll be adding more later, and I'll probably make an extended set for more functionality as well

3414
Web Programming and Design / Re: jBasic
« on: April 30, 2010, 07:12:57 pm »

Tutorial

Code: [Select]
<html>
 <head>
  <title>
   Page Title
  </title>
  <script src="jBasic.js"></script>
  <script>
   function setup(){
    //Place code here.
   }
  </script>
 </head>
 <body onload="gScreen = document.getElementById('window');setup();">
  <div id="window">
  </div>
 </body>
</html>
Use this basic setup and place any JavaScript in the '//Place code here.' line. Add any content you want between the <body> tags

Commands

dispScrn(w,h,x,y)
creates the window that the content is displayed in.
w = width in pixels
h = height in pixels
x = x location from the left of the screen in pixels
y = y location from the top of the screen in pixels

text(x,y,size,text)
Writes text on the screen.
x = x location from the left of the screen in pixels.
y = y location from the top of the screen in pixels.
size = text size in pixels
text = text content, can include html code for more advanced purposes.

pixelOn(x,y,color,w,h)
creates a block on the screen.
x = x location from the left of the screen in pixels.
y = y location from the top of the screen in pixels.
color = color of the block, can be in hex or named.
w = width in pixels
h = height in pixels

sprite(x,y,w,h,src)
places an image on the screen.
x = x location from the left of the screen in pixels.
y = y location from the top of the screen in pixels.
w = width in pixels
h = height in pixels
src = the source of the image, can be a relative URL or a direct link.

jBasic.js can be found here:  http://future_history.freehostia.com/jBasic/jBasic.js

3415
Web Programming and Design / Re: jBasic
« on: April 30, 2010, 06:39:14 pm »
no, its a JavaScript library, so kind of like added commands that are more familiar to TI-Basic users. It will also have it's own look and everything that will remind you of the TI-Screen.

EDIT: added a pixelOn() command, so now you have basic drawing capabilities :D
EDIT2: added a sprite() command for displaying images anywhere and at any size.

3416
Web Programming and Design / jBasic
« on: April 30, 2010, 06:33:00 pm »
http://future_history.freehostia.com/jBasic/jBasic.html
I am working on making a JavaScript library to help people transition from TI-Basic to JavaScript. I have only made a text() command and a dispScrn() command. dispScrn() is used to create the screen area so all other commands work.
I'll work on a tutorial soon, well after I make a few more commands.

3417
Web Programming and Design / Re: Javascript Catch the Dot Game
« on: April 30, 2010, 05:56:35 pm »
no, it can't, it always appears at 400x400, so no idea how I did it x.x

3418
Web Programming and Design / Re: Javascript Catch the Dot Game
« on: April 30, 2010, 04:09:08 pm »
try and beat this one :P

sorry about the blurryness, I'll get a better shot.

3419
Web Programming and Design / Re: Javascript Catch the Dot Game
« on: April 28, 2010, 08:35:26 pm »
Well it should run fine, but it doesn't render correctly, (just no rounded corners)

3420
Web Programming and Design / Re: Javascript Catch the Dot Game
« on: April 28, 2010, 07:18:49 pm »
thanks :)
I just noticed that my ipod (which uses webkit) didn't like the border-radius too x.x I'll have to do some debugging, maybe add a -iwebkit-border-radius instead of just the standard -webkit-border-radius...oh well. it's much harder on my ipod x.x

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