This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Duta
Duta presents ...

2012/3/10

Throwing things

This isn't much, and the physics are all off... was debating whether to upload this or not but then I thought I might as well.
Basically an excuse to use my method for creating a gradient background image between 2 colors.

Space to pause (while the bird is flying)

Enter to reset

5020 views / 6 in the last 7 days

4 votes | 0 in the last 7 days

Tags: mouse game simulation physics demo uaslp of korea lots tags

open in greenfoot
Your browser does not support the canvas tag.
danpostdanpost

2012/3/13

How about: if(((Actor)getObjects(Bird.class).get(0)).getX() > getWidth() - 65)
danpostdanpost

2012/3/13

NVM, I see you need the 'd' to set the locations.
DutaDuta

2012/3/13

However when it comes to setLocation(...) I'd have to write out all that again in the x parameter. Instead I stored it as a variable so that i can access it twice while only calculating it once.
DutaDuta

2012/3/13

Oh ignore my comment then, I posted it before you did the 2nd reply saying nvm
danpostdanpost

2012/3/13

@Duta, are you still working on the 'Grapher'?
DutaDuta

2012/3/13

I haven't been no - I didn't realize anyone had noticed it. When I get home from college tomorrow I'll implement zooming (I'm 95% sure I know exactly how to do it). Well, once I've done an english essay anyway Its nice to know that it has actually got seen (well maybe not much, but at least _someone_'s seen it) :p
danpostdanpost

2012/3/13

I created one. It is complete, even to the point of accepting formulas. But have not quite got the parsing of them done.
DutaDuta

2012/3/13

Ah yeah - I was going to attempt an equation parser, however I couldn't see myself getting one fully functioning, and less than fully functioning I saw as pointless. Good luck though :) I hope to see it uploaded in the not-too-distant future!
A new version of this scenario was uploaded on Thu Mar 15 23:44:36 UTC 2012 Height indicator when bird goes off the top of the world
A new version of this scenario was uploaded on Thu Mar 15 23:50:49 UTC 2012 Clearer height indicator.

See all comments

Want to leave a comment? You must first log in.

Who likes this?

tylers rafaelpaim Morran dlanni