got the speed working (yay) but the angular velocity that results is superrrr low, thus not creating any rotation after impact, wierd...
This commit is contained in:
3
Makefile
3
Makefile
@ -11,7 +11,7 @@ CXXFLAGS=-Wall -g -O2 $(PROFILING_CFLAGS) $(GTK_CFLAGS)
|
||||
LIBS=$(GTK_LIBS) -lm
|
||||
|
||||
PROGS=balls
|
||||
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o polygons.o polygon_generator.o
|
||||
OBJS=balls.o c_index.o game.o gravity.o spaceship.o main.o polygons.o polygon_generator.o collisions.o
|
||||
|
||||
# dependencies (gcc -MM *.cc)
|
||||
balls.o: balls.cc game.h balls.h vec2d.h gravity.h
|
||||
@ -23,6 +23,7 @@ spaceship.o: spaceship.cc balls.h vec2d.h game.h
|
||||
stats.o: stats.cc
|
||||
polygons.o: polygons.cc polygons.h vec2d.h polygon_generator.h
|
||||
polygon_generator.o: polygon_generator.cc polygon_generator.h
|
||||
collisions.o: collisions.cc collisions.h vec2d.h
|
||||
|
||||
|
||||
.PHONY: run
|
||||
|
Reference in New Issue
Block a user