• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Recent content by LelandLong

  1. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  2. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  3. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  4. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  5. LelandLong

    Would like to development a new THINK Pascal App for 68K

    THINK Pascal 4.5d4 { Converted with MPW2TPas Tuesday, September 12, 1995 8:55:44 PM } {} { File: QDOffscreen.p} { } { Contains: QuickDraw Offscreen GWorld Interfaces.} { } { Version: Technology: System 7.5} { Package: Universal Interfaces 2.1 in “MPW Latest” on...
  6. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  7. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  8. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  9. LelandLong

    Would like to development a new THINK Pascal App for 68K

    @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...
  10. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  11. LelandLong

    Would like to development a new THINK Pascal App for 68K

    So is this: theBitMapPtr := @theBitMap; Equal to: theBitMapPtr := NewPtr(sizeof(BitMap)); theBitMapPtr := ^theBitMap ;
  12. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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?
  13. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  14. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
  15. LelandLong

    Would like to development a new THINK Pascal App for 68K

    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...
Top