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
a6765d8f
Commit
a6765d8f
authored
Jul 24, 2001
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented New Game.
parent
76c58062
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
TODO
macsrc/TODO
+5
-1
WolfMain.c
macsrc/WolfMain.c
+1
-1
vi_gtk.c
macsrc/vi_gtk.c
+13
-4
No files found.
macsrc/TODO
View file @
a6765d8f
complete:
07/22/01 disable escape
07/22/01 fix cmap problem at 8bit (Want to change cmaps when going into/from gtk+ menu)
07/23/01 New Game
------------------
New Gam
e
finished double buffered gtk+ imag
e
Save Game, Load Game
find keyboard way of changing focus
fix sprite snapping
...
...
@@ -25,10 +26,12 @@ music (what format?, mp3 - there's smpeg?)
options dialog: sound enabled, music enabled
options file
input config
keyboard shortcuts (for menu, and things like loading)
.wolf3d/{macfull,macshare} ?
command line options
verify other todo lists are also complete
make sure all desired options have been added
screenshot key
check bigendianesss
try to speed drawing up
play through testing
...
...
@@ -40,6 +43,7 @@ configure (automake, autoconf, etc?)
website (no sourceforge this time)
finish opengl version
in game menus instead of gtk+ gui
level editor
TODO:
* See TODO in src/TODO
...
...
macsrc/WolfMain.c
View file @
a6765d8f
...
...
@@ -364,7 +364,7 @@ void PlayLoop(void)
LastTicCount
=
ReadTick
();
do
{
if
(
!
SlowDown
)
if
(
SlowDown
)
Delay
=
4
;
/* 15 Hz */
else
Delay
=
2
;
/* 30 Hz */
...
...
macsrc/vi_gtk.c
View file @
a6765d8f
...
...
@@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include <ctype.h>
#include <gtk/gtk.h>
...
...
@@ -29,7 +30,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "wolfdef.h"
Byte
*
gfxbuf
;
extern
jmp_buf
ResetJmp
;
static
Byte
*
gfxbuf
;
static
GtkWidget
*
win
;
static
GtkWidget
*
main_vbox
;
...
...
@@ -61,11 +64,16 @@ void destroy(GtkWidget *widget, gpointer data)
Quit
(
NULL
);
}
static
void
menu_quit
(
GtkWidget
*
w
,
gpointer
data
)
static
void
menu_
file_
quit
(
GtkWidget
*
w
,
gpointer
data
)
{
destroy
(
w
,
data
);
}
static
void
menu_file_newgame
(
GtkWidget
*
w
,
gpointer
data
)
{
longjmp
(
ResetJmp
,
EX_NEWGAME
);
}
void
RestoreColors
()
{
int
i
;
...
...
@@ -125,7 +133,8 @@ static void draw_default(GtkWidget *widget, gpointer user_data)
static
GtkItemFactoryEntry
menu_items
[]
=
{
{
"/_File"
,
NULL
,
NULL
,
0
,
"<Branch>"
},
{
"/File/Quit"
,
"<control>Q"
,
menu_quit
,
0
,
NULL
},
{
"/File/New Game"
,
NULL
,
menu_file_newgame
,
0
,
NULL
},
{
"/File/Quit"
,
"<control>Q"
,
menu_file_quit
,
0
,
NULL
}
};
int
main
(
int
argc
,
char
*
argv
[])
...
...
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