Main Menu

Uplift - finished project

Started by Laskiapina, July 06, 2010, 02:10:22 AM

Previous topic - Next topic

Laskiapina

I wanted to advertise this little project too :)
In this game you control this little white silhouette girl. You use mouse to help her get in places she can't reach without help.
I think this turned out fine. It doesn't have any sounds mainly because I didn't find any suitable ones at the moment.
I added a possibility to make your own levels too.

Homepage is the same: http://notyetnamedproject.webs.com/games.htm



You can download it from: http://dl.dropbox.com/u/7879998/Uplift.zip

Added a level editor!
Controls for level editor:
Right handed: Arrow keys and Z & X for drawing. Press Space to select block. Hold shift to move faster.
Left handed: WASD & O & P.




Edit: attached screen shot for PB IDE news feed.
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

monkeybot

hah thats brilliant,sounds simple as an idea but is rather like patting your stomach and rubbing your head!(or is it just me?)

Nice one. I like very much

Laskiapina

Glad you liked it :)
Some people have had problems with the controls at first, but they usually get the hang of it :P
I still have a lot work with the code though. And maybe I'll do a few more levels.
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

kevin


  Yeah, it's a clever idea, well done!

  Just be careful when using images for the level data though.   As the image depth will default to the screens depth.   So when running in a windowed mode, the screen will inherit the users desk top depth.  If this is an older machine, it's likely to be 16bit.   Which may (depending on how you're loading the image) cause problems when loading the map.
     


Laskiapina

So if the source image is set to 16 bit and so is the program file can it still cause trouble?
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

kevin

QuoteSo if the source image is set to 16 bit and so is the program file can it still cause trouble?

   When an image is loaded, it's automatically converted to the depth of the current PB screen mode.  If it's windowed screen mode, it'll inherit the depth from the users desk top.  So if they're urnning in 16bit, then PB will create a 16screen and all images /fonts etc will use the same pixel format/depth. 

    When we load any image, it's converted from it's stored (on disc) format to whatever  surface depth that PB is currently using.    This can mean pixels get truncated (like when loading  a 32bit image, into 16bit mode)  or zeroed bits are inserted  when loading a 16bit image when PB's in 32bit mode. 

    There's nothing really stopping the level maker from saving the level picture in 8bit, 12bit ,15bit,16bit... 24bit or 32bit in their favorite paint program.  I'd suggest the easier solution would be to only consider the top 5 bits of the R,G,B..  so When reading pixels from the surface, mask it read pixel with $f8f8f8  (Top 5bits RED, Top 5 bits GREEN and top 5bits of Blue)   This eliminates  the potential for such problems to pop up.

    Here's a demo of the problem and the solution



 

Laskiapina

Oh yes, I remembered right - the game reads the colors which it uses to recognize different blocks with POINT commands. They're in every level picture in the left top corner.
Would this still cause problems?
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

kevin


   Point reads the image after it's loaded and converted to the default surface depth, so if the user saves a level image in some truncated format through their paint package and the level decoder is doing absolute pixel comparisons for the blocks (ie... if point(xpos,ypos)=$ff00ff then do stuff) , then it's entirely possible it'll fail for some people.  Masking the colours should  remove the potential for failure though. 



    constant Mask =$00f0f0f0
     For ylp=0 to height 
       For xlp=0 to width 
           ThisColour=point(xpos,ypos)  and Mask ;  Strip the low bits and keep the high bits R,G, & B
 
           if ThisColour = ($ffffff and Mask)
                   do something on white
           endif

           if ThisColour = ($ff00ff and Mask)
                   do something on pureple
           endif

   etc

       next
     next
   



   Although, using a text file is probably a better idea.

   

Laskiapina

QuoteAlthough, using a text file is probably a better idea.
Yeah, that's what I'm planning on to next platformers.

What about custom levels (pics) would have an extra line on the top where players could draw their own color codes - game would read them? Would that work? For this kind of simple stuff.

Sorry if I've missed the point of your last post. To tell the truth I never learned to use masks. in anything.
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

kevin


QuoteWhat about custom levels (pics) would have an extra line on the top where players could draw their own color codes - game would read them? Would that work? For this kind of simple stuff.

  It'll work, but the same potential problem exists.


BlinkOk

that is one tricky game dude! well done!

Laskiapina

BlinkOk: Thank you :)
I have been thinking about making Uplift 2 with easier controls and more creative levels. But I've also been thinking about lots of other projects :P
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

kevin


even just adding a 'level editor' to the current version would add a degree of longevity to it.   

Laskiapina

Quoteeven just adding a 'level editor' to the current version would add a degree of longevity to it.

Not a bad idea... We'll see.
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project

Laskiapina

Just finished the level editor... Tell me what you think.

Controls:
Right handed: Arrow keys and Z & X for drawing. Press Space to select block. Hold shift to move faster.
Left handed: WASD & O & P.
Finished projects so far: Kumiankka, Meals of the Dragon, Fisut, Draw Old, Reikäkopio, Blindage, Escape from Millmier

Homepage: Not yet named project