mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-04-21 21:51:22 +02:00
Remove dthe temp folder.
This commit is contained in:
parent
87ded5df35
commit
0a31da7595
@ -1,17 +0,0 @@
|
||||
|
||||
Most hogy már működik az sdl
|
||||
|
||||
Hogy működik, main etc
|
||||
|
||||
//megj: sima int main() {} ként nem fog működni a program, mert az sdl fogja meghívni a mi main()-ünket!
|
||||
vagy
|
||||
|
||||
#define SDL_MAIN_HANDLED
|
||||
#include <GL/glew.h>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL_opengl.h>
|
||||
|
||||
|
||||
|
||||
Megj.: WolfEinstein 3D rendererjét úgy hívják, hogy raycaster. Nem sok kód szükséges hozzá, pár száz sor csak
|
||||
Vannak róla tutorialok a zoutube-on, még talán beimplementálni is érdemes.
|
@ -1,7 +0,0 @@
|
||||
|
||||
|
||||
Textura
|
||||
|
||||
Sprite
|
||||
|
||||
Assets class
|
@ -1,31 +0,0 @@
|
||||
|
||||
|
||||
Texture + Sprite
|
||||
|
||||
Tile, player is lehet sprite
|
||||
|
||||
Tile: x, y, w, h
|
||||
Player x, y, w, h
|
||||
|
||||
|
||||
tile betolt
|
||||
|
||||
tile-> on player_step -> player set_pos this.center;
|
||||
|
||||
|
||||
Először a rendertt ell megcsálni,és input nélkül
|
||||
utána külön feladat az input visszarakása + player egész ilyen txts
|
||||
|
||||
Fontos, hogy látni lehessen, hogy a render az csak megjelenítés, a mögötte lévő adat majdnem ugyen az.
|
||||
|
||||
Board:
|
||||
input() -> send to the current player
|
||||
|
||||
step()
|
||||
|
||||
do everything the same.
|
||||
|
||||
|
||||
render()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user