Page 4 of 4 FirstFirst ... 234
Results 31 to 33 of 33

Thread: Arkanoid

  1. #31
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    Re: Arkanoid

    Hi Simone,

    it looks promising. Here are some odd things I discovered:

    1) Paddle movement with an optical mouse. Sometimes not very accurate.
    2) A straight ball up bounce in a random angle back after it hit a brick. Very unusual behaviour for a blockbuster game
    3) Sometimes the ball changes its direction when on the left in the black area. Like it is hitting an invisible brick.

    Thanks for sharing the script.

    Michael

  2. #32
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Re: Arkanoid

    The following should improve a bit the way balls hits paddle.

    Inside "Ball_CheckMovement" sub, substitute the follwing line
    [code=thinbasic]vball(count_ball-%eBall+1).directionLR = rndf(-1,1)[/code]
    with the following:
    [code=thinbasic]vball(count_ball-%eBall+1).directionLR = (bx - px)/(paddle.width/2)[/code]
    The above create an incidence angle (positive or negative) proportional with the position in where the ball hit the paddle.

    Still to improve the way balls hit bricks or external walls.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #33
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: Arkanoid

    Simone it is really progressing quickly and nicely, thanks!

    I miss the bricks floating away
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Arkanoid (a more 3D Version)
    By Simone in forum TBGL Arkanoid
    Replies: 11
    Last Post: 17-09-2008, 11:52

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •