Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Nick on November 30, 2011, 12:17:28 pm

Title: Bomberman
Post by: Nick on November 30, 2011, 12:17:28 pm
Hello

i wanted to start something new, and my idea was a bomberman game for the Nspire, or is there already one?

i made a fast drawing of what it might look like, it's totally doable, so it's not a kind of visionary effect that would never be able succeed :)
Title: Re: Bomberman
Post by: Yeong on November 30, 2011, 12:18:09 pm
XD
You're always making/starting wonderous lua project XD
That looks nice already!
Title: Re: Bomberman
Post by: Hayleia on November 30, 2011, 12:21:55 pm
O.O
Same as TBridgedO_Yeong said :P

I hope you do it, that would be awesome !

([offtopic] we both have +52 respect [/offtopic])

edit: :ninja:
Title: Re: Bomberman
Post by: Nick on November 30, 2011, 12:21:57 pm
thanks :) i love lua, since it's on the pc, and it is still understanable (not like asm)

and you nearly ninja'd me on my own new topic xp it was like 41 seconds :w00t:

and nice about the respect points, didn't notice that :)
aaaaah, noooooo  :ninja: :)
Title: Re: Bomberman
Post by: Jim Bauwens on November 30, 2011, 02:41:31 pm
I already have some code done for Bomberman.
The map engine and player moving works (smooth scrolling). But it is quite some work if you want to get everything working with ai and all.
You may try to make it as I'm not actively busy on it :)
Title: Re: Bomberman
Post by: Nick on November 30, 2011, 03:34:12 pm
do you have collision detection yet? i have it, but the man steps block per block, and not per pixel, for ease of collisiondetection and speed, mostly because of the last one, because pixel per pixel is sooooooo slow xs

I you don't mind, i would use it as my entry for the cemetech contest #8, hopefully they accept nspire games, as they said the judges don't have nspires, but i'll try it...

so please don't post your code (or something else) jimbauwens, as i want to do this completely in order to the rules :) and i don't know if they would accept it if they might think i used your code xp
Title: Re: Bomberman
Post by: Jim Bauwens on November 30, 2011, 05:35:01 pm
Yeah, I got collision detection :)

Good luck with the contest, and who knows I might even be your judge ;)
Title: Re: Bomberman
Post by: Nick on November 30, 2011, 05:43:25 pm
are you one of the judges? brr, i'm already getting scared
Title: Re: Bomberman
Post by: epic7 on November 30, 2011, 07:34:35 pm
I think I remember you mentioning this in irc.

Also, I really thought you made call of duty :P/me lost
Title: Re: Bomberman
Post by: Nick on November 30, 2011, 07:38:50 pm
me or jim?
well, if i would have made that, it would be sooo awesome :) nice try xp
Title: Re: Bomberman
Post by: Yeong on November 30, 2011, 07:39:38 pm
me or jim?
well, if i would have made that, it would be sooo awesome :) nice try xp
Yeah!
It'll have everything!....except.....speed.....D:
Title: Re: Bomberman
Post by: epic7 on November 30, 2011, 07:40:40 pm
Lua slow?
Title: Re: Bomberman
Post by: Nick on November 30, 2011, 07:41:14 pm
for call of duty it is slow yes xp

--edit--
and for other programs as well, you just have to make it look fast by making things move another way (e.g.not by pixel)
Title: Re: Bomberman
Post by: epic7 on November 30, 2011, 08:44:56 pm
Is there a speed gain for using less color?
Title: Re: Bomberman
Post by: Deep Toaster on November 30, 2011, 08:48:22 pm
Wow, you click to make the character move? That's amazing :D
Title: Re: Bomberman
Post by: Nick on December 01, 2011, 02:51:59 am
that was just to activate the emulator, not to move him :(
Title: Re: Bomberman
Post by: Chockosta on December 01, 2011, 01:53:13 pm
for call of duty it is slow yes xp

--edit--
and for other programs as well, you just have to make it look fast by making things move another way (e.g.not by pixel)

I don't think that Lua is slow. It is actually quite fast, but the key input really sucks...

Anyway, wow, another great game !
Do you get paid for making them ? :P
Title: Re: Bomberman
Post by: Hayleia on December 01, 2011, 01:54:51 pm
Do you get paid for making them ? :P
Don't give him bad ideas :P
Moreover, His games are so good that I am I'd pay for them.
But shhhhhh...
Title: Re: Bomberman
Post by: Nick on December 01, 2011, 01:59:09 pm
hehe, thanks :) donations can be sent to .. xp no, i just love it :)
and imo my games aren't that good, they miss that little bit of an extra, but i don't really know how to put it into games, you understand? but, anyway, thanks xp
Title: Re: Bomberman
Post by: Jim Bauwens on December 02, 2011, 05:41:57 am
Here is a screenshot of what I was trying:
Ask you can see there were still some problems with the collision detection.
Well, I don't think I'm going to continue it, so good luck with yours :)
Title: Re: Bomberman
Post by: Nick on December 02, 2011, 06:42:41 am
that's why i make it move per block, that makes the collosiondetection very simple, just look at the table value next to it, and you know if it can move or not.
but it looks really nice, especially the floor :) it gives some dimension to the game, and i like that kind of 3D effect :) we could work on it together...
Title: Re: Bomberman
Post by: aeTIos on December 02, 2011, 06:44:36 am
Looks great jim!
Title: Re: Bomberman
Post by: Jim Bauwens on December 02, 2011, 08:52:08 am
Well, I'm not really planning on continuing it. Also, that was a couple of month ago and I think I would be able to do the collision detection right now.
Anyway, got other projects to finish (EEPro, Blockbreaker).
Title: Re: Bomberman
Post by: aeTIos on December 02, 2011, 09:40:55 am
Blockbreaker lua? Sounds cool.
Title: Re: Bomberman
Post by: Nick on December 11, 2011, 05:42:43 am
So here is a new screenshot of the new development of bomberman, 3D, explosions work, no moving yet, but that will come !

if someone has better sprites than in the first screenie, please tell me where to find them, i was thinking of a minecraft character, because they're simple, but famous :)

(http://img.removedfromgame.com/imgs/0-Bomberman3D.gif)
Title: Re: Bomberman
Post by: Levak on December 11, 2011, 06:59:36 am
how the hell ...
Title: Re: Bomberman
Post by: Stefan Bauwens on December 11, 2011, 07:22:25 am
Here is a screenshot of what I was trying:
Ask you can see there were still some problems with the collision detection.
Well, I don't think I'm going to continue it, so good luck with yours :)
You forgot to say that the sprites were of Bomberdude 68k.

So here is a new screenshot of the new development of bomberman, 3D, explosions work, no moving yet, but that will come !

if someone has better sprites than in the first screenie, please tell me where to find them, i was thinking of a minecraft character, because they're simple, but famous :)

(http://img.removedfromgame.com/imgs/0-Bomberman3D.gif)
Looks nice. Minecraft player sounds fine to me. :)
Title: Re: Bomberman
Post by: Adriweb on December 11, 2011, 08:03:01 am
Nick, this is awesome.

And As I see all your projects you're doing, I really want you to share with us your Time Turner (http://harrypotter.wikia.com/wiki/Time-Turner) (that Hermione uses to attend multiple classes at the same time)... because I have no idea otherwise how you manage to have time to do all these O_O
Title: Re: Bomberman
Post by: Jim Bauwens on December 11, 2011, 10:44:46 am
That just looks incredible :)

Edit: you should post it in your thread on Cemetech, just because I want to see how Kerm will respond to the coolness of this. (For him, Lua isn't such a capable language)
Title: Re: Bomberman
Post by: Nick on December 11, 2011, 10:55:37 am
well, adriweb, i would love to share it, but i forgot to take it back to today, since i went to yesterday this morning, and i forgot it there xs
Title: Re: Bomberman
Post by: AzNg0d1030 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:
Title: Re: Bomberman
Post by: DJ Omnimaga 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 :)
Title: Re: Bomberman
Post by: yunhua98 on December 20, 2011, 06:06:08 pm
O.O/me wants
Nspire CX really is the future of calc programming, huh?
Title: Re: Bomberman
Post by: DJ Omnimaga on December 20, 2011, 06:16:16 pm
It depends if the Prizm picks up and if TI tries to block Ndless again.
Title: Re: Bomberman
Post by: Nick 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 (https://sites.google.com/site/stonesetproductions/ti-nspire/games/speedx3d) you can see the maximum speed of it, but that's really the limit, it's very restricted.
Title: Re: Bomberman
Post by: DJ Omnimaga 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?
Title: Re: Bomberman
Post by: Jim Bauwens 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 :)
Title: Re: Bomberman
Post by: Nick 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
Title: Re: Bomberman
Post by: Jim Bauwens 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)
Title: Re: Bomberman
Post by: Nick 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
Title: Re: Bomberman
Post by: Jim Bauwens 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)
Title: Re: Bomberman
Post by: Nick 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?
Title: Re: Bomberman
Post by: Jim Bauwens 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() ?
Title: Re: Bomberman
Post by: Nick 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
Title: Re: Bomberman
Post by: Jim Bauwens 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
Title: Re: Bomberman
Post by: Adriweb on December 21, 2011, 04:49:54 am
Can you post Bomberman's code to GitHub  ?
Title: Re: Bomberman
Post by: Jim Bauwens on December 21, 2011, 04:50:53 am
He can't, as its for the contest on Cemetech (against the rules).
Title: Re: Bomberman
Post by: Adriweb on December 21, 2011, 05:02:37 am
Ahh, ok :D
Title: Re: Bomberman
Post by: Nick on December 21, 2011, 05:05:28 am
this one is secret, and it'll be until the end of the election [evil]mhuhahahahaha[/evil]

so keep on dreaming of it :)
Title: Re: Bomberman
Post by: AzNg0d1030 on April 28, 2012, 10:24:29 pm
Are you still working on this project Nick?