91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 656KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-09
  • 語言: 其他
  • 標(biāo)簽: opengl??射擊??

資源簡(jiǎn)介

這是一個(gè)用OPENGL編寫的小射擊游戲,供大家學(xué)習(xí)交流

資源截圖

代碼片段和文件信息

/*		
?*??????Windows?frame?Code?Was?Published?By?Jeff?Molofee?2000.?
?*??????The?Idea?of?This?Game?Was?Taken?From?“FPS“?At?GLdomain.com
?* And?“MD2Loader“?At?GameTutorials.com.
?* The?model?“q2mdl-hueteotl“?Was?Taken?From?PlanetQuake.com.
?* You?Can?Reach?Me?at:?gan_kim_heng@yahoo.com.
?*/
#include? //?Header?File?For?Windows
#include? //?Math?Library?Header?File
#include? //?Header?File?For?Standard?Input/Output
#include? //?Header?File?For?The?OpenGL32?Library
#include? //?Header?File?For?The?GLu32?Library
#include? //?Header?File?For?The?Glaux?Library
#include?
#include?

#include?“main.h“
#include?“Md2.h“
#include?“resource.h“

#pragma?comment(?lib?“opengl32.lib“) //?Search?For?OpenGL32.lib?While?linking
#pragma?comment(?lib?“glu32.lib“)
#pragma?comment(?lib?“glaux.lib“)
#pragma?comment(?lib?“winmm.lib“)

HDC hDC=NULL; //?Private?GDI?Device?Context
HGLRC hRC=NULL; //?Permanent?Rendering?Context
HWND hWnd=NULL; //?Holds?Our?Window?Handle
HINSTANCE hInstance; //?Holds?The?Instance?Of?The?Application

GLdouble?WIDTH;
GLdouble?HEIGHT;

const?CELL?=?256;
#define MAX_PARTICLES 45
#define MAX_SHOTS_FIRED 45

#define?FILE_NAME??“tris.md2“ //?This?is?the?3D?file?we?will?load.
#define?TEXTURE_NAME?“hobgoblin.bmp“ //?This?is?the?image?file?we?will?load.
CLoadMD2?g_LoadMd2; //?This?is?MD2?class.??This?should?go?in?a?good?model?class.
t3DModel?g_3DModel; //?This?holds?the?3D?Model?info?that?we?load?in

bool??gameOver?=?false;
bool??getOut?=?false;
int???point?=?0;

bool??firstTrigger??=?false;
bool??firstHitStatus=?false;
int???firstHitCount?=?0;
float?firstTransX =?CELL*4?+?20.0f;
float?firstTransXi??=?0.0f;
float?firstTransZ???=?CELL*6?+?20.0f;
float?firstTransZi??=?0.0f;
float?firstRotateY??=?0.0f;
float?firstRotateYi?=?0.0f;
float?firstRotateX =?0.0f;
float?firstRotateXi?=?0.0f;
float?firstMult?????=?0.0f;

bool??secondTrigger??=?false;
bool??secondHitStatus=?false;
int???secondHitCount?=?0;
float?secondTransX ?=?CELL*2?+?20.0f;
float?secondTransXi??=?0.0f;
float?secondTransZ???=?CELL*5?+?20.0f;
float?secondTransZi??=?0.0f;
float?secondRotateY??=?0.0f;
float?secondRotateYi?=?0.0f;
float?secondRotateX ?=?0.0f;
float?secondRotateXi?=?0.0f;
float?secondMult?????=?0.0f;

bool??thirdTrigger??=?false;
bool??thirdHitStatus=?false;
int???thirdHitCount?=?0;
float?thirdTransX =?20.0f;
float?thirdTransXi??=?0.0f;
float?thirdTransZ???=?CELL*4?+?20.0f;
float?thirdTransZi??=?0.0f;
float?thirdRotateY??=?0.0f;
float?thirdRotateYi?=?0.0f;
float?thirdRotateX =?0.0f;
float?thirdRotateXi?=?0.0f;
float?thirdMult?????=?0.0f;

bool??fourthTrigger??=?false;
bool??fourthHitStatus=?false;
int???fourthHitCount?=?0;
float?fourthTransX ?=?CELL*2?+?20.0f;
float?fourthTransXi??=?0.0f;
float?fo

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????96330??2012-05-18?23:28??opengl射擊游戲源代碼\BackUp_03.txt

?????文件?????121813??2012-05-18?23:28??opengl射擊游戲源代碼\BmyFPS.cpp

?????文件???????4232??2012-05-18?23:28??opengl射擊游戲源代碼\BmyFPS2.dsp

?????文件????????537??2012-05-18?23:28??opengl射擊游戲源代碼\BmyFPS2.dsw

?????文件?????360496??2012-05-18?23:28??opengl射擊游戲源代碼\BmyFPS2.exe

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\Data\crosshair.bmp

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\Data\exit.bmp

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\Data\floor.bmp

?????文件?????262683??2012-05-18?23:28??opengl射擊游戲源代碼\Data\Font.tga

?????文件??????42416??2012-05-18?23:28??opengl射擊游戲源代碼\Data\rifle.wav

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\Data\smoke.bmp

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\Data\walls.bmp

?????文件??????66614??2012-05-18?23:28??opengl射擊游戲源代碼\hobgoblin.bmp

?????文件????????766??2012-05-18?23:28??opengl射擊游戲源代碼\icon1.ico

?????文件???????7119??2012-05-18?23:28??opengl射擊游戲源代碼\main.h

?????文件??????21932??2012-05-18?23:28??opengl射擊游戲源代碼\Md2.cpp

?????文件???????4263??2012-05-18?23:28??opengl射擊游戲源代碼\Md2.h

?????文件???????2576??2012-05-18?23:28??opengl射擊游戲源代碼\ReadMe.txt

?????文件????????457??2012-05-18?23:28??opengl射擊游戲源代碼\resource.h

?????文件???????1710??2012-05-18?23:28??opengl射擊游戲源代碼\resource.rc

?????文件?????362288??2012-05-18?23:28??opengl射擊游戲源代碼\tris.MD2

?????文件??????40851??2012-05-18?23:28??opengl射擊游戲源代碼\未命名.JPG

?????目錄??????????0??2012-05-18?23:28??opengl射擊游戲源代碼\Data

?????目錄??????????0??2012-05-18?23:28??opengl射擊游戲源代碼

-----------?---------??----------?-----??----

??????????????1730153????????????????????24


評(píng)論

共有 條評(píng)論