Magic Lantern Forum

Developing Magic Lantern => Modules Development => Topic started by: pravdomil on August 23, 2013, 02:28:12 PM

Title: DSLR Arkanoid (arkanoid.mo)
Post by: pravdomil on August 23, 2013, 02:28:12 PM
The second game for ML is called DSLR Arkanoid
Try it in LiveView!

(https://bitbucket.org/pravdomil/ml/downloads/arkanoid_logo.png)

(https://bitbucket.org/pravdomil/ml/downloads/arkanoid_game2.png)

Download (https://builds.magiclantern.fm/) Source (https://bitbucket.org/hudson/magic-lantern/src/eb960b67af34330623eb350bb1895dcae7623d0b/modules/arkanoid)  Buy me a beer  :) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BCL2X3AFQBAP2&item_name=DSLR%20Beer)
Title: Re: DSLR Arkanoid
Post by: Marsu42 on August 23, 2013, 05:56:06 PM
Opinions might be divided how useful this is, but personally I really love it and it takes the serious edge off ml and puts it in the enthusiast domain where it belongs - though I'd have went for pong as the real classic :-) ... can I please request a gameboy color emulator?
Title: Re: DSLR Arkanoid
Post by: ted ramasola on August 23, 2013, 05:59:10 PM
I would also like to request, tetris.
Title: Re: DSLR Arkanoid
Post by: John Kesl on August 23, 2013, 08:10:38 PM
Hesky. Umelec ste.
Ciao
Title: Re: DSLR Arkanoid
Post by: pravdomil on August 23, 2013, 08:23:41 PM
Díky
Title: Re: DSLR Arkanoid
Post by: primeone on August 26, 2013, 04:48:16 PM
How about one of those puzzles where you split a picture into 9 sections, randomize them and then have to rearrange them.
Title: Re: DSLR Arkanoid
Post by: tron on August 26, 2013, 04:50:31 PM
hello, how about solitaire ?  ;D
Title: Re: DSLR Arkanoid
Post by: dlrpgmsvc on August 26, 2013, 07:21:00 PM
Space Invaders is a MUST ! Vote vote vote !  8)
Title: Re: DSLR Arkanoid
Post by: tron on August 26, 2013, 08:25:52 PM
Quote from: dlrpgmsvc on August 26, 2013, 07:21:00 PM
Space Invaders is a MUST ! Vote vote vote !  8)
+1  Even better ;D   
Title: Re: DSLR Arkanoid
Post by: Marsu42 on August 26, 2013, 10:47:17 PM
Quote from: dlrpgmsvc on August 26, 2013, 07:21:00 PM
Space Invaders is a MUST ! Vote vote vote !  8)

Another +1 ... while Arkanoid is nice as a traditional arcade game, Space Invaders might be actually fun :-)
Title: Re: DSLR Arkanoid
Post by: tron on August 26, 2013, 10:48:49 PM
We just have to agree on the specific buttons to use for left, right and fire (maybe depending on the camera model)  ;D
Title: Re: DSLR Arkanoid
Post by: ItsMeLenny on August 27, 2013, 04:02:43 AM
Can you port Quake 2 engine please.
I will come back tomorrow to see if you have done.
Title: Re: DSLR Arkanoid
Post by: Audionut on August 27, 2013, 04:53:03 AM
Quote from: ItsMeLenny on August 27, 2013, 04:02:43 AM
I will come back tomorrow to see if you have done.

Why tomorrow, why not check back in ten minutes or so!
Title: Re: DSLR Arkanoid
Post by: ItsMeLenny on August 28, 2013, 09:02:42 AM
Quote from: Audionut on August 27, 2013, 04:53:03 AM
Why tomorrow, why not check back in ten minutes or so!

Ok, I giff 10 minute. Where iss I ask?
I'll sue you for lieing.
Title: Re: DSLR Arkanoid
Post by: kazeone on September 17, 2013, 10:02:20 PM
hi you say this is the second game, what was the first? Im just curious and by the way fun to play when you have down time lol. :)
Title: Re: DSLR Arkanoid
Post by: gotar on September 17, 2013, 11:17:59 PM
Sokoban?
Title: Re: DSLR Arkanoid
Post by: kazeone on September 18, 2013, 09:02:28 AM
Quote from: gotar on September 17, 2013, 11:17:59 PM
Sokoban?

oh? well that must have been awkward to play on the camera lol. Fingers crossed one day we will have tetris ^_^
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: seven on November 05, 2013, 10:08:05 PM
hi, i am new to this forum :=) can we please get back sokoban? thx
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: melote1969 on February 25, 2014, 11:24:42 PM
hola, soy un re novato en pañales, quisiera saber como activo los archivos .mo para utilizarlos en mi camara (canon 1100d), les agradezco.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: ted ramasola on February 26, 2014, 12:45:21 AM
Can we a add a score system and that scores be saved till the next highest score will over write it.

Saved scores will give us bragging rights.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: a1ex on March 16, 2014, 05:12:41 PM
Have some fun:

https://bitbucket.org/hudson/magic-lantern/pull-request/444/arkanoid-improvements/diff
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: lizard™ on October 09, 2018, 05:49:03 PM
I love this game but starting level 4 it got a bit buggy. When I'd press the arrow keys it would move only a tiny bit and then stop. It won't go away until I restart the camera, then the issue would re-appear shortly after. Once in level 5 even a restart doesn't help anymore. See the video, I'm always keeping the button pressed and not letting go unless I hit the other button.

(https://i.postimg.cc/wjzFBydW/arkanoid.gif)

I know using the main dial or the top dial is an option too, but have you ever tried to play with that? It's near impossible. Camera is a EOS 70D.
A really cool idea would be to be able to use the touchscreen. Maybe just touching the right side of the LCD "emulates" the right key, and the left side the left key.

Edit: After leaving the camera on for a bit but not doing anything on it, it was working again int he same level. However after 1-2 minutes of playing (same level still) the lag appeared again, making it impossible to continue playing.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: ilia3101 on October 09, 2018, 08:40:27 PM
Your camera's windows must have a virus, I've played through the whole game with no problem.

EDIT: sorry that's an exaggeration, but I have actually played through about half of the game with no issues.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: Kharak on October 10, 2018, 10:29:38 AM
Did you purchase the DLC that allows Full Control?

And arguably you might wanna buy the DLC for extra levels and powerups.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: a1ex on October 10, 2018, 12:07:24 PM
Guys, have you actually played this game before trolling? It's a valid bug report (I've just played and confirmed it on 5D2).

After looking at the source to see how it might happen, I believe the global last_key will stop the motion on any unrecognized button event, including internal GUI events that are not button presses, but are handled by Canon code in the same way.

To see the GUI events sent by Canon code when pressing various buttons: Debug -> Show GUI events. Maybe the arrow key events are - possibly in certain conditions - followed by some other events.

Fixing this (or at least trying to debug it) could be a fun low-hanging fruit for beginners.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: Kharak on October 10, 2018, 04:31:05 PM
Sorry, it was just for some fun.

Dont have a 5d2 anymore.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: a1ex on October 10, 2018, 04:51:20 PM
Pretty sure the bug can be reproduced on any other camera that runs ML, if you follow OP's instructions (i.e. play until level 4). 70D and 5D2 are pretty much opposite (5D2 is one of the earlier DIGIC 4 models, 70D is a recent DIGIC 5), so it's reasonable to assume most other models will behave in the same way.

I've barely reached level 3 and encountered that bug a couple of times.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: Audionut on October 14, 2018, 11:58:41 AM
On 6D, I triggered the bug in level one with the SET key.  Reset cam, played to level 5 without bug.
Deleted the arkanoid config file, restarted, could not trigger bug.
Title: Re: DSLR Arkanoid (arkanoid.mo)
Post by: lizard™ on October 27, 2018, 11:57:36 AM
Quote from: a1ex on October 10, 2018, 04:51:20 PM
Pretty sure the bug can be reproduced on any other camera that runs ML, if you follow OP's instructions (i.e. play until level 4). 70D and 5D2 are pretty much opposite (5D2 is one of the earlier DIGIC 4 models, 70D is a recent DIGIC 5), so it's reasonable to assume most other models will behave in the same way.

I've barely reached level 3 and encountered that bug a couple of times.

Looking at the source, `arkanoid_keypress` seems to be the function of interest here. A wild idea: Does there only exist the `CBR_KEYPRESS` function which, I'm guessing calls `arkanoid_keypress` on every keypress, or is there also something that registers KEYUP and KEYDOWN events?

An idea of mine would be to start moving on a keydown event and move until a corresponding keyup event is registered.