Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 11:40 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Little Android
PostPosted: Wed Apr 06, 2011 7:48 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Theme: android are not always friends of mine
Entry: Little Android
Tecnology: Slick with MarteEngine


I've lost too much time thinking about it, so it's time to write something :D

1) platform: jump, run and explore
2) minimal graphics: I don't want to waste time on make graphics animations and so on and I want to follow PRIOR example. Player as a square, with a little eye
3) in-game editor: make levels could be a pain if you have to edit in tiled and then import/play and so on.. so my idea is to have an in-game-editor to make levels
4) code: I'll use as much I can from MarteEngine
5) metroidvania style? Dependes.. need more time to design great levels :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 06, 2011 10:12 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Day one:

Done:
- setup of new project,
- basic movement, jump, gravity (tnx to MarteEntine),
- player sprite (right/left)
- editor:
- place block and player
- layer change
- transition between editor and game world done
- save/load method using xml with Xstream: bad.. slow and I don't need to save everything of an entity.. just (x,y,type) is enough!

To Do:
- find an efficient way to save entities information.. for now on a xml.. there is a simple way to store some information (x,y,class) without go mad ? :D

next day for it :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2011 3:01 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Maybe solution is to have a simple way to store my information: CSV (simple, elegant, fast, easy to parse). Every line is an entity.. and because everything in MarteEngine are entities.. I'm in :D

1) add a method public String toCsv() to Entity, this method write down in csv format base information (x,y,name,type), for example

284,480,"block","SOLID"

2) call this method for every entity defined into editor
3) save level.csv file
4) load level.csv when editor starts

todo: need some sort of EntityFactory ?

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2011 9:52 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Day two:

This is good day:

Done:
- working load/save using csv, defined a "bigger" level with 465 entites and only 10k of sizes!!
- editor now works better with quick erase all key, arrows for movements, grid relative to screen and not position
- added spikes so player can lose

To Do:
- set main loop: dead/restarting/ find end of levels,
- think a GUI
- add door/keys

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 6:49 am 
Offline
Game Developer

Joined: Sun Nov 12, 2006 11:18 pm
Posts: 890
Location: Germany
I would love to have a look at your editor :wink:

Right now I'm loading levels from ascii files, pretty similar to StarCleaner.
An ingame editor or at least some graphical editor would be cool...

Did you create some EntityFactory or is it part of your level loading code?

_________________
Right Angle Games | Marte Engine
Back to the past | Star Cleaner | SpiderTrap


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 7:13 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Tommy wrote:
I would love to have a look at your editor :wink:


for now the onlye thing visually that change from gameWorld is grid :D


Quote:
Right now I'm loading levels from ascii files, pretty similar to StarCleaner.
An ingame editor or at least some graphical editor would be cool...

Did you create some EntityFactory or is it part of your level loading code?


Next thing in my todo list is to have a little GUI for both Editor and Game World.. but I don't want to waste too much time on it.. it's a game, not an editor :D
To create entities for now I don't have a factory, but just methods for it, addPlayerToWorld, addBlockToWorld and so on :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 7:29 am 
Offline
Game Developer

Joined: Sun Nov 12, 2006 11:18 pm
Posts: 890
Location: Germany
Gornova81 wrote:
Tommy wrote:
I would love to have a look at your editor :wink:


for now the onlye thing visually that change from gameWorld is grid :D

But don't you need a way to select the entity you want to place into the world? And some way to erase entities? How about the depth of an entity?
Saving and loading of designed levels?

_________________
Right Angle Games | Marte Engine
Back to the past | Star Cleaner | SpiderTrap


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 9:08 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
- select entities using mouse wheels (it's a list, designed to work with little numbers)
- erase using right click,
- depth of an entity into code :D
- save and load using keyboard :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 1:24 pm 
Offline
Game Developer

Joined: Sun Nov 12, 2006 11:18 pm
Posts: 890
Location: Germany
Okay, I'll buy it :lol:

Seems like a very simple approach but also very good solution to get a map editor very quickly done! Map scrolling via cursor keys?

_________________
Right Angle Games | Marte Engine
Back to the past | Star Cleaner | SpiderTrap


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2011 3:15 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Of course map scrolling using cursor keys :D

TODO:
- find a way to center map on player position when editor starts,
- how to place backgrounds?
-

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2011 8:36 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Day three:

Time to get motivation back here two screenshots:

Image

In game we can see brave hero against destiny

and..

Image

level editor: place tiles, (block, player, spikes) and have fun with it.

Bonus feature: wink animation when player stand still for some times :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2011 9:02 pm 
Offline
Game Developer

Joined: Sun Nov 12, 2006 11:18 pm
Posts: 890
Location: Germany
Thanks! That motivated me :lol:

Keep the art style, I think you're on the right track there!

_________________
Right Angle Games | Marte Engine
Back to the past | Star Cleaner | SpiderTrap


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 19, 2011 9:17 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Tommy wrote:
Thanks! That motivated me :lol:

Keep the art style, I think you're on the right track there!


thanks, for now is just a not-game, but I'll work on that :D

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2011 3:07 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Todo:
- find a nice music,
- add doors with keys,
- add power up to jump higher,

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 12, 2011 7:44 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1317
Location: Italy
Not an update, but a declaration of no time for this game :(

no contest this time :(

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group