CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: LD Studios on November 20, 2015, 11:16:43 PM

Title: [TI-Nspire] [lua] Pac-Attack!
Post by: LD Studios on November 20, 2015, 11:16:43 PM
Pac - Attack combines elements of Pacman and Tetris for a unique experience!

(http://img.codewalr.us/pacattack.png) (http://i.imgur.com/MrbnQ6S.gif)

Controls:
Left / 4: Move block left
Right / 6: Move block right
Up / 8: Rotate block
Down / 5 / 2: Speed up time
Enter / Escape: Pause

You will unlock new ghosts/backdrops by getting higher scores.
Score 500 in Normal to unlock Hard.

Compatible with OS 3.1+, Tested on OS 3.6, 4.0

https://codewalr.us/index.php?topic=867.0
Title: Re: [lua] Pac-Attack!
Post by: semiprocoder on November 20, 2015, 11:29:17 PM
Really cool game! Although I've never played this before, I think I get the point. How do you delete wood though? Also upon me losing and pressing an arrow key I had a crash on line 224. You probably reset the var map but didn't update states yet or something, I'm not sure, but anyways, just reporting this.
EDIT: after a few more tries I have experienced this issue once again, but it didn't happen upon me losing, it just happened randomly when I moved left once too far, although it usually does not crash. It was the same line of code though, and as before it is probably passed not in bounds of map array.
Title: Re: Pac-Attack!
Post by: LD Studios on November 20, 2015, 11:35:36 PM
Quote from: semiprocoder on November 20, 2015, 11:29:17 PM
Really cool game! Although I've never played this before, I think I get the point. How do you delete wood though? Also upon me losing and pressing an arrow key I had a crash on line 224. You probably reset the var map but didn't update states yet or something, I'm not sure, but anyways, just reporting this.
Strange, I don't get this crash...
To delete wood, fill up an entire row, and it will collapse (much like in standard tetris)
Title: Re: Pac-Attack!
Post by: alexgt on November 21, 2015, 02:30:16 AM
O.O looks wonderful, great concept ;)
Title: Re: Pac-Attack!
Post by: Dream of Omnimaga on November 21, 2015, 06:35:32 AM
Looks really nice and fun. I wonder how do you delete ghosts but I guess I'll have to play it to figure out. :P This is also now on the front page. :)
Title: Re: Pac-Attack!
Post by: LD Studios on November 21, 2015, 12:15:47 PM
Quote from: DJ Omnimaga on November 21, 2015, 06:35:32 AM
Looks really nice and fun. I wonder how do you delete ghosts but I guess I'll have to play it to figure out. :P This is also now on the front page. :)
Thanks, and as you can see in the screenshot, ghosts are eliminated by dropping pacmen on them
Title: Re: [TI-Nspire] [lua] Pac-Attack!
Post by: semiprocoder on November 22, 2015, 02:16:29 AM
I know I shouldn't be asking it here, but how do you record gifs of nspire gameplay?
Title: Re: Pac-Attack!
Post by: LD Studios on November 22, 2015, 03:11:40 AM
Quote from: semiprocoder on November 22, 2015, 02:16:29 AM
I know I shouldn't be asking it here, but how do you record gifs of nspire gameplay?
There's nothing built in to do it, you need to use external screen recording software while running the nspire program on Student Software or some other emulator.
Title: Re: [TI-Nspire] [lua] Pac-Attack!
Post by: 123outerme on November 22, 2015, 03:16:27 AM
Look great LD Studios! I can see you either watched the Game Grumps episode of this or really enjoy Tetris spin-offs :P
Although I can't play it, makes me long for an Nspire!
Title: Re: Pac-Attack!
Post by: Dream of Omnimaga on November 22, 2015, 06:04:06 AM
Quote from: LD Studios on November 21, 2015, 12:15:47 PM
Quote from: DJ Omnimaga on November 21, 2015, 06:35:32 AM
Looks really nice and fun. I wonder how do you delete ghosts but I guess I'll have to play it to figure out. :P This is also now on the front page. :)
Thanks, and as you can see in the screenshot, ghosts are eliminated by dropping pacmen on them
Yeah I know but I was more wondering how you turned the ghosts blue.


Quote from: semiprocoder on November 22, 2015, 02:16:29 AM
I know I shouldn't be asking it here, but how do you record gifs of nspire gameplay?
My favorite way to record Nspire screenshots is Camstudio. Then I use VirtualDub to convert the result to GIF.



EDIT: By the way @LD Studios I edited your first post so that it uses a static screenshot that goes to the original when clicked, because I noticed it was 21 MB large. O.O Ideally it's better to link to screenshots when they are large.
Title: Re: Pac-Attack!
Post by: LD Studios on November 22, 2015, 02:49:38 PM
Quote from: 123outerme on November 22, 2015, 03:16:27 AM
Look great LD Studios! I can see you either watched the Game Grumps episode of this or really enjoy Tetris spin-offs :P
Although I can't play it, makes me long for an Nspire!
Or I had Pac-Man collection on GBA :P

Quote from: DJ Omnimaga on November 22, 2015, 06:04:06 AM
Yeah I know but I was more wondering how you turned the ghosts blue.
They automatically turn blue when a pacman spawns

Quote from: DJ Omnimaga on November 22, 2015, 06:04:06 AM
EDIT: By the way @LD Studios I edited your first post so that it uses a static screenshot that goes to the original when clicked, because I noticed it was 21 MB large. O.O Ideally it's better to link to screenshots when they are large.
Okay, not a problem
Title: Re: Pac-Attack!
Post by: alexgt on November 22, 2015, 03:00:33 PM
Quote from: semiprocoder on November 22, 2015, 02:16:29 AM
I know I shouldn't be asking it here, but how do you record gifs of nspire gameplay?
I use OBS and convert it with any converter :)
Title: Re: [TI-Nspire] [lua] Pac-Attack!
Post by: Snektron on November 22, 2015, 10:58:40 PM
Looksgood :) Nicejob, LD
Title: Re: Pac-Attack!
Post by: Dream of Omnimaga on November 22, 2015, 11:12:34 PM
Does Pac Man spawn automatically, randomly or by doing some stuff in particular?
Title: Re: Pac-Attack!
Post by: LD Studios on November 22, 2015, 11:22:30 PM
Quote from: DJ Omnimaga on November 22, 2015, 11:12:34 PM
Does Pac Man spawn automatically, randomly or by doing some stuff in particular?
Every eighth drop is a pacman
Title: Re: Pac-Attack!
Post by: Dream of Omnimaga on November 23, 2015, 04:26:52 AM
Ok thanks for the info. I thought we had to meet some criterias, like how in Tetris you need to fill a line to clear it and how in Bejeweled you need to align 3 jewels of the same color together to clear them.


Off-topic: Is there a Bejeweled game for the Nspire? :P