SDL-Fighter - DC Shooter Em up port.
- Quzar
- Dream Coder
- Posts: 7499
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed Jul 31, 2002 12:14 am
- Location: Miami, FL
- Has thanked: 4 times
- Been thanked: 10 times
- Contact:
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Well allways welcome to work on KETM. It's a much better shooter of course but not finshed game and is no longer worked on by the pc author so not much chance of a complete version. This is pretty new and i undertand the code better. Both i intend to work on now and then for fun much more enjoy-able then emulaton some times. With this the FPS counter does tell you if your compiler settings or code optmizing is working or doing any thing.
Nice and easy to work with i think.
Nice and easy to work with i think.
Last edited by Ian Micheal on Sat Jul 17, 2004 3:43 am, edited 1 time in total.
Dreamcast forever!!!
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
- Maximo2703
- DCEmu Nutter
- Posts: 908
- Joined: Sun Mar 07, 2004 3:54 am
- Location: Charleroi,Pa
- Has thanked: 0
- Been thanked: 0
- Contact:
some nice news to hear a new game is out. that would be awesome if you could get a boresque modding out of it. its kind of funny as i was reading this i started thinking about K.E.T.M then all of sudden i see quzar mentioning it. i did like that little shooter ,but since the orginal author isn't working with it no more it'll be a shame to see a shooter with so much potenional get abandoned. ill give this a shot later. just take it easy ian ,and might i add thankx for another release ![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
- Quzar
- Dream Coder
- Posts: 7499
- Joined: Wed Jul 31, 2002 12:14 am
- Location: Miami, FL
- Has thanked: 4 times
- Been thanked: 10 times
- Contact:
I didnt mean SDL just by itself, but it uses like... all the different SDL extensions too, SDL_image, SDL_mixer, and even the rarer (for DC) SDL_gfx. Im sure that is where most of the speed is being lost.Ian Micheal wrote:SDL is not that slow i would think the game is pretty simple. Some maths i would think needs more adjustment i did scale it from 800x600 the game was set for that.
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
SDL_gfx you can take out just from my make file not needed in this game at all. SDL_mixer is pretty fast ive found SDL_image ive found can be slow. Having a go at optmizing bits now. I find it relaxing at this stage easy to work with for me.
Im looking into the way it's using the timer t1=t2 = SDL time i think this is pretty slow.
Im looking into the way it's using the timer t1=t2 = SDL time i think this is pretty slow.
Dreamcast forever!!!
- Quzar
- Dream Coder
- Posts: 7499
- Joined: Wed Jul 31, 2002 12:14 am
- Location: Miami, FL
- Has thanked: 4 times
- Been thanked: 10 times
- Contact:
the one part of it i really didnt like was how it used the randomizer function. For some reason i have a feeling there is a much better way to do it. That and i think if it can be made to not double buffer it would also be faster, but that would be really complex (compared to other things possible).
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Yeah i agree Random function needs work and the scrollying and movement is taking up far to much speed. But i think i can learn some thing from parts of the code. Just need to get it to 20fps and above then it would be much more useable. I had it 16.9 but was a freak GCC build.
Working on geting the enemies moving at different rates.
Working on geting the enemies moving at different rates.
Dreamcast forever!!!
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Well ive tryed and it will not load the images and music from the cd dont know why sorry.
Should be easy for example
Well it will not load or boot like that. So i guess no new version for today.
Code: Select all
#define main_dir "/rd/"
#define sounds_dir main_dir"sounds/"
#define pixmaps_dir main_dir"pixmaps/"
#define explosion_dir main_dir"pixmaps/explosion/"
Code: Select all
#define main_dir "/cd/"
#define sounds_dir main_dir"sounds/"
#define pixmaps_dir main_dir"pixmaps/"
#define explosion_dir main_dir"pixmaps/explosion/"
Dreamcast forever!!!
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
I can think of one way to get it to 60FPS - port it to KOS natively, rather than using SDL. The PVR could handle that stuff (and a lot more) very easily. Of course, that depends on how much the game relies on SDL - I'll have a look.
...
It does rely on SDL quite a lot. It's pretty small, so it could probably be ported without SDL. It'd just involve quite a lot of work.
...
It does rely on SDL quite a lot. It's pretty small, so it could probably be ported without SDL. It'd just involve quite a lot of work.
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Yeah some of it i could ported to kos pretty easy, i did this with the controls as there was no joystick controls at all. Even 20 fps would be useable. It's very much an SDL game so it ,would take a lot of work to port to kos, if i did that i would mostly just use it as a base and write my own version with out using any code from this, because most of it would have to be rewritten. I would think with the amount of work that would be needed to be done it would be easyer to write a game in the same style from new. Any way it Shows some what thar SDL is not all that useable on dreamcast even for simple games. Ive had the same trouble with games ive written being to slow if you use 640x480 res in sdl it's slow no matter what it seems.
Also it's there now any one want to play with it go a head ive tryed for longer then i should to get it faster. Cant seem to break 16 fps it has a fps counter so easy to see any improvements you make. . It will not load any files from the cd dont know why?????.
EDIT
Got the framerate better the animated explosions was 31 frames ive lowered this and now ive got 15 fps even when there's a lot on screen so much less slow down and smoother. Better still not smooth enff gets to 16.9 at times now.
Also it's there now any one want to play with it go a head ive tryed for longer then i should to get it faster. Cant seem to break 16 fps it has a fps counter so easy to see any improvements you make. . It will not load any files from the cd dont know why?????.
EDIT
Got the framerate better the animated explosions was 31 frames ive lowered this and now ive got 15 fps even when there's a lot on screen so much less slow down and smoother. Better still not smooth enff gets to 16.9 at times now.
Dreamcast forever!!!
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
*Update.
Changed some game maths to make it run better and be a bit more fun.The Game hits 16fps and is 5fps faster at times then the last version. Still not flying along but maybe in time.
*To Do
Change the grafix to load from the cd i could not seem to get this to work dont know why prolly my new burner.
-Speed needs optmizing
- Grafix loading from the cd for moding.
*List of credits
Quzar he removed some debug info and the sdl controls and got some speed up and added the exit command.
Slightly better and i changes the bullet speed and movement so it plays better more normal to me.
Grafix loading from the cd i could not get it to work so if any one can let me know.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Changed some game maths to make it run better and be a bit more fun.The Game hits 16fps and is 5fps faster at times then the last version. Still not flying along but maybe in time.
*To Do
Change the grafix to load from the cd i could not seem to get this to work dont know why prolly my new burner.
-Speed needs optmizing
- Grafix loading from the cd for moding.
*List of credits
Quzar he removed some debug info and the sdl controls and got some speed up and added the exit command.
Slightly better and i changes the bullet speed and movement so it plays better more normal to me.
Grafix loading from the cd i could not get it to work so if any one can let me know.
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Dreamcast forever!!!
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times
Yeah basic things would be fire rate of the bullets movement of the ships and grafix and scrollying speed. I could have all the editedable from txt files. Only problem i had and a strange one is i cant get it to read the files off the cd.
There very long file names i think thats it or my new cd burner. Just the grafix from the cd would let you mod the whole look of it.
There very long file names i think thats it or my new cd burner. Just the grafix from the cd would let you mod the whole look of it.
Dreamcast forever!!!
-
- Soul Sold for DCEmu
- Posts: 4865
- Joined: Fri Jul 11, 2003 9:56 pm
- Has thanked: 2 times
- Been thanked: 4 times