My First SFML Game.

My first game made using sfml(or anything else). What do you guys think?

The Zip file has the executable inside, and the sources are just cpp files. xD

hosted on windows skydrive, its in the maze folder:

https://skydrive.live.com/redir.aspx?cid=ba423a5032490cf2&resid=BA423A5032490CF2!308
Last edited on
Pretty cool :P but here are a few suggestions..

In level.cpp you dont need to have all these includes

1
2
3
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp> 


You can simply have

 
#include <SFML/Graphics.hpp> 


Personally, I would have all the processing in the main.cpp, and then have an input file to load the level layout..
Also, if you feel good about it, build a level creator (makes life so much easyer) :D
Oh, thanks xD.

What do you mean processing? i kinda know nothing about game design.....

and about the level editer, the layout is random(its just that the seed is the same each time). :)
It's pretty cool. I'm mid way through my first graphical game now. What are your plans now?
Thanks xD. What are you making your game about?
I think I'm gonna go try and write a half decent collision detection so i have something to use in any other games I make in the future. the collision detection in this game is really messed up and unreusable(and caused me a lot of grief).
Stupidly I started with a too complex game for a beginner and am making a platformer. I've been working on it for months and i've had to rebuild it from scratch like 3 times now.

Collision detection is a right pain isn't it. Ha. I still haven't managed to get it working exactly as i want it but its close. It's only rectangular aswell. I would hate to have to do other shapes or god forbid, curves!:P
hehe cool. i didnt realize my mouse moved the ball. i started it up and lost 3 seconds later. took me a few times. at least you didnt have to worry about graphics in this one. nice work though.
@chr15chr15 Oh, first one i tryed was also a platformer.........i gave up after a month of working on still about 5 nonfuctional functions. the idea idea i tryed for collsion dectection in that one was to use linear systems to calculate if the vector of movment and the surface intersect. I messed up in too many places so it didnt work out too well for me :(

the collision dectection in this one is bad and not actually a circle. it only uses the point at the bottom of the circle for collisions xD.

@acorn Thanks xD. I though about writing that you use the mouse to move the ball, but I was like naahh xD.

note: made a few minor changes...
Last edited on
By Proccessing (may not be the right word) but i mean have an "interperator" in the main loop that takes a "map" file and turns it into all the blocks and such.

If your game involves heavy physics, check out box2D
its what im using now for my platformer (started last week) and so far so good!
Topic archived. No new replies allowed.