Weekly Qbasic and Qb64 Lesson Topics
March 29, 2024, 12:09:39 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

I have a idea,How do I make into a game ?

Pages: [1]
  Print  
Author Topic: I have a idea,How do I make into a game ?  (Read 505 times)
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« on: February 04, 2011, 11:10:58 pm »

This was sent to me (garry),from another person, my comment:
Although this was written in relation to the Hawk Catches Bunny game, it could apply to various games, and also some programs, it is a useful suggestion.
Quote

 
    To make the type of game that you described you will need to use the following ideas

1] Create 2 pages same size and color depth of your images
Name them foreground and background
Load the images and view each page to verify its correct

2] Make a page to "mix" the background and foreground to
Figure out what your "clearcolor" will be
Copy the background to the mixing page and view it to verify its correct
assign SOURCE to the page with the image and DESTINATION to the mixing page
If you can copy the background page to the mix page then
Reassign SOURCE and DESTINATION and CLEARCOLOR to copy foreground to mix page
View it to verify its correct.

3] If you get this far and it works rejoice!
Next you need to enter into the main loop
Increment co-ordinates to demonstrate movement in the foreground page with an object
Arrange your code to do each step and at end of mixing phase
Update screen with newly update mix page

4] If you get movement then rejoice!
Each one of these steps should be a complete program. Each step is demonstrated
and then we save that working variation as a unique name with a number
The number is the key to the building of the program
Each new variation adds 1 thing into the program and demonstrates onscreen that change

    Lastly if you follow this idea you will build your program and understand it very well.
Later on up the track you can go back to the original variations and change them into some other
idea of a game. This process is creating building blocks. A lot of the building block you will
reuse all your programming life. A complete program is nothing more than simple building block
sewn together with the current idea of what you need to presently achieve. Lots and lots
of simple ideas!
    If you follow this recipe you will understand and be able to modify your program much easier.
Dont try for too much too quickly.
 
« Last Edit: March 22, 2012, 01:54:30 pm by GarrisonRicketson » Report Spam   Logged

Share on Facebook Share on Twitter

codeguy
Newbie
*
Posts: 1


« Reply #1 on: February 05, 2011, 12:10:18 am »

your game is coming along nicely. i have added a few mods myself
http://www.qb64.net/forum/index.php?topic=2724.msg23947#msg23947
mostly housekeeping, but it really should be done for every program using any kind of images. added mouse support for hawk.
« Last Edit: February 05, 2011, 01:40:03 am by codeguy » Report Spam   Logged
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #2 on: February 07, 2011, 07:31:52 pm »

your game is coming along nicely. i have added a few mods myself
http://www.qb64.net/forum/index.php?topic=2724.msg23947#msg23947
mostly housekeeping, but it really should be done for every program using any kind of images. added mouse support for hawk.
Thank CG, and glad to see you registered and logged in,..Also this works great, with the link, to qb64, I had not thought of that, for cross refrenceing posted code or articles. Since the link is above, I didn't see any point in also posting the code here,...but also feel free if you have any samples yu want to post, as demos, or a lesson.  Thanks
from Garry
Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy