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

Report as inappropriate.

danpost
danpost presents ...

2021/4/13

Bouncing Bullets Tank AI Demo

Run scenario and click on 'About' button for info.

1902 views / 1286 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse simulation demo danpost

This scenario is a member of: Demos by danpost, UNiTy iN NeEd


Your browser is ignoring the <APPLET> tag.
Roshan123Roshan123

2021/5/17

Import greenfoot.*; Public interface obstacle{} Class enum or interface required
Roshan123Roshan123

2021/5/17

Ignore the capital letters
Roshan123Roshan123

2021/5/17

Is it okay? interface Obstacle{} Its working
danpostdanpost

2021/5/17

@Roshan123, no imports required for this particular interface. Just the one line exactly as shown on 'About' page.
Roshan123Roshan123

2021/5/18

Its shooting even if their is an obstacle infront of it
Roshan123Roshan123

2021/5/18

@danpost, i made a discussion....plz help me out their
Roshan123Roshan123

2021/5/18

Click enemy class and then plz check addedToWorld() method Under that u wrote addobj(ray,0,0) but if i m not wrong, i think it should be addobj(ray,getX(),getY())
Roshan123Roshan123

2021/5/18

And also the same for setLocation
Roshan123Roshan123

2021/5/18

I apologise for my mistake. Due to my carelessness i did a mistake which confused me a bit. Now its working
Roshan123Roshan123

2021/5/18

Its was really helpfull for me. I hope the next "possible update" also includes more comments for “Ray„ class

See all comments

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

Who likes this?

Roshan123