Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MrPlow

#1696
I get my screen text print overlaying on top of the previous screen images...do I need to clean the back image or something?
#1697
Great stuff, really useful info.

I feel more of these essential nuggets should be added by those wishing to help promote GLB to the newer users.
#1698
NEW VERSION up above 1.2

Some fixes and updates

Enjoy
#1699
Thanks Ian

I have a populate screen function that I run before each show screen and I just pop them into the keypress loops each time ensuring a similar main loop effect like your sample code.

Seems to work well...new version in the beta section of the forum...plays much better now...
#1700
Quote from: Schranz0r on 2013-Aug-31
"WHILE TRUE" - Loop for keyevents?!

pls show me your code!

This is a function for getting my key event...but now i have to use showscreen...

Code (glbasic) Select
FUNCTION getdir:

WHILE TRUE
SLEEP 5
IF KEY(71)
xm = -16
xy = -16
BREAK
ENDIF

IF KEY(72)
xm = 0
xy = -16
BREAK
ENDIF

IF KEY(73)
xm = +16
xy = -16
BREAK
ENDIF
IF KEY(75)
xm = -16
xy = 0
BREAK
ENDIF
IF KEY(77)
xm = +16
xy = 0
BREAK
ENDIF
IF KEY(79)
xm = -16
xy = +16
BREAK
ENDIF
IF KEY(80)
xm = 0
xy = +16
BREAK
ENDIF
IF KEY(81)
xm = +16
xy = +16
BREAK
ENDIF
WEND
ENDFUNCTION
#1701
Quote from: Ian Price on 2013-Aug-31
SHOWSCREEN will only display whatever is happening within that loop, if it's not displaying anything then whatever you're drawing is not in that loop.

Can you share the bit of code to show us what you are doing?

Ahh, I see ... Within current loop ... Making sense now what was happening
#1702
Looks like I should update all my key press loops with show screens but that also means Adding screen populating to each loop .... Arrgghh

Is this what every one else has to do.? Best practice?
#1703
The showscreen creates a blank black screen when done within my loop?
#1704
My game is still hanging  in WHILE loops where no screen activity is processed...any ideas on how I can fix this?

(hangs)
SHOWSCREEN
WHILE TRUE
SLEEP 5
   IF KEY() THEN

   IF KEY() THEN
WEND

(doesnt hang but this is not ideal for me)
WHILE TRUE
SHOWSCREEN // dont want a showscreen every loop
   IF KEY() THEN

   IF KEY() THEN
WEND
#1705
I discovered that my while wend loops for keypress events are causing the hang due to no Showscreen activity...
is there an alternative to this?

I dont want to run through hoops and re-create screen refreshes on every loop if i can avoid it...

"Sleep" within the loop doesnt seem to help either...
#1706
Thanks Ian,

Must check out the dodgy CPU swimmer...should not have happened...

On the boats leaving behind men I think I might have solved that one... I allocate seats to each viking...but dont think I was emptying them correctly after the vikings left the boat. So the boat thought it was still full...

Also boats should collide with each other in my current version, as per the original.

I will update the exe later on with fixes.

G




#1707
Quote from: okee on 2013-Aug-31
Never played the original but this is interesting
Just a few notes

1. A grid would be nice just to easily calculate the distance you want to move a unit
even just a very feint coloured one.
2. the game doesn't end after you defeat last enemy
3. had a section of land on left that was 2 squares wide, the enemy pulled onto it in a boat
once i defeated the enemy i couldn't get past the empty boat
4 also sometimes when i put a unit on a boat and the boat pulls away the unit is left in the sea

Thanks for testing it Okee...

On the grid request - i recall the calculation of the squares was part of the in-game fun.
I actually have a grid that I setup in the development version I could add in but dont know if that adds or takes away from playability....(especially when humans get it very wrong...hotseat games are fun when humans miscalculate)

Item 2 - game not ending .... will add something for that now.

Item 3 - boats - i think are meant to block other players - but others believe they shouldnt I could change that.

Item 4 - strange one, I have to look to see whats causing that...? Did you come in contact with other obstacles when this happened?

#1708
Thanks Ian

Yes, I must be doing something mad for that mode!
:doubt:

I forgot to mention (space bar) skips units ... Doh!


#1709
Cheers Guys,

I have spotted at least 1 bug so far...but nothing that will stop the plundering!

Grouping units hmmm??...noted...but could be a "version 2" feature...

I am thinking of "Rise of the Valkeries" as a theme tune? Yes - No?

This is my first GLB game project.

I notice some wav files dont send a handle back as quick as other wav files...is this a GLB issue? Or wav format issue?



#1710
Here is my UPDATED beta version [updated with version 1.6.3]

1.6.3 Updates:
-       Added option to turn on a grid when 'G' is pressed when human viking is first highlighted

1.6.2 Features / Updates

-   Added horns / treasure chests
-   Catapults can be destroyed by enemy vikings
-   Fixed collison issues
-   Boats dont ram
-   Boats dont need full water access to move
-   Boats can only be destroyed by Catapults
-   Drunks fight and attack randomly
-   Enemy drunks can be recruited when collided with
-   Boats can be stacked to form bridges
-   Castles can be attacked from the sea
-       CPU (AI) buying decisions more cautious
-       CPU gold depleats but they can collect gold also



1.2 updates/fixes:

- hanging screens resolved
- "men falling out of boats" fixed
- victory screen added
- prices of units added
- bottom panel graphic {still to be completed}


Gameplay features:

- 1-4 player hotseat or cpu
- better CPU player AI
- longboats are better than original (not as restricted)
- more gold at start (may revise this)
- true retro graphic style
- only keyboard version for now

Still to do:
- fix some windows alt-tab issues. (mostly)
- add more sound and music ?
- mouse controls
- plus any other bugs you might spot...


FROM THE ORIGINAL INLAY CARD
------------------------------------------
TACTICS
The following are some tactics that can be tried, and the names of the
people who use them:
The Admiral                        Buys lots of boats ...
Captain Birdbrain               Gets them stuck in the ice!
The Alcoholic                      Seems to encounter a lot of drinking horns and has
                                          more drunken army than sober ...
Temperance                       Uses the catapults to destroy the drinking horns.
Whizz-Kid                          Buys lots of catapults ...
The Traditionalist              Never buys a catapult (too new-fangled!).
The Peace Lover               Keeps out of fights, builds up an enormous army
                                         and waits until the other players have virtually
                                         eliminated each other.
The Miser                          Keeps on bringing back treasure to build up the
                                         Gold hoard ...
The Spoiler                        Stops the Miser by catapulting at the treasure box.
The Bridge Builder            Places boats to make a static bridge, to move
                                        armies across the Fjord.
The Hero                          A drunken Viking who attacks and destroys an enemy
                                        castle ...
The Thinker                      A drunken Viking who gets sobered-up by the enemy,
                                        and joins them.
The Optimist                    Attacks ALL the other players in the same turn.
Three Blind Mice              Three HUMAN players who fight and destroy each
                                        other so that the final winner is the COMPUTER.


Hope you like it...;-)

Any annoying bugs please let me know...

Gary