Apr 27 Major Update!
1) we have pellets. I decided to use a bitmap-style variable "matrix" to create where to draw pellets
2) we have walls. I copied the pellets "matrix" idea for the walls
3) we have collisions. I use the "matrix" to generate Rects and use these Rects inside SectRect() to test...
Documentation
https://archive.org/details/THINKPascalUserManual1991/page/n236/mode/1up?view=theater&q=Identifier
Page 258 states:
1.2 Identifiers
Identifiers serve to denote constants, types, variables, procedures, functions, programs, and fields in records. Identifiers can be up to 255...
THInK Pascal Names.
How long can they be?
According to what I found in the manual, if you turn on “Long Names” in the Compile Options then Procedure names can be longer than 8 chars. But what about const, type, and variable names?
I began using long Const variable names and started having odd...
Apr 22 update
1) new Window menu item: DeveloperView toggle
2) no longer redrawing entire screen for every frame. Now in the offscreen PixMap we draw the entire frame once (startup, window size switching, & updates) and then only draw moving rects (previous location and new location) in...
Okay, we have the beginnings of animation.
But I have some questions for this group.
Right now I am drawing a new animation frame every 2 ticks (TickCount = 1/60th of a second).
I am incrementing the PacDude rect.left by an increment value of +/- 5.
If its below window.left=200 or higher than...
WE HAVE GWORLD, COPYBITS, OFFCREEN.PIXMAP !!!!!
Thank you, thank you @joevt . You are my hero. Please find your nearest cape, don it, wear it proudly, and proclaim that you are the THINK Pascal guru of the known Universe.
🦸🏻♂️⚡️🎉🔥
Thank you everyone for your patience and understanding of my...
Based on advice from @joevt I am attempting once again to try to get me a working GWorld.
Why attempting? Again?
Well, because just like my last 2 hours of attempting this, in order to create/use a GWorld you have to Add a bunch of dependancies:
ConditionalMacros.p
Types.p
MixedMode.p
Errors.p...
@olePigeon yes, thank you. The last time I rewrote PacMan for FileMaker/JavaScript I found those documents online and totally mimicked the enemy AI patterns. Mostly lol. I matched the pays they followed, along with the 2-3 modes, but ignored the slight speed differences.
But thank you for the...
So I guess where I am just plain stuck is how to turn a PICT resource into a PixMap so that I use CopyBits to "draw" the PICT resource PixMap onto the gameWindow PixMap.
Without CopyBits it works great just to use "DrawPicture".
But once I get around to animating 5 moving color PICTs on the...
You have provided me with some excellent possibilities to try out.
Hope is restored, thank you!
I have a basic understanding of handles and pointers. But I notice your use of the @ symbol in your code sample. I’ve seen a few examples in the docs but not many. What is it’s use and purpose?
Apr 17 update.
Nothing but frustration for days. Many, many hours of failures and almost successes.
The issue: CGrafPtrs and CopyBits !!
My new nemesis, uugh.
Let me summarize my failures to hopefully illuminate for you something(s) I have missed so that you can aid me in resolution.
Goal: I...
Got a question that hopefully someone can answer.
Memory Management related.
Apple appears to use handles every time they have a RECORD type variable.
i.e.
PicHandle = ^PicPtr;
PicPtr = ^Picture;
Picture = RECORD
picSize: INTEGER...
Apr 15 update.
We have a proper yellow PacMan and his 9 different animation frames.
In 3 sizes, for the 3 windows.
Available now in a Window menu. Swap live between them. No animation yet, but got all the pngs resized, converted to PICTs, opened in SuperPaint, converted to Drawing layer, copied...