10.03.2019 - Round 1 results of our "A Love Letter For FreeBASIC" game dev competition have been published. Please be sure to check the results thread: http://games.freebasic.net/forum/index.php?topic=629.0. Don't forget that the competition is continuing with a round 2, lasting till 29th of April, 300 USD first prize. Stay tuned!

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:28:12 AM »
and the last file that you have to add is win.bi

Code: [Select]

dim win as any ptr


dim as integer winsx,winsy,winpx,winpy
   winsx = 440
    winsy = 25
    winpx = 500
    winpy = 200
12
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:27:10 AM »
DECLARE SUB Cwindow(winax AS INTEGER,winay AS INTEGER,winex AS INTEGER,winey AS INTEGER,title AS STRING,wcolor AS INTEGER)
Code: [Select]
SUB Cwindow(winax AS INTEGER,winay AS INTEGER,winex AS INTEGER,winey AS INTEGER,title AS STRING,wcolor AS INTEGER)
LINE(winax,winay+1)-(winex+1,winey),RGBA(0, 0, 50, 0),    BF

LINE(winax+1,winay+1)-(winex-1,winey-1),rgb(238, 238, 238),  BF
LINE(winax+2,winay+2)-(winex-2,winey-2),rgb(30, 32, 65), B
LINE(winax+3,winay+3)-(winex-3,winay +21),rgb(30, 32, 65), BF


END SUB
13
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:26:33 AM »

an make the file mouse.bi

Code: [Select]
Dim as integer Mouse,x,y,buttons



dim as integer mousex,mousey
14
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:25:41 AM »

next file is icons.bi

Code: [Select]
dim icons as any ptr
dim as integer  iconsposx,iconsposy
dim as integer iconssizex,iconssizey

  icons = imagecreate(iconsposx,iconsposy)
 bload exepath + "/pic/icon.bmp",icons
 


    iconssizex = 44
    iconssizey = 46
    iconsposx = 46
    iconsposy = 46
15
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:24:49 AM »
file 2  button.bi


Code: [Select]
dim button as any ptr
dim as integer mousebuttons ,buttonposx,buttonposy
dim as integer buttonsizex,buttonsizey




    buttonsizex = 95
    buttonsizey = 30
    buttonposx = 10
    buttonposy = 700
   
16
Programming / Re: new gui all freebasic
« Last post by neo on March 18, 2021, 05:23:46 AM »
so i have thought about it an i will give the code out for free
its taken me some time to work it right .
ps .... not for your icon img is in new file called pic dont for get to make
file listing you must build

#include "button.bi"
#include "mouse.bi"
#include "win.bi"
#include "icons.bi"
#include "window.bi"
GUI .bas fist file you have to make
Code: [Select]
#include "button.bi"
#include "mouse.bi"
#include "win.bi"
#include "icons.bi"
#include "window.bi"



ScreenRes 1024 ,768 ,16,2
 
  '' Desktop width/height

'' screen
  '' Create a screen at the width/height of your monitor.
  '' Normally this would be slow, but GDI is fairly fast for this kind
  '' of thing.
  '' Start our timer/
'' loads starting pic
print "Made by NEO2501 "
print "loading mouse drivers"

dim as integer exittheloop

Const True = 1   '' if true then 1
const false = not true '' if false then not true



'' for win button window .... just a note ... donnt 11 get 11


 


      '' calls the statring buttons to the right pic and placement
 
 

 GetMouse  mousex, mousey , , mousebuttons, '' gets the mosue

    '' cls screen  do not fuck with .....or timeing with get messywith out
 Do

 
 Mouse = GetMouse (x, y, , buttons)

   '' Draw checkered background
icons = imagecreate(iconsposx,iconsposy)
 bload exepath + "/pic/icon.bmp",icons

winpx=x:winpy=y
'' from this line down is  buttonsize x,y ,buttonpos x,y
 
 
 
   if buttons=1 then           
            winpx=x:winpy=y
   CLS
put (iconsposx,iconsposy),icons
Cwindow(x,y,420,240,"",3)

DRAW STRING(+150,+150),"-gui demo"

DRAW STRING(410,465),"Press 'Esc' to exit the demo"

     
         endif 
   
   



Sleep 1,1 ' Put ANY sleep in all your loops to prevent 100 % CPU usage!

 
 
ImageDestroy( icons )

   
loop until exittheloop = True or Multikey(&h01) ' exit loop if you also press ESCAPE

end




17
Programming / new gui all freebasic
« Last post by neo on November 07, 2020, 02:32:57 PM »
i have worked out a lot of the new code in the Gui interface
__________file list
mouse.bi
win.bi
button.bi
Gui.bi
i still don't know what to call this gui im building

 i been watching "hail an catch fire" so ill think of a good name.
ps i will place upload a you-tube clip of the gui small but working.....
18
Programming / Re: Programming FB With Math
« Last post by neo on November 07, 2020, 11:23:07 AM »
neo is back
its been a very long time.....

an the gui has been going some what well it came to pass the code just sat there as i was homeless for many years
so now after getting a place an getting some back pay i build a new pc
i just got a good deal on a r9 nano

for about 6 months all i did was play cs-go an play empire earth
so in the end i found some updated gui code i made that just needed some updates .... so
as i start working on it just got way to big in code an in file so i had to cut it down to  start build a real library

so far i have  3 bi files all working fine

one file for pic all are bmp files easy to work with ...
button.bi
mouse.bi
win.bi
gui.bas

i will put up a youtube video of what i have done so far very soon
19
Work In Progress / Dean Sucks?
« Last post by Dr_D on March 20, 2020, 08:43:28 PM »
As crazy as it sounds, we started a game about 50 years ago or something...
God, I have no idea how long it's been.
A LOOONG time ago.
He complained about this and that, but he was really complaining about his own lack of motivation.
Anyway, the code still compiles, straight out of the box.
It's the only code I have from those days that STILL compiles with ZERO effort.
It just seems insane to me.
Archon In Space, has been in space for too long.

Oh, God... I hope this pisses you off enough to take action.
20
I'm having some personal issues, and I'm failing to find energy to wrap this up. I'm hoping I'll be able to do it in October. I think we'll only have prize one award, due the limited amount and state of entries submitted.
Pages: 1 [2] 3 4 ... 10