PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

my first game:-)

its a stg game.
Attachments:
2010.JPG
The image “http://bbs.pdafans.com/attachments/day_040928/FcTI_2010.png” cannot be displayed, because it contains errors.
was worth the 3 minutes to download the screen shots :D
you really need a faster server :P
what about a demo\trial version?
The screenshot came down very quickly for me. Excellent shots by the way. Looks great.
ilanprod wrote:was worth the 3 minutes to download the screen shots :D
you really need a faster server :P
what about a demo\trial version?

i'm very appreciate to share my game, but i'v no space to host my game, its about 900K bytes.
chenjb: Upload it with the attachment thing here, or e-mail it to me: sponge@freepq.net and I'll definitely put it up somewhere for you
chenjb · 04 Nov 2004, 18:10 UTC — my game
c attatchment
unzip it to any directory of your PPC then run the .exe. support PPC2002&2003
Attachments:
MagicGame.part1.rar (245 KB)
chenjb · 04 Nov 2004, 18:11 UTC — my game
part2
Attachments:
MagicGame.part2.rar (245 KB)
chenjb · 04 Nov 2004, 18:12 UTC — my game
part3
Attachments:
MagicGame.part3.rar (245 KB)
chenjb · 04 Nov 2004, 18:13 UTC — my game
part last[/i]
Attachments:
MagicGame.part4.rar (24 KB)
chenjb · 04 Nov 2004, 18:17 UTC — my game
its my first game, now the game has 4 levels & 4 Boss.
i'm very eager to hear ur advice,thx
The game is quite good, but there is a surprising detail in the naming of your ressource files : "avion.png" and "tourelle.png", those are french words...

It's even more surprising given the fact that you're based in china...
StephC wrote:The game is quite good, but there is a surprising detail in the naming of your ressource files : "avion.png" and "tourelle.png", those are french words...

It's even more surprising given the fact that you're based in china...


yes, i'm from china,& my english is very bad,so some object i dont know how to name it, i just name it becouse i see other game do so :roll:

BTW, this game is just in developing, some RES are get from the net, when i release this game, i'l replace them.

this game is based on GAPI, the sound engine i develop in this game have some problem, when too many sound occur(the boss crash,for example),my fps drops 10 fps or so, this made me very upset, how many fps drops is normal when add sound in a game :?: :(
chenjb wrote:
this game is based on GAPI, the sound engine i develop in this game have some problem, when too many sound occur(the boss crash,for example),my fps drops 10 fps or so, this made me very upset, how many fps drops is normal when add sound in a game :?: :(


A good sound mixer should not take more than 2-5% of the CPU.

My own sound mixer (32 channels 22Khz 16bits Mono) is consuming about 2% on a typical pocketpc (xscale 400Mhz).

Are you using divisions in your sound engine ?

If yes, then you know where your problem is...
thx,StephC,i think its time i must refactor my sound engine.
chenjb wrote:thx,StephC,i think its time i must refactor my sound engine.


You mean "optimize" or "fix" your sound engine, not "refactor".
Pejo Software - Per · 05 Nov 2004, 12:41 UTC
Refactor is a word that is commonly used when working with the development method extreme programming (http://www.extremeprogramming.org). Refactoring is explained here: http://www.refactoring.com/.
Altough this word might not be in an official dictionary it is nevertheless a word used in software development. So in order to optimize the code some refactoring might be needed!
Well, learn something new every day. :)


JJB
Pejo: "refactoring" doesn't apply here. Refactoring is "changing the structure of your program using well-defined rules without changing it's behavior". The site you point to properly defines it as:


Refactoring is a disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior. Its heart is a series of small behavior preserving transformations. Each transformation (called a 'refactoring') does little, but a sequence of transformations can produce a significant restructuring. Since each refactoring is small, it's less likely to go wrong. The system is also kept fully working after each small refactoring, reducing the chances that a system can get seriously broken during the restructuring.


Optimizing != refactoring.
Fixing != refactoring.
Debugging != refactoring.

If your game/app is too slow, refactoring is not going to help you. Fixing/profiling/optimizing will.

Refactoring is overused these days because it sounds better then saying "my code sucks and I need to fix it". I am myself guilty of using it every other week for the wrong reasons.
Thierry's right, refactoring should NOT change behaviour.
Pejo Software - Per · 06 Nov 2004, 08:41 UTC
I was going to post a long reply here to why we don't know if he needs refactoring or not, but I'm not going to because I think these kind of discussions are kind of pointless and does not interest me very much. You are basicly right that refactoring in genereral doesn't change behaviour and its primary goal is simply restructuring the code/design.
my goal is optimization,& i think i need refactoring to my code, my sound engine's structure has problem.
i'v not express my intensition clearly :)
I can't download it, getting this
Failed obtaining forum access control lists

DEBUG MODE

SQL Error : 1054 Unknown column 'a.auth_reviews' in 'field list'

SELECT a.forum_id, a.auth_view, a.auth_read, a.auth_post, a.auth_reply, a.auth_edit, a.auth_delete, a.auth_sticky, a.auth_announce, a.auth_vote, a.auth_pollcreate, a.auth_news, a.auth_multimedia, a.auth_reviews, a.auth_attachments, a.auth_download FROM phpbb_forums a WHERE a.forum_id = 5
Line : 279
File : /home/pmcom/public_html/forums/includes/auth.php"
Are you guys saying that the binaries should be identical before/after refactoring? Because even if you simply move a function from one translation unit to another it could affect the performance (behavior)of the application.

What's the difference between code cleanup and refactoring then?
If the refactoring was non-trivial then it would have to impact performance one way or another. I would assume we are talking about more than just beautifying code here.

Dan East
blazingwolf · 07 Nov 2004, 01:53 UTC
Download no longer available? I keep getting a debug error.
Binaries will differ due to refactoring, surely.

Yes it is true that moving a function could result in a performance change. I still consider that refactoring, if it's not a change made strictly for performance reasons.

Refactoring is not mere code clean-up. Typically, you might change a design while preserving functionality, to allow for future development. For example, you might insert the use of a design pattern to provide a place for future change.

The thing is, while refactoring, you insert the design pattern but the program's behaviour remains the same (on a functional level). You don't actually add the new functionality while refactoring. Once your refactoring is complete, you then use the new design pattern to add the functionality you wanted.

The refactoring is what enabled you to add that new functionality where you couldn't before.

Usually when I say refactoring, I'm talking about changing my program's organization. So it's more involved than code cleanup, but doesn't really involve performance changes or new functionality. One thing I might do is change the implementation of a data structure that I've already hidden behind an API. Another thing I might do is add an API where I didn't have the foresight to already have one.
Thank you a lot for a wonderful arcade! It's gameplay is much better than in Sky Force: there are much more interesting bonuses and upgrades and bosses with their HP shown is a very good thing indeed :D
By the way i had no troubles with sound on my HP iPAQ 2210.
P.s. and thank you for stilus input - my joystick is totally dead...
Great job, nothing like a good 'ole 1950s style game for the PocketPC.
I've never seen a 1950 game. Care to point me to one of them?
Thierry wrote:I've never seen a 1950 game. Care to point me to one of them?


I found a few pictures of 1944 here.
Yes but you were talking about 1950s game. There were no video games in 1950.

Now if you meant the 1942 serie, that is something else.
By 1950s games, I meant the 1944 series type games, I just forgot the exact year, sorry for the misunderstanding.