Wolf3d

Walter BONETTI

(bonett_w)

2015-2016 Epitech Lyon

En trois mots

Réflexion

Calcule

Innovation

Réflexion ?

Le temps c'est de l'argent

Un raycasting sans cosinus

"cosinus seulement pour le joueur"

Une couleur / Une orientation

Structurer son programme

L'agencement des données.

Darken / Lighten

I Love SASS

LERP

/*
** MACRO DE LA COULEUR !!!
*/

# define LIGTHEN(c, p) lerp_color(WHITE, c, p)
# define DARKEN(c, p) lerp_color(BLACK, c, p)

Les Murs

Entre collision et réflexion

Les niveaux

UtilisER le potentiel de la liblapin

[level1]
name="the lame one"
playerx=1
playery=1
width=4
height=4
data=
10,10,10,10,
10,0,0,10,
10,0,2,10,
10,10,10,10

[level2]
name="the lame two"
playerx=1
playery=1
width=12
height=12
data=
10,10,10,10,10,10,10,10,10,10,10,10,
10, 0,10,12, 0, 0,10, 0, 0, 0,10,10,
10, 0,10,10,11, 0,12,12,12, 0,10,10,
10, 0,10,10,11, 0,12,12,12, 0,10,10,
10, 0,10, 0,11, 0,12,12,12, 0,10,10,
10, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10,
10, 0,11, 0,11,11,11, 0,10,10,10,10,
10, 0,11, 0, 0, 0,10, 0,10,10,10,10,
10, 0,13,13,13, 0,10, 0,10,10,10,10,
10, 0,13, 2,13,10,10, 0,10,10,10,10,
10, 0, 0, 0,10, 0, 0, 0, 0, 0,10,10,
10,10,10,10,10,10,10,10,10,10,10,10

[level3]
name="the lame three"
playerx=1
playery=1
width=24
height=24
data=
11,11,11,11,11,11,11,12,12,12,12,10,10,10,10,10,10,10,10,10,10,10,10,10,
11, 0, 0, 0, 0, 0,11, 0, 0, 0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,
11,11,11,11,11, 0,11, 0,12, 0,12,10,10,10,10,10,10,10, 0, 0, 0,10,10,10,
10,10,10,10,10, 0,10, 0,10, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10, 0,10,10,10,
10,10,10,10,10, 0,10, 0,10,10,10,10,10,10, 0,10,10,10, 0,10, 0,10,10,10,
10,10,10,10,10, 0,10, 0,10,10,10,10,10,10, 0,10,10,10, 0,10, 0,10,10,10,
10,10,10,10,10, 0,10, 0, 0, 0,10,10,10,10, 0,10,10,10, 0,10, 0,10,10,10,
10,10,10,10,10, 0,10,10,10, 0,10,10,10,10, 0,10,10,10, 0,10, 0,10,10,10,
10,10,10,10,10, 0,10,10,10, 0,10,10,10,10, 0, 0, 0, 0, 0,10, 0,10,10,10,
10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0,10,10,10,10,10,10,10,10, 0,10,10,10,
10,10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,10,10,10, 0,10,10,10,
10,10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,10,10,10, 0,10,10,10,
10,10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10,10,10,10,10, 0,10,10,10,
10,10,10,10,10,10,10,10,10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10,10,
10,10,10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10, 0,10,10,10,10,10,10,
10,10,10,10,10,10,10,10,10,10,10,10, 0,10,10,10,10, 0,10,10,10,10,10,10,
10,10,10,10,10,10,10,10,10,10,10,10, 0,10,10, 0, 0, 0, 0, 0, 0, 0,10,10,
10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10,10, 0,10, 0,10,10,10, 0,10,10,
10,10,10, 0,10,10,10,10,10,10,10,10,10,10,10, 0,10, 0,10,10,10, 0,10,10,
10,10,10, 0,10,10,10,10,10,10,10,10,10,10,10, 0,10, 0, 0, 0, 0, 0, 0,10,
10,10,10, 0,10,10,10,10,10,10,10,10,10,10,10, 0,10, 0,10,10,10,10, 0,10,
10,10,10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,10, 0,10,10,10,10, 0,10,
10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10, 0, 0, 0, 0,10, 2,10,
10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10

[level4]
name="Game Test"
playerx=6
playery=6
width=12
height=12
data=
12,11,11,11,11,11,11,11,11,11,11,11,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12,10,10,10,10,10,10,10,10,10,10,10

[level5]
name="Final"
playerx=6
playery=6
width=12
height=12
data=
10,10,10,10,10,10,10,10,10,10,10,10,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,
12,10,10,10,10,10,10,10,10,10,10,10

Des niveaux infinis

Les Difficultées

Aligner les textures

Passer du 2D à  une 2.5D

Les idées non aboutit

Texture

Gestion des touches

L'apprentissage

Read & Write par Structure

une nouvelle vision

Structure et Optimisation

Wolf3d

By bonett_w

Wolf3d

Basic 2.5D Game

  • 916