View Full Version : Wolfenstein3D in PPL
BERUNIN
01-18-2010, 10:38 PM
Hi friends, this is my New Year gift for you. not complete but I'm glad she write to me how you like it or not... :)
not know then how to fix the problems with "texture mapping" if player is rotated ?
c4esar
01-19-2010, 03:12 PM
Hi Berunin, I really like your prog - it's really fast!
Nice!
Greetz, c4esar
kornalius
01-19-2010, 04:17 PM
OMG, that is so cool. Very impressed by this.
BERUNIN
01-19-2010, 04:41 PM
thanks :) . I forgot to write on the landscape mode (640x480,320x240...) is the optimum setting plane_y$=0.66;
Nicknack
01-21-2010, 02:37 PM
I like it too, much better than my try I did some time ago ;)
Mike Halliday
01-21-2010, 05:15 PM
Holy poop!
How quick? - I think you need to put some lead in your shoes and slow down! lol.
This is unbelieveable. PPL code smaller than the textures!!!!
Is this optimised or just coded as you thought of it?
Man I can see some sweet games in PPL now! :) - Its soooo much better than the line drawn version that I did ages ago!
I will be examining the code very closely!:D
BERUNIN
01-24-2010, 08:30 AM
Hi Mike (very good humor :) ) is not my code it only transcribed and edited for ppl. Now here the new version to the original code gefox. new code is unfortunately quite slow :( , but do not know how to do better .. who counsel?
Nicknack
01-24-2010, 01:30 PM
I did some quick changes:
1. drawsurface instead of drawsprite
2. repeat-loop instead of for-loop
3. call create world only once in winmain! you don't need to check if world was created in every WM_PAINT ;)
4. the player shouldn't be able to go forward and backwards at the same time, so I put the if-loops together to an else-if-loop.
this gives you a small speed boost. to get more out it you have to optimize your calculations, eg. try to avoid things like sqrt.
BERUNIN
01-24-2010, 03:24 PM
Ohh.. :) Excellent work NICKNACK ! well I do not like "for loops". :) if he code in while loop to replace the assembler. ;) would be about as fast ..! Thanks for help :0)
Mike Halliday
01-26-2010, 07:38 AM
I did some quick changes:
1. drawsurface instead of drawsprite
2. repeat-loop instead of for-loop
3. call create world only once in winmain! you don't need to check if world was created in every WM_PAINT ;)
4. the player shouldn't be able to go forward and backwards at the same time, so I put the if-loops together to an else-if-loop.
this gives you a small speed boost. to get more out it you have to optimize your calculations, eg. try to avoid things like sqrt.
I tried this in PPLV2 and it shows 'Not responding' :confused: - Works well in V1.53 though - :)
How much speed impact would there be if you added sky and floor?
Nicknack
01-26-2010, 09:00 PM
the original code also produces errors in v2.0. IMHO with enough optimations it should be possible to add floors, roofs and sprites.
at least on the pc...:D
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.