UnderwareDesign
May 19, 2013, 05:16:56 PM *
News: Creeping Angels Work In Progress by bmorris (14th,Dec,2012)
   Home    
Pages: 1 [2]
 
Author Topic: santa's sorta  (Read 5614 times)
Member

« Reply #15 on: December 04, 2008, 05:43:12 PM »


Hi all

OOH OOH DEAR , ive made a boo boo ,
i started each level seperate to make it easier for me to do , but now im having big problems putting them together , bugger ,, lol
well still learning i suppose , next time if i do more than one level i will do them together ,
so for the time being as im running out of time now before xmas , as i have other things i must do i the next few day upto xmas
here is level one , i will try to link them , if not it will have to be 3 demos , or someone else that knows more than me maybe how to link them up ,, sorry if this is the case to BlinkOK who has put in a lot of effort for me , SORRY

mick Sad

10 point for red , green , blue prezzie , minus 10 points for parcel
the idea is that you start off with a 100 mixed items and carry what you collect to level 2

part1.rar (2201.94 KB - downloaded 127 times.)
Logged
Member
Development Team


WWW
« Reply #16 on: December 04, 2008, 07:12:41 PM »


 Mick,

  Nice, this look and plays very well also !   

 
Quote
i started each level seperate to make it easier for me to do , but now im having big problems putting them together , bugger ,, lol
well still learning i suppose , next time if i do more than one level i will do them together ,

   So each level is different program completely ?  -  This is not a great idea, as you've no doubt found out.  Things will clash all over the place when you try and merge them.

   Without seeing all of the code,  this is a guess,  but I'd say the easy option would to wrap each level into it's own Function.  This will get rid of some of the clashing problems with variables/arrays.  Not with media though.  Since you're still explicitly using Media indexes.   If you changed to a dynamic approach the clashing problem will vanish.

 


 


Logged

Member


« Reply #17 on: December 05, 2008, 03:41:43 AM »

hey micky dude. that looks greeat. nice game mechanic too. good luck with the other levels dude.
i wouldn't worry to much about getting it done before chrissy. it's more about learning the language i think.
i'd still be interested in it if you finished in july so just keep plugin' away ok.
Logged
Member

« Reply #18 on: December 05, 2008, 05:19:25 PM »

Hi all


So each level is different program completely ? yes sure was , silly billy i am i know ,

well good news all levels now linked , a small bug in level one to be iron out tomorrow hopefully
also i am still having no luck with the flash splash screen , been on it for a while tonight but no joy
what i am going to do i think is put game up , then maybe someone can add it for me

ok thanks for all the kind words and support Kevin and BlinkOk , kept me plugging away at it all day
im wacked now ,
hopefully will be all done for sunday

mick Smiley

ps im smiling again now ,, but what fun , no hair but a smile , lol
Logged
Member

« Reply #19 on: December 07, 2008, 06:43:05 AM »

Hi all

OK here it is then , ive left it in 1024x768 full screen for time being , but if you want to add flash splash screen then by all means , i just cant seem to suss it out ,
just delete screenvsync on , to setfps to whatever seems the right speed .
Thanks to BlinkOk for santa's animations and splash screen work ,, many thanks
Thanks to Kevin for all the help and him and he's team for this great program

instructions..

level 1 , use mouse to collect the red , blue and green prezzies , but not the orange parcels
100 point per prezzies , but if you collect a parcel then score back to zero
all the prezzies you collect will carry forward to level 2 to be sorted.

level 2 , use mouse and keyboard , keys R , G , B .. move mouse target over prezzie and then press R if a red prezzie
press G if a green prezzie and so forth but be quick ! , this will sort them out
all prezzies sorted out correctly carried forward to level 3 to be delivered.

level 3 , use mouse left button to drop prezzies into house with red arrow in chimney

GOOD LUCK , and MERRY XMAS to all..


heres the game

new download
Get Santa Sorta (login required)




mick  Smiley

yep there is a little bug on level one , but hey !!

ps forgot to put up code , will post this asap, its messy so ile try to tidy it first
Logged
Member
Development Team


WWW
« Reply #20 on: December 07, 2008, 08:42:50 PM »


 Good job, this is excellent ! 
Logged

Member

« Reply #21 on: December 09, 2008, 05:33:06 AM »

yes im very pleased with this my 3rd attempt , the download backdrops and BlinkOk santa animations make the game look good , i will post code as soon as i tidy it up a bit in a day or 2 as i have other things to do for now , hopefuly someone will add BlinkOk splash screen as well , a slight bug in level one where a prezzie apears from nowhere , i cant see where the codes wrong? but must be someware , i have 3 or 4 more game ideas i will start as soon as i can , but i think i will have to go some to beat the look of this game with my artistic skills , ie none , lol ,,

mick Smiley
Logged
Member

« Reply #22 on: December 09, 2008, 03:55:03 PM »

Hi all

ok heres the souce file for the game,
would be great to se the santa splash screen BlinkOK did put on the frontend of this , if anyone does do it would they please post souce so i can see how its done..

I also just wanted to say as a novice programmer , for doing lots of types of games , shooters , froogie , santa's sorta , etc i found the 500 bubbles demo a great place to start..
using the types and dim arrays commands , they are very powerfull commands and quite easy to pick up with great results , hope this helps any novice like myself..

thanks
mick Smiley

santa's sorta souce.rar (10.42 KB - downloaded 130 times.)
Logged
Member
Development Team


WWW
« Reply #23 on: December 10, 2008, 04:26:52 PM »

  Thanks for the posting the source code.   You'll have to set your own little Mick's game site soon.  Already got enough games Smiley   Concerning the intro, if you had the appropriately sized gfx, it wouldn't be difficult to write a PB version of the intro.   
Logged

Member


« Reply #24 on: December 15, 2008, 05:50:22 PM »

Hoh hoh hoh mick Grin

Here is my way... It isn't 100% but it will do the job... Anybody knows why the flashfile is jerking at the loading Huh

The following Part of code I've insert at the beginning  (see attached file for complete version. You need all GFX from the Release Version of the game!)

PlayBASIC Code:
#Include "PBFlash.pba"

OpenScreen 1024,768,32,1

SetFps 60

_Init(GetScreenHandle())

SplashScreen:

SantaFlash = NewFlash(CurrentDir$() + "gfx\santas_sorta.swf", 0, 0)
   
ShowFlashStart:

   If GetFlashVariable(SantaFlash, "_root.gameMode") = "play" And IsFlashPlaying(SantaFlash) = 0
       HideFlash SantaFlash
       Goto Init
    EndIf
   
Goto ShowFlashStart   

Init:

DeleteFlash SantaFlash


;----------------------------------------------------------------------




Please take notice that you have to play the game in windowed mode if you want to implement a Splashflashscreen (see here)

2 Hints for Kevin:

If I run my solution in Debug-Mode I got an error and found cruft code at the end of PBFlash.pba. Can you proof this in your Version pls and maybe correct it?
Quote
This was in my file at the end:
#IF PBDebug=True
   #IF PBDebugMode=2
      #Trace _PBLIB_ACTIVEX_PREVDBGSTATE
   #ENDIF
#ENDIF



Second:
Quote
 ; make a new window
openscreen 740,500,16,1

;attach pb flash to it
_init(GetScreenHandle())

This is a very usefull hint I missed in the Helpfiles... Maybe it find his way as a part of the file "About the PBFlash library - How to use this library"

cheers Big C.


santa's sorta souce with flash.zip (243.82 KB - downloaded 121 times.)
Logged
Member

« Reply #25 on: December 16, 2008, 02:08:21 PM »

Hi Big C.

Thanks for post , see what you mean , its very jerky , would be nice if Kevin could av a look when he gets time as he must know whats stopping it running fluid ,
i did muck around with it for about a hour , but ive not really got a clue what im doing , apart from frezzing my p.c a few times , lol

Thanks again

Mick Smiley
Logged
Member
Development Team


WWW
« Reply #26 on: December 23, 2008, 06:01:36 AM »

  if you use flash with PB, you still need to SYNC in your PB app.    This will keep the app running at a more constant speed,  but it's never going to super smooth.  

  ie.
PlayBASIC Code:
ShowFlashStart:
      cls 0

         If GetFlashVariable(SantaFlash, "_root.gameMode") = "play" And IsFlashPlaying(SantaFlash) = 0
             HideFlash SantaFlash
             Goto Init
          EndIf

      sync   
      Goto ShowFlashStart   



Logged

Pages: 1 [2]
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2009, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!