Author Topic: jBasic  (Read 32978 times)

0 Members and 1 Guest are viewing this topic.

Offline Stephan

  • LV2 Member (Next: 40)
  • **
  • Posts: 23
  • Rating: +4/-4
    • View Profile
Re: jBasic
« Reply #75 on: May 10, 2010, 12:10:38 pm »
I never liked JBasic, too tough to use. Plenty of other langauges.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: jBasic
« Reply #76 on: May 10, 2010, 01:08:56 pm »
You might want to be careful to when you reply to people projects, though. I think you are thinking of another jBasic project somewhere else Stephan. Also I think what Eeems did is quite good because it allows people to make some JS stuff easier. I gave you a thumbs down for that comment.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #77 on: May 10, 2010, 07:44:08 pm »
I'm making some changes to the Physics demo, now it will give you a prompt to start the demo and to set the gravity/friction/bounce friction :) I'll upload it in a little bit.

EDIT: uploaded! I haven't finished the objects amount yet, but it will be fun to play with :P it will randomly place them as well as make them random sizes, and if you add more it will keep the ones you have already :P

I also found out why it doesn't like IE, for some reason it doesn't like what I do for multiple kepresses, I'll do some work and figure out how to fix it.
* Eeems grumbles at IE's lack of ability to follow the standard
« Last Edit: May 10, 2010, 08:19:46 pm by Eeems »
/e

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: jBasic
« Reply #78 on: May 10, 2010, 09:30:51 pm »
This is looking great!  Nice job Eeems! ;D

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #79 on: May 10, 2010, 09:51:05 pm »
thanks! ok, big update, you can add objects now! it can handle around 300 fine on my computer (slight slowdown) and I've had 5000 before :P but it was about a frame a second x.x maybe less.
I've added a command randomColor()

randomColor(format);
returns a random color
format = format of the returned number. 'hex' or 'rgb'

EDIT: You can delete now! yay if you ever get 10,000 objects on the screen now (I did that it was fun :P) you can get rid of them all without waiting for a reload! (which is actually faster for that many x.x). I might add a colour scramble button tomorrow....
« Last Edit: May 10, 2010, 10:04:43 pm by Eeems »
/e

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: jBasic
« Reply #80 on: May 10, 2010, 11:09:21 pm »
@ eeems wow awsome and what did you need >9000 objects for XD

@ stephan yeah please be sure your not confusing what you are talking about so far i think this is a great project . so i had to vote you down as well

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: jBasic
« Reply #81 on: May 10, 2010, 11:11:47 pm »
lulz nice stuff. However, for most values I typed the boxes would go off the screen and keypresses would quit responding :(

Opera btw. Also I get about 3 fps in that browser with 10000 boxes, 2 fps and sometimes 3 with 100000

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #82 on: May 10, 2010, 11:16:40 pm »
Lol, i was just testing the slowdown :p
Have you encountered any random bugs? Other then the random moving out of bounds one (no idea why it does that...)
Dj: thanks! Hmm, well what values were you putting in? Also, dont put gravity to 1 or friction to 0, and try to keep gravity below 7. Also, of course it would be that slow x.x thats quite a lot of objects x.x i dont expect to have more then 100 in any game i make with this (I'll first have to make object collisions x.x).
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: jBasic
« Reply #83 on: May 10, 2010, 11:33:07 pm »
No other bugs I think, so far. And lol with 10000 I just wanted to see. I personally will never use more than 200 I think, and even then, it might just be a bit above 100.

As for values, I had 2 and 3 for gravity the last two times, same for friction

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #84 on: May 10, 2010, 11:37:14 pm »
Ah ok lol
Well, if friction is the same as gravity, no movement will occur, and if friction is more then gravity, then wierd stuff happens x.x I'll have to add some checks later.
/e

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: jBasic
« Reply #85 on: May 10, 2010, 11:56:23 pm »
Well the going out of bounds thing seems to be fixed now :) Well that is until you mess with the friction and make it above the gravity, in which case you sink into the floor lol. Um, other bugs, lets see...if you delete either the gravity or friction value while in the air it will disable the ability to jump, once values are entered, and you will be hovering in the air. Oh, and the only other thing I see is that sometimes when you land you are constantly jittering. Sometimes you're at rest but not always. Great progress though :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #86 on: May 11, 2010, 01:23:27 am »
Yeah the friction is understandable, and the jittering is wierd, but i've expirienced it.
(btw, you dont jump, its apply gravity elsewhere ;) ) yeah, its because it grabs the value from the text area every 10 checks, so thats why it stops.
/e

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: jBasic
« Reply #87 on: May 11, 2010, 02:25:37 am »
Oh ok. And wouldn't it be more like taking away gravity from everywhere? It just looked like jumping to me haha. And ok, gotcha.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: jBasic
« Reply #88 on: May 11, 2010, 04:21:44 pm »
Sorry to sound like a noob, but where can I try this?  Thanks! :)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: jBasic
« Reply #89 on: May 11, 2010, 04:39:51 pm »
just type in http://tinyurl.com/jBasic and it will be there :)
/e