Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
761d01e5
Commit
761d01e5
authored
Mar 07, 2001
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(synch checkin) Chuck Mason's attempt at fixing fizzlefade
parent
ca350592
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
17 deletions
+39
-17
TODO
src/TODO
+1
-0
id_vh.c
src/id_vh.c
+14
-10
vi_comm.h
src/vi_comm.h
+1
-0
vi_sdl.c
src/vi_sdl.c
+6
-1
vi_svga.c
src/vi_svga.c
+5
-0
vi_xlib.c
src/vi_xlib.c
+5
-0
wl_game.c
src/wl_game.c
+7
-6
No files found.
src/TODO
View file @
761d01e5
...
...
@@ -29,6 +29,7 @@ B M - use something like config file or getenv to point at data directories
P I - finish handling/mapping for all keys in sys. specific code
B I - add mouse support
B M - add joystick/gamepad support
P I - fix or remove fizzlefade
Complete:
------------------------------------------------------------------------------
...
...
src/id_vh.c
View file @
761d01e5
...
...
@@ -30,6 +30,7 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width, unsigned height, un
int
x
,
y
,
p
,
frame
;
unsigned
int
rndval
;
int
retr
;
int
blocksize
;
rndval
=
1
;
pixperframe
=
64000
/
frames
;
...
...
@@ -39,8 +40,9 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width, unsigned height, un
frame
=
0
;
set_TimeCount
(
0
);
if
(
vwidth
!=
320
)
/* TODO */
if
(
vwidth
&
3
)
return
false
;
blocksize
=
(
vwidth
/
320
);
retr
=
-
1
;
...
...
@@ -51,8 +53,9 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width, unsigned height, un
retr
=
true
;
else
for
(
p
=
0
;
p
<
pixperframe
;
p
++
)
{
y
=
(
rndval
&
0x00FF
)
-
1
;
x
=
(
rndval
&
0x00FFFF00
)
>>
8
;
y
=
((
rndval
&
0x00FF
)
-
1
)
*
blocksize
;
//y = (rndval & 0x000007FF) - 1;
x
=
((
rndval
&
0x00FFFF00
)
>>
8
)
*
blocksize
;
if
(
rndval
&
1
)
{
rndval
>>=
1
;
...
...
@@ -63,7 +66,8 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width, unsigned height, un
if
((
x
>
width
)
||
(
y
>
height
))
continue
;
VL_DirectPlot
(
xx
+
x
,
yy
+
y
,
xx
+
x
,
yy
+
y
);
//VL_DirectPlot(xx+x, yy+y, xx+x, yy+y);
VL_DirectUpdateRect
(
xx
+
x
,
yy
+
y
,
blocksize
,
blocksize
);
if
(
rndval
==
1
)
{
/* entire sequence has been completed */
...
...
@@ -73,7 +77,7 @@ boolean FizzleFade(unsigned xx, unsigned yy, unsigned width, unsigned height, un
}
VL_DirectPlotFlush
();
//
VL_DirectPlotFlush();
frame
++
;
while
(
get_TimeCount
()
<
frame
);
...
...
src/vi_comm.h
View file @
761d01e5
...
...
@@ -26,6 +26,7 @@ void VL_DeModeXize(byte *buf, int width, int height);
void
VL_DirectPlot
(
int
x1
,
int
y1
,
int
x2
,
int
y2
);
void
VL_DirectPlotFlush
();
void
VL_DirectUpdateRect
(
int
x
,
int
y
,
int
w
,
int
h
);
#define MaxPlayers 4
#define MaxJoys 2
...
...
src/vi_sdl.c
View file @
761d01e5
...
...
@@ -127,7 +127,7 @@ void VL_Shutdown()
SDL_Quit
();
}
/
/===========================================================================
/
* ======================================================================== */
/*
=================
...
...
@@ -183,6 +183,11 @@ void VL_DirectPlotFlush()
SDL_Flip
(
surface
);
}
void
VL_DirectUpdateRect
(
int
x
,
int
y
,
int
w
,
int
h
)
{
SDL_UpdateRect
(
surface
,
x
,
y
,
w
,
h
);
}
static
int
XKeysymToScancode
(
unsigned
int
keysym
)
{
switch
(
keysym
)
{
...
...
src/vi_svga.c
View file @
761d01e5
...
...
@@ -170,6 +170,11 @@ void VL_DirectPlotFlush()
{
}
void
VL_DirectUpdateRect
(
int
x
,
int
y
,
int
w
,
int
h
)
{
/* TODO: fixme for FizzleFade */
}
/*
=============================================================================
...
...
src/vi_xlib.c
View file @
761d01e5
...
...
@@ -531,6 +531,11 @@ void VL_DirectPlotFlush()
{
}
void
VL_DirectUpdateRect
(
int
x
,
int
y
,
int
w
,
int
h
)
{
/* TODO: fixme for FizzleFade */
}
static
int
XKeysymToScancode
(
KeySym
keysym
)
{
switch
(
keysym
)
{
...
...
src/wl_game.c
View file @
761d01e5
...
...
@@ -987,10 +987,10 @@ void Died()
VL_Bar
(
xoffset
,
yoffset
,
viewwidth
,
viewheight
,
4
);
IN_ClearKeysDown
();
FizzleFade
(
xoffset
,
yoffset
,
viewwidth
,
viewheight
,
70
,
false
);
IN_ClearKeysDown
();
IN_UserInput
(
1
0
0
);
IN_UserInput
(
1
4
0
);
SD_WaitSoundDone
();
gamestate
.
lives
--
;
...
...
@@ -1059,10 +1059,11 @@ restartgame:
StartMusic
();
if
(
!
died
)
PreloadGraphics
();
else
died
=
false
;
else
{
fizzlein
=
true
;
died
=
false
;
}
//fizzlein = true;
DrawLevel
();
#ifdef SPEAR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment