Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

PC games that can be ported

Any and all A320 homebrew topics

Moderator: Moderators

Re: PC games that can be ported

Postby akibal on Tue Jun 02, 2009 3:15 am

How about the game 'Blood'?
akibal
 
Posts: 13
Joined: Sun May 31, 2009 9:20 am
Location: USA

Re: PC games that can be ported

Postby welshmouse on Tue Jun 02, 2009 4:00 am

akibal wrote:How about the game 'Blood'?


should be possible i think. and hella fun :)
welshmouse
 
Posts: 102
Joined: Sun May 03, 2009 3:54 am

Re: PC games that can be ported

Postby flaviobello on Tue Jun 02, 2009 6:26 am

wow!! bloody!! gueroche cruo!! man, i just love those cultists of blood, best FPS ever n ever!
i found about this
http://h3g3m0n.wordpress.com/2007/03/17 ... der-linux/
with one is better, dosbox ot qemu? with MSDOS on dingoo, abandonwares like old duke nuken, dungerous dave, or even commander keen will work?
sorry for my noobies questions, i never used linux, and i know nothing about codding :oops:
ImageImage
flaviobello
 
Posts: 41
Joined: Sun May 24, 2009 9:43 pm

Re: PC games that can be ported

Postby welshmouse on Tue Jun 02, 2009 7:08 am

flaviobello wrote:wow!! bloody!! gueroche cruo!! man, i just love those cultists of blood, best FPS ever n ever!
i found about this
http://h3g3m0n.wordpress.com/2007/03/17 ... der-linux/
with one is better, dosbox ot qemu? with MSDOS on dingoo, abandonwares like old duke nuken, dungerous dave, or even commander keen will work?
sorry for my noobies questions, i never used linux, and i know nothing about codding :oops:


extremely unlikely anything will run aplyably under DOS emulation. anything on x86 hardware is EXTREMELY complex, and there for needs powerful hardware to emulate.
welshmouse
 
Posts: 102
Joined: Sun May 03, 2009 3:54 am

Re: PC games that can be ported

Postby nardich on Thu Jun 11, 2009 3:41 pm

Cave Story should be possible: a linux SDL port was done, somewhere. Such a great game.
nardich
 
Posts: 27
Joined: Wed Apr 15, 2009 1:37 pm

Re: PC games that can be ported

Postby zear on Thu Jun 11, 2009 8:50 pm

Man, I should check the forums more often.
Didn't know you ported duke3d Joyrider, so I ported it myself (with the same resutls, 8bpp screen/color glitches).
I recorded a short video so you guys can see how it looks like:
http://www.youtube.com/watch?v=p84Nv2zDXsk
The second part features the game spout, which actually runs fine. I'm gonna release it soon when I find some free time (probably tomorrow).

BTW I got the same problems with xrick and powder..
zear
 
Posts: 98
Joined: Thu Jun 11, 2009 8:34 pm

Re: PC games that can be ported

Postby joyrider on Thu Jun 11, 2009 8:58 pm

zear wrote:Man, I should check the forums more often.
Didn't know you ported duke3d Joyrider, so I ported it myself (with the same resutls, 8bpp screen/color glitches).
I recorded a short video so you guys can see how it looks like:
http://www.youtube.com/watch?v=p84Nv2zDXsk
The second part features the game spout, which actually runs fine. I'm gonna release it soon when I find some free time (probably tomorrow).

BTW I got the same problems with xrick and powder..


look at this topic : making-sdl-output-at-16bpp-t567.html

that fixed my problems

basicly let the game screen be created by a createRGBsurface in 8 bit pixel mode and the main screen in 16 bit using sdl_setvideomode. Then everywhere the game screen gets flipped add a SDL_BlitSurface(game_screen,null,main_screen,NULL) and sdl_flip(main_screen) stated

the sdl_blitsurface call will convert the 8 bit surface to 16 bit for you ! (i did not know this myselve). Thats also what i did in hheretic and hhexen so you can check it out if you'd like. Duke had also some sound problems when i tried it out but i didn't bother looking at it again :)
joyrider
 
Posts: 77
Joined: Sun May 03, 2009 4:27 pm

Re: PC games that can be ported

Postby flatmush on Sat Jun 13, 2009 1:25 pm

Also if you don't want to use SDL to convert the surface, here is a fast surface conversion that uses lookup tables, could be made faster if it used 16-bit lookup tables but then it would take 256KiB of memory as opposed to 512Bytes probably a good call though.

Code: Select all
#include <stdlib.h>
#include <stdint.h>

uint16_t* clut_create_RGB332() {
   uint16_t* tempOut = (uint16_t*)malloc(256 << 1);
   if(tempOut == NULL)
      return NULL;
   
   uintptr_t r, g, b, i;
   for(i = 0, r = 0; r < 8; r++) {
      for(g = 0; g < 8; g++) {
         for(b = 0; b < 4; b++, i++) {
            tempOut[i] = ((r << 13) | (r <<10)) & 0xF800;
            tempOut[i] |= (g << 8) | (g << 5);
            tempOut[i] |= (b << 3) | (b << 1) | (b >> 1);
         }
      }
   }
   return tempOut;
}

void buffer_convert(uint8_t* inBuffer, uint16_t* inClut, uint16_t* outBuffer) {
   if((inBuffer == NULL) || (inClut == NULL) || (outBuffer == NULL)
      return;
   uint8_t* tempIBuff      = inBuffer;
   uint16_t* tempOBuff      = outBuffer;
   uint16_t* tempOBuffEnd   = ((uintptr_t)outBuffer + (320 * 240 * 2));
   while(tempOBuff < tempOBuffEnd) {
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
      *(tempOBuff++) = inClut[*(tempIBuff++)];
   }
}


Would've been nice if they put some color conversion instructions in the xburst instruction set, instead of the mostly useless instructions it currently has.
C99 samples without using s2dsdk | MineSweeper | AstroLander
For help with dingoo programming or just in general, join our IRC at irc://irc.freenode.net/#dingoo-a320
flatmush
 
Posts: 34
Joined: Thu May 14, 2009 1:29 pm
Location: Manchester, UK

Re: PC games that can be ported

Postby jmd28 on Mon Jun 15, 2009 7:48 pm

Quarantine Quarantine Quarantine Quarantine Quarantine Quarantine Quarantine
jmd28
 
Posts: 21
Joined: Sat Jun 13, 2009 11:58 am

Re: PC games that can be ported

Postby ezelkow1 on Mon Jun 15, 2009 7:59 pm

A game cant even be attempted to be ported if the source doesn't exist or if there isn't an opensource home made version. The only hope for a game like quarantine is dosbox which I wouldn't hold out much hope on.
ezelkow1
 
Posts: 84
Joined: Tue Apr 28, 2009 11:58 pm

PreviousNext

Return to Homebrew

Who is online

Users browsing this forum: No registered users and 2 guests