PDA

View Full Version : [SCRIPT] NokiX game "Pills"



courtjester199
21-08-2005, 11:08 AM
Hi

"Pills" is my first game ever, and I want to share it with you :smile:
It's a clone of the well known game called Dr.Mario. The object of the game is to destroy the viruses displayed at the begin of the level. Viruses can be either white, grey or black. If you manage to create a row of 4 blocks (or more) from the same color vertically, these blocks are destroyed.
There are 50 levels created by random, so you'll never get bored ;)

download (www.pietscher.com/docs/NokiX/pills.rar) (v1.10)
I hope you enjoy this one!!!

edit:
If you find any bugs, post in this thread!
A "top score" option will be included as soon as possible.

@YAK:
Thanks again for this awesome tool NokiX and for sharing all the source codes !!!

.

spaceimpact33
21-08-2005, 12:02 PM
Very nice game there indeed. The list of nokix games just keeps getting bigger :D keep it up. :-o

joci2000
21-08-2005, 02:23 PM
Nice game,

Thank you very much ;)

rezpekt
21-08-2005, 02:23 PM
Any pictures or screenshots?

joci2000
21-08-2005, 02:36 PM
here are some:

lejcyn86
22-08-2005, 12:40 AM
Hello :)

Its very nice game, good job! :)

So when we surprised with tetris ?:)

sorry for my english ;p

ema2000
22-08-2005, 01:13 AM
wooooooooow :O
keep the good work :D

Daryl Saludares
22-08-2005, 03:03 AM
nice game...
now i have "lines"_"stones"_"breaker"_"O & X"_"race" and the latest "pills" not to mention snake, space impact, bantumi and pairs.

thank you for sharing this new game mr. courtjester199 :lol:

courtjester199
22-08-2005, 05:36 PM
Thank you guys! :-)

I made some bugfixes and hope it works fine now.

@ lejcyn86:
Coding Tetris should be no big deal. But I think someone is already working on it.
That's why I decided to code "pills" ;)

lejcyn86
22-08-2005, 10:17 PM
courtjester199

Are you already think about some new games ?
Somethink like race :) -> nice game but she restart handy :|

courtjester199 - respect 4 new game :)

I hope she isn't the first and the last one :|

NokDoc
23-08-2005, 03:48 PM
Hi,

Cool there's still dct3 developers around.

Thanks Mr. Courtjester199.

(Spass da sind noch immer dct3 entwickler dort)

(Danke Hr. 0.314) ;)

NokDoc

courtjester199
23-08-2005, 10:30 PM
New feature for version 1.05:
Now you can choose from menu how many viruses appear in the first level.

@NokDoc ;)

jacol_85
25-08-2005, 09:23 PM
i think that i found a bug. i play with lights on and when i exit pils the lights wouldn't off.

sorry for my english;)

courtjester199
26-08-2005, 08:24 AM
@ jacol_85
Try new version 1.06

jacol_85
26-08-2005, 09:50 AM
courtjester199, great i think version 1.06 fix this bug.

now we are waiting for version with highscores:)

courtjester199
31-08-2005, 11:12 AM
Yesterday I noticed two little bugs -> fixed in v1.07
...highscores doesn't work well yet

I won't be coding for the next week as I'm on holiday :) :) :)

courtjester199
09-09-2005, 06:41 PM
New for version 1.10

- highscore
- extra points if you delete two, three or more rows at once

jacol_85
10-09-2005, 08:32 AM
Well done courtjester199, i'll try it today :-D

AloyNokia
16-09-2005, 12:10 AM
hi
i downloaded ur games,but i cant extract it,pls help me!!!!!(I using winrar and powerzip)

courtjester199
16-09-2005, 04:00 PM
hi
i downloaded ur games,but i cant extract it,pls help me!!!!!(I using winrar and powerzip)

latest version of WinRAR ?

Daryl Saludares
17-09-2005, 04:47 AM
with the latest Pills update, i enjoyed playing the game mostly in my free time, thank you mr. courtjester199... i like the way you make the script and its features "Pills" can you do more game scripts please good luck,,,, :)

AloyNokia
17-09-2005, 07:07 AM
i using winrar 3.00.I try latest version of WinRAR later.

AloyNokia
17-09-2005, 09:06 AM
A message shows"C:\WINDOWS\Desktop\16092005\pills.rar: Unexpected end of archive".Can u pls zip with with winzip????pls..............i want try u games,ok?

courtjester199
17-09-2005, 04:20 PM
pills.nrx (http://www.pietscher.com/docs/NokiX/pills.nrx)
pills_ppm.txt (http://www.pietscher.com/docs/NokiX/pills_ppm.txt)

@ Daryl Saludares
I'm already working on a new game. Something totally different ! :-D

AloyNokia
18-09-2005, 01:27 AM
Thank you buddy
keep working,we alway support you............

nuukiaworld
29-10-2005, 07:10 PM
If you find any bugs, post in this thread!On my 6110 Pills works perfectly but... if I press 5 (rotate) when the pill is at its topmost position (just appeared on the display), the phone usually restarts or switches itself off. (Last weekend I had slightly different patches and the same bug appeared differently: the game halted when trying to rotate a pill at the top of the display. Usually it continued by pressing 8, i.e. dropping the pill.)

Could the pill go partly outside the top edge of the display memory when rotating? Or something similar?

My common-law-wife is waiting eagerly for a solution... (She prefer playing with my phone to her own DCT-4 ones just because of "Pills". :grin: )

LoMaster
03-11-2005, 10:48 AM
1. Thanx for this good game!

2. A bug?

If you play Pills and exit from it with the "C" key, there is a "Continue" option (as it should be). But if you exit also the game's menu, then, when you come back, NO "Continue" option appears, only "New game".

nuukiaworld
03-11-2005, 06:30 PM
I coded a small patch for Pills 1.10 that prevents crashing when rotaing a pill at the top of the display. [The behaviour (reboot/hang/delay/nothing) of the bug depends on the phone firmware / patch configuration, so the game may seem to work properly even without this patch...]

Add the following lines to pills.nrx before /* #object <game.x> */:

/* prevent drawing pixels outside the display!! */
code=x2c(B500292FD900BD00F7FFFFFEE7FB46C0)
create "code"; draw_pixel_o_1=rc /* .text */
draw_pixel=locate("draw_pixel")
setbl draw_pixel_o_1+8 draw_pixel
draw_pixel=draw_pixel_o_1After this, Pills works also on my NSE-3 V05.48 and my common-law-wife is happy again! :grin:


If you play Pills and exit from it with the "C" key, there is a "Continue" option (as it should be).The Continue option is present, but Speed and Viruses options are missing! You have to exit the game completely to be able to start a new game with different speed and/or viruses. Other games allow changing the level even if there is a suspended game (which cannot be continued after that, of course).

LoMaster
04-11-2005, 05:29 PM
... the Continue option is present, but Speed and Viruses options are missing! You have to exit the game completely to be able to start a new game with different speed and/or viruses. Other games allow changing the level even if there is a suspended game (which cannot be continued after that, of course).

You're right about Speed and Viruses options, but I surely have a problem with the Continue option also (checked now once again). Here's the exact description of what i do:

1. Go to "Games" -> "Pills" -> "New Game"
2. Press "C". Pill game's menu appears. The "Continue" option presents, "Speed" and "Viruses" absent.
3. Press "C" one more time. Games menu appears.
4. Enter "Pills" back. No "Continue"! ("Speed" and "Viruses" present).

nuukiaworld
07-11-2005, 09:05 AM
@LoMaster
Yes, I agree with the Continue thing, too. There are also some other features in Pills, e.g.

Hangup key does not work during the game
After Continue, backlights does not behave as specified in the settings
The intro does not work cleanly if the game is selected using a shortcut (this happens also with Breaker and other "official" Nokix games)
The game should get more difficult faster (may be a matter of taste but it is rather deadly after the 25th level...)
Generally rather simple things, however, without source it is not feasible to try fixing them. Let's see if the author has still interest in developing the Pills, or lets see if we see a new game coming from him some day.

nuukiaworld
20-01-2006, 10:10 PM
I coded a small patch for Pills 1.10 that prevents crashing when rotaing a pill at the top of the display.Hmmm. There is actually a mistake in official NokiX headers, which may cause the draw_pixel() function understood incorrectly. Its prototype is:

void draw_pixel( unsigned int x, unsigned int y, unsigned int dmode )

But by disassembling the beginning of the function you can see that draw_pixel() expects x and y to be signed values (even it is completely irrational):
PUSH { R4, R5, LR }
CMP R0,#54 @ Check that x is smaller than 84
BGE <exit> @ This is a signed comparison! (why not BHS (the unsigned one)??)
CMP R1,#30 @ Check that y is smaller than 48
BGE <exit> @ This is a signed comparison! ...
...Anyway, negative values of x and y are not catched and drawing a pixel with "negative" coordinates (or, in "unsigned" sense, coordinates larger than 0x7FFFFFFF) crashes the phone. (May be it does not crash yours but its is better not to ruin your reputation by publishing unstable scripts...)

So, remember to check the values for x and y (for negative values) before calling draw_pixel() to avoid crashes!

domimat
02-02-2006, 05:19 PM
hi!
what about new version of this game? (especially ability to continue the game)

szczuru
22-02-2006, 01:04 PM
@courtjester199, can you post src?