www.webdeveloper.com

Search:

Type: Posts; User: jumbee

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    2,513

    i was trying to avoid to post the whole code,...

    i was trying to avoid to post the whole code, since it gets a bit scary to read all that stuff and then I don't get any feedback. :) I have tryed your advice, but it didn't work.


    ...
  2. Replies
    6
    Views
    2,513

    this is the entire collision detection code. i...

    this is the entire collision detection code. i have tested it also in firefox and it works. only IE is making problems.



    function distance(obj1,obj2) {
    var difx = obj2.x - obj1.x;
    var...
  3. Replies
    6
    Views
    2,513

    Collision detection in IE

    Hi

    I'm using this function for collision detection. But it doesn't work in IE. Help please...



    function distance(obj1, obj2) {
    var difx = obj2.x - obj1.x;
    var dify = obj2.y - obj1.y;...
  4. Replies
    0
    Views
    1,416

    Shooting game - fire control

    Hi

    I'm learning javascript and for this I'm building a space shooting game. I'm have problems to limit the shots fired or to set s firing rate. Can you please help?


    <!DOCTYPE html>
    <html>...
  5. Replies
    11
    Views
    1,158

    oh, sooooorry. i was not reading it well. your...

    oh, sooooorry. i was not reading it well. your suggestion helps a bit, but now a funny thing happened. circle is drawn in the top left corner. center coordinates are 0,0. strange...
  6. Replies
    11
    Views
    1,158

    yes it is true. bellow I have pasted the complete...

    yes it is true. bellow I have pasted the complete code...


    cb_canvas = document.getElementById("cbook");

    cb_lastPoints = Array();

    if (cb_canvas.getContext) {
    cb_ctx =...
  7. Replies
    11
    Views
    1,158

    StopDraw is being called. I have put on the...

    StopDraw is being called. I have put on the beginning of the drawCircle function an alert and as I have touched and moved my finger it showed up. I can send you the complete code so you can see
  8. Replies
    11
    Views
    1,158

    I forgot to add also this. I call this drawCirle...

    I forgot to add also this. I call this drawCirle function here:


    function stopDraw(e) {
    drawCircle(e);
    e.preventDefault();
    cb_canvas.onmousemove = null;
    }
  9. Replies
    11
    Views
    1,158

    hi all the others are working just fine. also...

    hi

    all the others are working just fine. also this drawCircle function works fine, but just in a browser. As soon as I export it to my android phone, it stops.
  10. Replies
    11
    Views
    1,158

    I've got these event handlers and would like to...

    I've got these event handlers and would like to use the mentioned function on touchdown.


    cb_canvas = document.getElementById("cbook");

    cb_lastPoints = Array();

    if (cb_canvas.getContext)...
  11. Replies
    11
    Views
    1,158

    Convert to touch events

    Hi

    I'm learning javascript and trying to put it also on mobile (android). How can I translate this function on touch events? Thank you


    //Draw circle
    function drawCircle(e) {

    var...
  12. Thread: Draw program

    by jumbee
    Replies
    2
    Views
    628

    Great. Its working. Thanks a lot.

    Great. Its working. Thanks a lot.
  13. Thread: Draw program

    by jumbee
    Replies
    2
    Views
    628

    Draw program

    Hi

    I working on a drawing app using HTML 5 and canvas. And I'll get a strange situation. The app enables the user to change settings as linewidth and fillStyle. The problem is that, as I draw a...
  14. Thread: Color problem

    by jumbee
    Replies
    2
    Views
    536

    Color problem

    Hi

    I'm making a field of asteroids and try to change colors in two ways. Btw I'm a beginner with this. :)

    First is to have all the androids colored randomly and second is two have them colored...
  15. Replies
    3
    Views
    424

    great, thank you a lot...

    great, thank you a lot...
  16. Replies
    3
    Views
    424

    Complete beginer

    Hi

    I'm trying to learn HTML5 and Javascript. While going threw a book, I also try to add some additional feature to their tutorials.

    In the code bellow I would like to color each rectangle in...
Results 1 to 16 of 16
HTML5 Development Center



Recent Articles