Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Eritey

Pages: [1]
1
After learning SFML and playing around with it for just over a year, I've been making my own mini engine for me to use to make basic games. Even though it works well, I feel its extremely poorly programmed, I see a lot of people saying that manual memory allocation (= new object) is terrible and you should never use it.

I use it ALOT, so I feel its about the right time to change my ways and learn to program correctly. I feel as though uploading the code I've created so far would be the smart option so you can all see how and where I've gone wrong but I'm not really sure the best method.

Link to my git: https://github.com/ChrisMelling/basicGame

The way I went about the design was. Each GameState knows of the application class and methods to access its information then each Entity knows about the state it was created in, so therefore the entities are able to access practically all methods in the game, all the back to the Application class.

This seem'd to make sense in my head but you're all about too rip it to shreds but I welcome it with open learning arms.

Edit: I fear I'm going to be shouted at a lot for doing this, but how terrible is it to use reinterpret_cast/dymanic_cast?

2
SFML projects / First sfml gave, very basic!
« on: January 29, 2013, 09:44:19 pm »
Good evening,

Thought It was about time I showed some people the extremely basic game I've been working on. It was really a learning experience of how to create the framework around a game instead of aiming to create a game.

I guess the main thing I learn't was to create an entityManager to house all the entities in the game instead of having bits and bobs everywhere. Still not sure If I implemented it as correctly as I could have but I'll get up a github later so you lovely people can rip my code apart and tell me how terrible it is.

Controls:
  • Left mouse to fire
  • WASD to control the player
Objective:

The idea of the game is that you have to dodge/attack enemies, after 15 seconds the wave resets and the next week the enemies will be greater in number and travel slightly faster.

Red enemies spawn randomly and will seek you out in an attempt to destroy you.
Blue enemies will all spawn at the start of a wave but will travel randomly around.

Todo:
  • Add in more interesting enemies
  • Create a nice looking hud
  • Make the main menu and game over states nicer looking
  • Add sound

Download

http://puu.sh/1UxZG

3
Network / Sending information to a Mysql table
« on: January 29, 2013, 08:29:29 pm »
For example, say I in my game I have a player name and I want to be able to send their player name and score to a Mysql table to form a highscore results page. How would I go about doing this? Would the game interact with the table directly or would I connect to a php script which would interact with the Mysql table?

Pages: [1]
anything