Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  GameCreator - A mini game engine (source code)  (Read 2639 times)
0 Members and 1 Guest are viewing this topic.
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« on: 2009-03-07 21:58:13 »

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
Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #1 on: 2009-03-08 04:28:30 »

looks cool.

It glicthes my mouse movement though :/
Offline gouessej

JGO Kernel
*****

Posts: 3558
Medals: 30


TUER


« Reply #2 on: 2009-03-08 10:51:37 »

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.

Julien Gouesse
Games published by our own members! Go get 'em!
Offline DzzD

JGO Kernel
*****

Posts: 2134
Medals: 16



« Reply #3 on: 2009-03-08 11:20:15 »

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 ?


Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #4 on: 2009-03-08 14:31:21 »

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 Huh

I'm a little bit surprise that it works on linux  Shocked 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

Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #5 on: 2009-03-22 18:58:14 »

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.
Offline irreversible_kev

Full Member
**

Posts: 174



« Reply #6 on: 2009-03-22 19:45:47 »

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

JGO Strike Force
***

Posts: 963
Medals: 9



« Reply #7 on: 2009-03-23 05:23:24 »

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.

Current project - Rename and Sort
Offline DzzD

JGO Kernel
*****

Posts: 2134
Medals: 16



« Reply #8 on: 2009-03-23 08:49:22 »

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

+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 ?)

Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #9 on: 2009-03-23 14:34:24 »

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?
Games published by our own members! Go get 'em!
Offline DzzD

JGO Kernel
*****

Posts: 2134
Medals: 16



« Reply #10 on: 2009-03-24 13:01:28 »

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?
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.

Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #11 on: 2009-03-24 19:34:11 »

I put the single player version online (it's the same link). Tell me what you think about the computer player  Smiley Hard enough?
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #12 on: 2009-03-26 12:35:07 »

Mouse input are there  Smiley 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

Offline h3ckboy

JGO Kernel
*****

Posts: 1645
Medals: 4



« Reply #13 on: 2009-03-27 12:22:40 »

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?
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #14 on: 2009-03-27 21:32:49 »

Hello h3ckboy

I played pong again.

the paddles are way to bouncy.

If what you mean is that the computer completely beat you, well that's the desired result  Grin 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).
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #15 on: 2009-04-18 17:14:09 »

Hello

I port Pong to Slick  Smiley. 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
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #16 on: 2009-04-20 16:14:02 »

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)
Offline Gudradain

Sr. Member
**

Posts: 371
Medals: 8



« Reply #17 on: 2009-05-12 21:10:49 »

Could you move it in WIP?

Thx
Pages: [1]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.276 seconds with 20 queries.