Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Ping Pong DX — Gideros Forum

Ping Pong DX

Here is a new game I made over Christmas...



Available on google play...


I need to add more levels, but it's playable. :)
2018-12-21_21-09-51-1080x1920.png
1080 x 1920 - 1M
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
https://deluxepixel.com
+1 -1 (+6 / -0 )Share on Facebook
«1

Comments

  • I can't open it:
    com.giderosmobile.android.player.LuaException: main.lua:562: module 'csv' not found:
    	no field package.preload['csv']
    	no file './csv.lua'
    	no file './csv/init.lua'
    	no file './_LuaPlugins_/csv.lua'
    	no file './_LuaPlugins_/csv/init.lua'
    	no file '/usr/local/share/lua/5.1/csv.lua'
    	no file '/usr/local/share/lua/5.1/csv/init.lua'
    	no file '/usr/local/lib/lua/5.1/csv.lua'
    	no file '/usr/local/lib/lua/5.1/csv/init.lua'
    	no file './csv.so'
    	no file '/usr/local/lib/lua/5.1/csv.so'
    	no file '/usr/local/lib/lua/5.1/loadall.so'
    stack traceback:
    	main.lua:562: in function 'loadLanguage'
    	main.lua:622: in main chunk
    	(luac): in main chunk
    	at LUA.loadLanguage(main.lua:562)
    	at LUA.MAIN_CHUNK(main.lua:622)
    	at LUA.MAIN_CHUNK(luac:1234)

    Likes: SinisterSoft

    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
    +1 -1 (+1 / -0 )Share on Facebook
  • Just uploaded a fix, I forgot to exclude that file from execution! ...

    The new version is 1.22 :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • it feels nice, @SinisterSoft,
    some small comments:
    -on my 5.5inch screen i feel that the bricks are a bit too small and too many.
    -instead of centering, the play area could be on the top so that i can move my fingers below it as on a touchpad. in the current setup i repeatedly accidentally cover the moving brick with my fingers which makes me miss the ball.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks for the feedback. :)

    I was going for the brick size to be the same as Atari's Breakout game, it's 3 more columns than Arkanoid had. On a 6" or tablet they look just about right, but I'll see what my kids say and if they think they are too small I'll redo them.

    I'll make the pad at the bottom an option I think, I'll look into it.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • i think if you can solve the issue of the finger covering the play area, then the size of the bricks could be just fine.
  • I think it will be best as an option:

    Auto (depends on aspect ratio, border size at bottom)
    On (may shrink the play area if no border at bottom)
    Off (in case the are using a joypad or keyboard)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • keszegh said:

    it feels nice, @SinisterSoft,
    -on my 5.5inch screen i feel that the bricks are a bit too small and too many.

    I'd also make all objects bigger in game (ball, pad and everything)
    but that's my personal taste, I don't know what majority of users like
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • @Apollo14 What size screen are you on?

    Likes: Apollo14

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • I've made the it so there are less bricks across the screen, so it scales bigger for everything. It's version 1.24

    I can't make them much bigger than that or there won't be any level variety.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • much better. when level 1 ended it crashed for me, i've sent the error log via google.
  • I'll take a look. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Can't find a crash on either the normal google play console or crashlytics...
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Nice little game. I like it a lot. Its smooth and classic. The colors are nice and the animations are smooth and keep you engaged.
    @SinisterSoft maybe between stages you could give some time to the player to let them know that a stage change is comming so they can get ready.
    Thats all. Looking fwd for the next release.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • Can't find a crash on either the normal google play console or crashlytics...

    hmm, something offered me to send a bug report and i ok'd it. maybe it was lost nevertheless.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • @dreiko65 I want the game to be none-stop, but I know what you mean. I may put something at the top of the screen, like a bonus for how many gold bars they got (if any on screen), etc... (the level can end with gold bricks still on there - the ones that clang and you have to hit them twice)

    @keszegh Can you try it again, it may have been some kind of glitch?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @Apollo14 What size screen are you on?

    my screen is 5.5 inches @1080p
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • @Apollo14 Is the new size better for you? (I made the brick bigger and less of them).. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • @Apollo14 Is the new size better for you? (I made the brick bigger and less of them).. :)

    Now I think it's perfect!
    (personally, if I made pong game, I'd check all top tier pong games, there will be many stuff to learn and adopt from them; I don't know what size is best for most of the audience, but they certainly do)

    Likes: SinisterSoft

    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
    +1 -1 (+1 / -0 )Share on Facebook
  • SinisterSoftSinisterSoft Maintainer
    edited January 2019
    @Apollo14 Thanks :)

    It's just a quick game to get closer to hyper casual from my normal type of game.

    I'm going to add some information overlay type icon to add to those that drop so say what they mean next and add more levels - then release it from Beta to production.

    Likes: Apollo14

    Dislikes: plicatibu

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -1 )Share on Facebook
  • Uploading v1.27, there are a couple more levels and now when you collect a falling item then an icon is shown to let you know what you collected.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • it did not crash this time,
    yet at level change I've died immediately as the one ball which i tried to catch out of three disappeared while the surviving ball was far and close to the bottom already. that's a bit cruel.
  • That's odd, I thought I coded it so the highest ball survives. I'll check it out.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • I think I see what you mean - they were both close to the bottom. I'll rework it so if the are in the bottom half then it's the one closest to the player that survives.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Likes: keszegh

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • @SinisterSoft I've just checked latest Pong DX version
    after finishing level1, app crashed:
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Build fingerprint: 'xiaomi/mido/mido:7.0/NRD90M/V10.1.1.0.NCFMIFI:user/release-keys'
    Revision: '0'
    ABI: 'arm'
    pid: 4319, tid: 4405, name: GLThread 1779  >>> com.sinistersoft.pingpongdx <<<
    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
        r0 00000000  r1 00000000  r2 00001518  r3 ae37a308
        r4 0000001a  r5 00000000  r6 00000000  r7 bea4ef58
        r8 aaaaaaab  r9 ae37a308  sl 0000001a  fp aefaecb4
        ip bf2c010c  sp bea4ef30  lr bf09ba6d  pc bf09bcd0  cpsr 400d0030
     
    backtrace:
        #00 pc 0009ccd0  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so (_ZN19gevent_CallbackList13dispatchEventEiPv+557)
        #01 pc 0009ca6b  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so (_ZN6gevent12EventManager4tickEv+146)
        #02 pc 0019669b  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so
        #03 pc 000115c0  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/liblua.so
        #04 pc 00009eec  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/liblua.so
        #05 pc 00010d20  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/liblua.so
        #06 pc 0000a2c0  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/liblua.so
        #07 pc 0000a234  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/liblua.so (lua_pcall+312)
        #08 pc 0014d4b1  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so (lua_pcall_traceback+132)
        #09 pc 001958a7  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so (_ZN14LuaApplication10enterFrameEP7GStatus+142)
        #10 pc 000979a1  /data/app/com.sinistersoft.pingpongdx-2/lib/arm/libgideros.so (_ZN18ApplicationManager9drawFrameEv+144)
        #11 pc 009b59fd  /data/app/com.sinistersoft.pingpongdx-2/oat/arm/base.odex (offset 0x99d000)</pre>
    > Newcomers roadmap: from where to start learning Gideros
    "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
    “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
  • I'm not sure why this happened, crashlytics didn't report anything - all that's there are 3 crashes that are now fixed (from a few days ago). Maybe @hgy29 knows what that report means?

    2019-01-13_04-28-42.png
    1291 x 832 - 64K
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • hgy29hgy29 Maintainer
    I can vaguely tell you that the crash was caused by a corrupt event structure which gideros tried to process. Hard to say which part of gideros produced that event though. My guess is that it is a threading issue somehow, gideros was probably trying to process an already released structure or some kind of memory corruption occured
  • So he was just unlucky. :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • MoKaLuxMoKaLux Member
    edited March 2019
    hello there gideros people, I am restarting from scratch learning gideros and lua. I did the basic tutorials and now I am at the stage of "making" a brick game and I have a question please.
    I build the level in 2 parts like so:
    A
    level = {}
    for l = 1, 6 do
       level[l] = {}
       for c = 1, 15 do
          level[l][c] = 1
       end
    end
    B
    local bx, by = 0, 0
    for l = 1, 6 do
       bx = 0
       for c = 1, 15 do
          if level[l][c] == 1 then
             local r = Pixel.new(0x00ff00, 0.75, brickwidth, brickheight)
             r:setAnchorPoint(0.5, 0.5)
             r:setPosition(bx, by)
             stage:addChild(r)
          end
          bx = bx + brickwidth
       end
       by = by + brickheight
    end

    Then in the game loop (ENTERFRAME) I check the collision like so:
    -- BRICK COLLISION
    local c = math.floor(myball:getX() / brickwidth) + 1
    local l = math.floor(myball:getY() / brickheight) + 1
    if c >= 1 and c <= 15 and l >= 1 and l <= #level then
       if level[l][c] == 1 then
          ballspeedy = - ballspeedy
          level[l][c] = 0
          deleteBrick(l, c)
       end
    end</pre>
    My question is how do I remove the brick from the stage?
    I would like to remove the brick which is at level[l][c] directly. Is it possible to do something like table.removeChildAt(level[l][c])?

    I don't want to use external code yet, I want to use only gideros classes for now.

    Thank you for your help.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Sign In or Register to comment.