Ooops
November 28, 2020, 10:46:01 AM

Author Topic: [bb] Project PLASMA FPS 2004: How To Get Started Guide. by Techlord [ 1+ years ago ]  (Read 862 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
Title : Project PLASMA FPS 2004: How To Get Started Guide.
Author : Techlord
Posted : 1+ years ago

Description : HOW TO GET STARTED WITH <a href="../Community/posts7f5b.html?topic=39819" target="_blank">Project PLASMA FPS 2004[/url] and <a href="../Community/postsbb60.html?topic=42211" target="_blank">PersistantWorld3D[/url].

Theres a lot going on with the Project, so to find out what you can help with take a gander at their TODO List. If there is a Task that you would like to assist another on, let them know and collaborate.

The Guidelines below are provided to assist Community collaboration.  Happy coding and welcome to the team.


Code :
Code: BlitzBasic
  1. ******************************************************
  2. CODE MODULE CONVENTIONS
  3. ******************************************************
  4. When submitting code modules for incorporation into PLASMA 2004
  5. please ensure that the following standard is used when naming your
  6. module and public functions.  
  7.  
  8. Syntax:
  9. [Object][Purpose] (ie: ClockSet)
  10. [Object][Property][Purpose] (ie: ActionIntSet(myaction,index,255))
  11. [Object][SubObject][Purpose] (ie: DatabaseRowNext(db))
  12. [Object][SubObject][Property][Purpose](ie: CameraRumbleXSet(camera,2.0))
  13.  
  14. This naming convention applies to all Constants, Global Variables
  15. , Arrays, Types, Functions, and Labels to prevent code conflict.
  16.  
  17. ******************************************************
  18. CODE MODULE INTEGRATION
  19. ******************************************************
  20. All code modules should be stored in a independent *.bb and provide
  21. a Function for Initialization, Game Loop Update, and Termination
  22. (Memory Removal) to be used in the Main.bb. These are the only functions
  23. allowed in the main.bb.
  24.  
  25. Main.bb Example:
  26.  
  27. .ENGINE_INCLUDE
  28. Include "player.bb"
  29. Include "bots.bb"
  30.  
  31. .ENGINE_START
  32. playerStart()
  33. botsStart()
  34.  
  35. .ENGINE_UPDATE
  36. While Not KeyHit(1)
  37.         botsUpdate()
  38.         playerUpdate()
  39.         UpdateWorld()
  40.         RenderWorld()
  41. Wend
  42.  
  43. .ENGINE_STOP
  44. playerStop()
  45. botsStop()
  46.  
  47. ******************************************************
  48. CODE/MEDIA FILE STRUCTURE
  49. ******************************************************
  50. TBD. Proposed File Structure. Need your input.
  51.  
  52. <Root>
  53.     <Engine><Application> (source code)
  54.         Main.bb
  55.         OtherCodeModules.bb
  56.     <Game> (media, scripts, dat files)
  57.         Engine.exe
  58.         <Data>
  59.             <2D>
  60.                 <Textures>
  61.             <3D>
  62.                 <Maps>
  63.                     map.b3d;*.3ds
  64.                     map.dat
  65.                     prop.b3d;*.3ds
  66.                     prop.script;*.dat
  67.                     map.jpg;*.png,*.jpg (textures)
  68.                 <Players>
  69.                     player.b3d;*.3ds
  70.                     player.jpg;*.png,*.jpg (textures)
  71.                     player.script; *.dat
  72.                 <Weapons>
  73.                     Weapon.b3d;*.3ds
  74.                     Weapon.jpg;*.png,*.jpg (textures)
  75.                     Weapon.script; *.dat
  76.                 <PowerUps>
  77.                     powerup.b3d;*.3ds
  78.                     powerup.jpg;*.png,*.jpg (textures)
  79.                     powerup.script; *.dat
  80.             <Audio>
  81.                 <Music>
  82.                     musicfiles.wav;*.ogg,*.mp3,*.mid
  83.                 <SoundFX>
  84.                     soundfiles.wav;*.ogg,*.mp3,*.mid
  85.         <Server>
  86.             Server.scripts
  87.         <Client>
  88.             Client.scripts
  89.             <UI>
  90.                 ui.jpg;*.png,*.jpg (images)
  91.                 ui.script;*.dat
  92.     <Tools>
  93.         Tool.exe; Tool.bb
  94.     <Docs> (.html format)
  95.         <Engine>
  96.         <Game>
  97.         <Tools>
  98.  
  99. ******************************************************
  100. CODE MODULE REMARKS
  101. ******************************************************
  102. Functions should provide remarks that describe their purpose, parameters,
  103. and return value. This information will be used to produce documentation.
  104.  
  105. Example:
  106.  
  107. Function botScan(this.bot)
  108.         ;Purpose: Performs collision check between the bots scancone
  109.         ; and all the players bodies. If TRUE the bot will attack.
  110.         ;Parameters: bot object
  111.         ;Return: None
  112.         For player.player = Each player
  113.                 If MeshesIntersect (thisscancone%,playerentity %)
  114.                         thisstateofmind%=BOT_AI_STATE_ATTACK%
  115.                         this    arget=playerentity%
  116.                         Exit
  117.                 EndIf
  118.         Next
  119. End Function


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal