Trouver un fichier de code source :
   

Version Française - English Version
Accueil > 

C++

 > 

[C++] [WIN32] JEUX DE SHOOT ( SPACE SHOOT )

 > 

Shoot\renderer.h


[C++] [WIN32] JEUX DE SHOOT ( SPACE SHOOT )

Shoot\renderer.h


Informations sur ce code source

Cliquez pour voir la capture en taille normale
Code Source [C++] [WIN32] JEUX DE SHOOT ( SPACE SHOOT )
Auteur nikau
Fichier Shoot\renderer.h en C / C++ / C++.NET
Publié le 11/07/2012

Voila un petit jeux vidéo. C'est très simple, il faut shooter le max d'aliens. J'ai crée ce jeux pour tester mon moteur 2D. Donc, les sources, en plus du jeux, sont un moteur de jeux 2D entièrement écrit avec l'API Win32 et en C++. J'utilise aussi la
 

Fichier : Shoot\renderer.h

Nombre de lignes : 91 lignes


Afficher ce fichier en plein écran
  • //-------------------------------
  • // renderer.h
  • //-------------------------------
  • #ifndef RENDER_H
  • #define RENDER_H
  • #include <windows.h>
  • #include <string>
  • #include <fmod\fmod.h>
  • #include "header.h"
  • #include "sprites.h"
  • #include "time.h"
  • namespace G2D
  • {
  • class cRenderer
  • {
  • WNDCLASSEX mWndClass;
  • MSG mMsg;
  • static HWND mHwnd;
  • static HINSTANCE mHinstance;
  • HDC mHdc;
  • HDC mBufferDC;
  • HBITMAP mHbitmapBuffer;
  • int mPosX;
  • int mPosY;
  • int mWidth;
  • int mHeight;
  • std::string mWindowName;
  • int mResolution[2];
  • int mFrameRate;
  • int mTickCount;
  • bool mFullScreen;
  • bool mMaximiseProcessor;
  • bool mPause;
  • bool mGameOver;
  • G2DTIMER mTimer1;
  • G2DTIMER mTimer2;
  • protected:
  • int mCountFrameCore;
  • int mCountFrameRate;
  • public:
  • cRenderer();
  • virtual ~cRenderer();
  • void CreateNewWindow(HINSTANCE hinstance, std::string window_name);
  • void MainLoop();
  • void Run();
  • virtual void InitGame() = 0;
  • virtual void GameCycle() = 0;
  • virtual void GamePaint() = 0;
  • virtual void HandleKey() = 0;
  • virtual void DestroyGame() = 0;
  • static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  • LRESULT CALLBACK Events(HWND hwnd, UINT mesg, WPARAM wParam, LPARAM lParam);
  • void SetWindowParameters(int posX, int posY, int width_size, int height_size);
  • void SetWindowParameters(int full_screen);
  • void SetDisplayMode(int resolution, int hertz);
  • void SetFrameRate(int frameRate);
  • void SetGameOver(bool gameover) {mGameOver = gameover;};
  • void SetPause(bool value) {mPause = true;}
  • void SetCursor(bool cursor);
  • void SetMaximiseProcessor(bool value) {mMaximiseProcessor = value;};
  • int GetWidth(){ return mWidth;};
  • int GetHeight(){ return mHeight;};
  • static HWND GetHwnd(){return mHwnd;};
  • HDC GetHdc(){ return mHdc;};
  • virtual HDC GetBufferDC() = 0;
  • static HINSTANCE GetHinstance() {return mHinstance;};
  • int GetTickCount() {return mTickCount;};
  • bool GetGameOver()const {return mGameOver;};
  • bool GetPause()const {return mPause;};
  • static G2DRENDERER mWindow;
  • };
  • } //namespace G2D
  • #endif //RENDER_H


Liste des fichiers du ZIP

FichierTaille
Shoot \ bitmap.cpp2,82 Ko
Shoot \ bitmap.h1,04 Ko
Shoot \ dinput8.dll177,5 Ko
Shoot \ fmod.dll159 Ko
Shoot \ Fmod \ fmod.dll159 Ko
Shoot \ Fmod \ fmodvc.lib57,52 Ko
Shoot \ Fmod \ libfmod.a183,09 Ko
Shoot \ GameEngine2D.rc206 o
Shoot \ header.h1,42 Ko
Shoot \ Icons \ Games.ico5,91 Ko
Shoot \ inputs.h1,16 Ko
Shoot \ keyboard.cpp2,04 Ko
Shoot \ keyboard.h740 o
Shoot \ main.cpp539 o
Shoot \ MyApplication.cpp7,42 Ko
Shoot \ MyApplication.h585 o
Shoot \ Pictures \ bigExplosion.bmp22,13 Ko
Shoot \ Pictures \ bullet.bmp6,8 Ko
Shoot \ Pictures \ Enemy1.bmp4,69 Ko
Shoot \ Pictures \ explosion.bmp7,3 Ko
Shoot \ Pictures \ fond.bmp3,75 Mo
Shoot \ Pictures \ gameOver.bmp3,55 Ko
Shoot \ Pictures \ SpaceShip.bmp9,69 Ko
Shoot \ release.cpp257 o
Shoot \ release.h255 o
Shoot \ renderer.cpp7,41 Ko
Shoot \ renderer.h2,2 Ko
Shoot \ Ressources.h382 o
Shoot \ sound.cpp2,52 Ko
Shoot \ sound.h1,65 Ko
Shoot \ Sounds \ explosion1.wav32,83 Ko
Shoot \ Sounds \ explosion2.wav104,72 Ko
Shoot \ Sounds \ rocket.wav26,2 Ko
Shoot \ sprites.cpp7,16 Ko
Shoot \ sprites.h2,79 Ko
Shoot \ sprites.inl2,66 Ko
Shoot \ sprites_reactions.h612 o
Shoot \ time.cpp1,3 Ko
Shoot \ time.h1,04 Ko
Shoot \ time_convertion.h263 o

Pour télécharger le zip au complet, veuillez vous rendre sur cette page :
Télécharger [C++] [WIN32] JEUX DE SHOOT ( SPACE SHOOT )


Sources du même auteur ayant un ZIP


  • C / C++ / C++.NET Infos image pour opengl
    Ce programme donne toutes les informations nécessaires concernant une image afin de pouvoir la charger avec OpenGL au travers de fonctions c...
    Langage : C / C++ / C++.NET, publié le 11/07/2012 par nikau

Voir la suite...


Sources du même langage comportant un zip


Voir la suite...





Softwares to download (FR)...

  • Easy-Planning (4.5.0.11)
    Easy-Planning (4.5.0.11)
    Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté aux petites et moyennes entreprises(PME). Easy-Planning permet la création de plannings prévisionnels, p...
  • CVEasy (3.1.0.51)
    CVEasy (3.1.0.51)
    PHMSD-CVEasy est un logiciel d'aide à la rédaction de CV d'une simplicité déconcertante. PHMSD-CVEasy vous assistera pour la rédaction de votre CV, le CV de vos amis ou de membres de votre famille, m...
  • LettresFaciles 2011 (8.6.0.31)
    LettresFaciles 2011 (8.6.0.31)
    LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types. Son interface simple d'utilisation mais suffisamment complète vous permettra de créer une multitude de lettres....

Sondage...

Le top des photos

Photo ??Photo ???????????????
Photo ????????Photo ????????
 

Développement réalisé par Nicolas SOREL (Nix) et Emmanuel (EBArtSoft) avec l'aide de Cyril DURAND, Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,33 sec