GameCreator - A mini game engine (source code)

Hello

Lately I decide to make my first game. To do so, I first try to make my own game engine and here I’m with GameCreator. Ok it’s not extraordinary for the moment but it’s a work in progress.

GameCreator is a small game engine with :

-physic (object are consider as point)
-camera options
-keyboardEvent
-mouseEvent
-event/action logic

You can check my demos here : http://www.gudradain.byethost12.com/GameCreator.html
Control the blue sphere with wasd. (Sorry the site is in french).

My goal with this project is to make a racing game in 2D a bit like Mario’s Kart.

I hope you enjoy the demo

Gudradain

looks cool.

It glicthes my mouse movement though :confused:

There are some slowdowns but it works here under Mandriva Linux 2007 with Firefox 2. Please avoid spelling mistakes on your website (French is my mother tongue too). Good luck.

works very well here and I especially like physic but I have two notices :

  • you handle WSAD (QUERTY) as several other demo around here, what about AZERTY ?? why not using arrows keys ?

  • most important : I hate when something popup and especially webstart, does real Applet possible ?

Thx for testing it.

Could you describe what kind of slowdown and mouse glitch you experience? I’m aware that if a demo is running and you mouse over something that popup a message (like the X of the window that popup ‘‘close’’) but only when I launch the program from netbeans… Also, my cpu usage stay below 5% all the time will it run ???

I’m a little bit surprise that it works on linux :o I code everything on windows and I never try it on linux. But I’m glad it work.

Thx for telling me about the keyboard azerty (I just learned that it existed). I will add arrow key control in the next version.

For, the Applet I must say that I never use them so I will check if the game can run fine on them without a lot of change and if yes I will try it.

Gudradain

Hello

I finish my first game. It’s Pong!!!

Webstart here : http://www.gudradain.byethost12.com/pong.jnlp
You control the red sphere with wasd and the blue sphere with the arrow key.

Tell me what you think.

Cool physics in your pong game but you should implement a computer player!

That is cool.
Some improvements:
Better control of the paddles, like able to go up and down slightly.
Paddles moving faster.
Have a min speed on the ball, e.g if you hit the ball on an angle slowly, it will take a min slowly bouncing away to the top heh.

[quote]Cool physics in your pong game but you should implement a computer player!
[/quote]
+1

yes it will be fun to play against CPU (maybe you can also see if possible to add some AI features on your game engine ?)

Hello

I made a computer player but it’s not yet on the internet version

DzzD, what do you mean by ‘‘maybe you can also see if possible to add some AI features on your game engine ?’’ To tell the truth I have no idea how an AI could work. I have a logic part that consist of if event A happen then trigger action B. Is it something like that?

[quote]DzzD, what do you mean by ‘‘maybe you can also see if possible to add some AI features on your game engine ?’’ To tell the truth I have no idea how an AI could work. I have a logic part that consist of if event A happen then trigger action B. Is it something like that?
[/quote]
yes that’s it, your engine aleady handle some graphics and some physic, I dont know how to present the AI module but yes basically it wil be something like that : trigger/action, but that’s just an idea you can add it later if you found any interrest on doing it.

I put the single player version online (it’s the same link). Tell me what you think about the computer player :slight_smile: Hard enough?

Mouse input are there :slight_smile: and I add a shooting Demo.

I also add multiple level for the object so you can choose with what object another object can collide (see the shooting Demo)
http://www.gudradain.byethost12.com/GameCreator.html

I played pong again.

the paddles are way to bouncy.

could you show us the actual game engine?

I am curious what you mean by “game engine”.

do you mean like game maker kinda thing.

or like a library?

Hello h3ckboy

If what you mean is that the computer completely beat you, well that’s the desired result ;D But seriously, I know it’s a bit tricky at the begin but it became easy enough with a little practice (I beat it 90% of the time now)

What I mean by game engine is well game engine. I check the entry on wikipedia and it looked like what I was trying to do so I take the name and add mini because it only manage basic graphics (’‘circle…’’), some physics and basic artificial intelligence.

For the source code, I’m still undecided to release it now. I was definitively planning to release it at some point but I wanted to get a better game engine first. What I realize currently is that I’m cruelly missing experience in a big complete game to be able to add the good feature with the right architecture in my game engine. (So if anyone want to hire a free programmer I’m here).

Hello

I port Pong to Slick :). You can test it here :
http://www.gudradain.byethost12.com/gCreatorSlick.jnlp
(Esc : exit, use arrow key to control, press space to make the ball moving)

From what I test so far Slick seems really great and handle for me all the trouble of the painting and the gameLoop, which was the 2 things I had the most problem with.

Since I don’t need to worry about the drawing (and gameLoop) anymore, I was thinking to specialize my engine in making the gameplay of 2D games. So here is my roadmap for now :

  • Improving the physics by adding line object (there is only circle currently)
  • Adding a grid map and pathfinding algorithm
  • (maybe) Including phys2D

Hello

Here is the source code of GameCreator and of the Pong game I made with it in Slick.
http://www.gudradain.byethost12.com/GameCreatorSource.zip
http://www.gudradain.byethost12.com/PongSource.zip

If anyone check it pls give me some feedback. (even if you think it suck)

Could you move it in WIP?

Thx