mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-04-21 21:51:22 +02:00
txt skeletons.
This commit is contained in:
parent
0d207b7de7
commit
310669858e
12
05_sdl_alapok.txt
Normal file
12
05_sdl_alapok.txt
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
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>
|
7
06_sdl_motor.txt
Normal file
7
06_sdl_motor.txt
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
Textura
|
||||
|
||||
Sprite
|
||||
|
||||
|
31
08_monopoly_sdl.txt
Normal file
31
08_monopoly_sdl.txt
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
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()
|
||||
|
||||
|
0
09_sdl_input.txt
Normal file
0
09_sdl_input.txt
Normal file
0
10_monopoly_input.txt
Normal file
0
10_monopoly_input.txt
Normal file
0
12_widget_keszlet.txt
Normal file
0
12_widget_keszlet.txt
Normal file
Loading…
Reference in New Issue
Block a user