Author Topic: Bomberman  (Read 16055 times)

0 Members and 1 Guest are viewing this topic.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Bomberman
« Reply #30 on: December 11, 2011, 10:08:54 pm »
Holy mother of heck=Nick Steen...

 O.O

Daaaiiiiiiimmmmnnnnn


I want to try this!!!
If you want a tester  hehehehehe....  >:D >:D :devil:
You just lost the game.



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bomberman
« Reply #31 on: December 20, 2011, 05:36:20 pm »
This looks awesome, but one suggestion would be to make the explosions look like actual explosions rather than squares/cubes.  Glad to see new games from you :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Bomberman
« Reply #32 on: December 20, 2011, 06:06:08 pm »
O.O
* yunhua98 wants
Nspire CX really is the future of calc programming, huh?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bomberman
« Reply #33 on: December 20, 2011, 06:16:16 pm »
It depends if the Prizm picks up and if TI tries to block Ndless again.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Bomberman
« Reply #34 on: December 20, 2011, 06:19:20 pm »
and if the lua speeds up.. we could make wonderfull things with it, but the speed is the biggest problem i encounter
here you can see the maximum speed of it, but that's really the limit, it's very restricted.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bomberman
« Reply #35 on: December 20, 2011, 10:25:36 pm »
Yeah true, although even at highest speed we would still have no gbc emu from Lua. Also that looks nice. Is that real 3D or pseudo-3D?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Bomberman
« Reply #36 on: December 21, 2011, 01:46:27 am »
I don't know if the speed of the intepretion in general will be faster, but TI is/has been optimizing certain graphical parts. (which will speed up drawing).
Believe me or not, TI is doing their best to improve :)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Bomberman
« Reply #37 on: December 21, 2011, 01:56:42 am »
i don't think it's really the graphics, that will make a lot good, but especially the key inputs, those are really toooo slow..

but i can believe that tehy'll do what they can, so respect :)
i think it's already very nice we got LUA, so in fact we have nothing to blame them :)

@DJ_O, that's real 3D, it uses tiny3D.. but it's not far enough finished so i don't start a topic yet, maybe i will later if i encounter problems
« Last Edit: December 21, 2011, 01:57:44 am by Nick »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Bomberman
« Reply #38 on: December 21, 2011, 02:47:41 am »
I have an idea for your game:
Use on.mouseMove(x) as (extra) control. Just use the x coordinate to move. (so you can swipe to move left/right).
Don't forget to hide the mouse :)

(this is faster than key presses I think)
« Last Edit: December 21, 2011, 02:48:15 am by jimbauwens »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Bomberman
« Reply #39 on: December 21, 2011, 02:51:07 am »
sounds interesting, it will surely be faster, thanks for that!

added! it works great, but when i do cursor.hide() the cursor is set to the middle again, and so the values are being reset and i can't correctly trace the direction anymore
here's my code:
Code: [Select]
function on.mouseMove(x,y)
hor = x - xmouse
vert = y - ymouse
if hor<0 then
on.arrowKey('left')
elseif hor>0 then
on.arrowKey('right')
end
if vert<0 then
on.arrowKey('up')
elseif vert>0 then
on.arrowKey('down')
end
setMouse(x,y)
end

function setMouse(x,y)
xmouse = x
ymouse = y
end

and it's quite hard to make it move in the correct direction with that 3D xs not for the coding, but when playing it
« Last Edit: December 21, 2011, 03:06:08 am by Nick »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Bomberman
« Reply #40 on: December 21, 2011, 03:17:35 am »
Hmm, what if you do cursor.hide() at the beginning? (say, in on.create)
If that doesn't work, maybe you just can set another cursor that you basically don't see.

Also, you should localize the values hor and vert :) (just good practice)
« Last Edit: December 21, 2011, 03:18:42 am by jimbauwens »

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Bomberman
« Reply #41 on: December 21, 2011, 03:33:12 am »
well, they are local because i don't declare them at the beginning, or isn't that true? do i have to put local before them?

oh and how can i make such a 'custom' cursor?
« Last Edit: December 21, 2011, 03:33:29 am by Nick »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Bomberman
« Reply #42 on: December 21, 2011, 03:53:12 am »
Well, if you don't put "local" before them they are global ;)
I don't mean a 'custom' cursor, but a cursor such as a crosshair or something else.
Anyway, did you try to take the cursor.hide out of the loop and put it in on.create() ?

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Bomberman
« Reply #43 on: December 21, 2011, 04:14:47 am »
ok, i changed some things so it's more acurate, like this:
Code: [Select]
if hor<-5 and math.abs(hor)>=2*math.abs(vert) then so it only moves if you really move the cursor, not if your hand is laying on the touchpad and is moving a tiny tiny bit.

also, sometimes you have that the cursor is on the edge of the screen (and you can't move anymore to towards that edge), so is there a way to reset the cursor back to the middle? i've tried cursor.hide() cursor.show() but then sometimes it doen'st reappear again xs

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Bomberman
« Reply #44 on: December 21, 2011, 04:33:46 am »
Well, I don't think you can reset it easy.
You just should try to code it as good as possible with what you got :P