Click to open or copy the files for the FoxBear sample.
Click to open or copy the Misc files (required).
Click to open or copy the Fastfile directory (required).
This simple game demonstrates many basics.
Commands for using FoxBear are as follows:
Key | Action |
NUMPAD 2 | Crouch |
NUMPAD 3 | Throw an apple |
NUMPAD 4 | Move right (hold down to run faster) |
NUMPAD 5 | Stop |
NUMPAD 6 | Move left (hold down to run faster) |
NUMPAD 7 | Jump |
F12 | Quit |
Run FoxBear from the FoxBear directory for it to find all of its files.
This sample uses the following keywords:
_lclose; _lopen; _lread; abs; adjustwindowrectex; advancespritebitmap; beginpaint; bitbltsprite; changespritedirection; clienttoscreen; cmemalloc; createfont; createplane; createposlist; createsprite; createsurfacelist; createtiles; createwindowex; ddclear; ddcolormatch; ddcreateflippingsurface; ddcreatesurface; dddisable; ddenable; ddenumcallback; ddinit; defwindowproc; deleteobject; destroybuffer; destroygame; destroyplane; destroyposlist; destroysound; destroysprite; destroytiles; directdrawcreate; directdrawenumerate; directsoundcreate; dispatchmessage; displayframerate; displayplane; displaysprite; dsdisable; dsenable; dsloadsoundbuffer; dsreloadsoundbuffer; endpaint; enumdisplaymodescallback; errormessage; exit; exitgame; exttextout; fastfileclose; fastfilefini; fastfileinit; fastfilelock; fastfileopen; findresource; getclientrect; getdata; getdc; getdevicecaps; getforegroundwindow; getinput; getint; getlasterror; getmenu; getmessage; getpixel; getplanex; getplaney; getprofileint; getspriteaccx; getspriteaccy; getspriteaction; getspriteactive; getspritebitmap; getspritedirection; getspriteswitchdone; getspriteswitchforward; getspriteswitchtype; getspritevelx; getspritevely; getspritex; getspritey; getstockobject; getsurface; getsystemmetrics; gettextextentpoint; getversionex; getwindowexstyle; getwindowrect; getwindowstyle; gfxbegin; gfxblt; gfxcreatesolidcolorbitmap; gfxcreatevrambitmap; gfxdestroybitmap; gfxend; gfxfillback; gfxflip; gfxloadbitmap; gfxrestore; gfxrestoreall; gfxstretchbackbuffer; gfxswapbuffers; gfxupdatewindow; idirectdraw2_setdisplaymode; idirectdraw_createclipper; idirectdraw_createpalette; idirectdraw_createsurface; idirectdraw_enumdisplaymodes; idirectdraw_fliptogdisurface; idirectdraw_getcaps; idirectdraw_queryinterface; idirectdraw_release; idirectdraw_setcooperativelevel; idirectdraw_setdisplaymode; idirectdrawclipper_release; idirectdrawclipper_sethwnd; idirectdrawsurface_addref; idirectdrawsurface_blt; idirectdrawsurface_bltfast; idirectdrawsurface_flip; idirectdrawsurface_getattachedsurface; idirectdrawsurface_getcaps; idirectdrawsurface_getdc; idirectdrawsurface_getpixelformat; idirectdrawsurface_getsurfacedesc; idirectdrawsurface_islost; idirectdrawsurface_lock; idirectdrawsurface_release; idirectdrawsurface_releasedc; idirectdrawsurface_restore; idirectdrawsurface_setclipper; idirectdrawsurface_setcolorkey; idirectdrawsurface_setpalette; idirectdrawsurface_unlock; idirectsound_createsoundbuffer; idirectsound_release; idirectsound_setcooperativelevel; idirectsoundbuffer_getcaps; idirectsoundbuffer_play; idirectsoundbuffer_release; idirectsoundbuffer_restore; idirectsoundbuffer_setcurrentposition; idirectsoundbuffer_stop; incrementspriteswitch; initapple; initapplication; initbear; initbuffer; initfox; initgame; initializegame; initnumsurface; initplane; initsound; initsurface; inittiles; invalidaterect; is_num; is_space; isiconic; loadbitmaps; loadcursor; loadicon; loadresource; localalloc; localfree; lockresource; lstrcat; lstrcpy; lstrcpyn; lstrlen; mainwndproc; makefontstuff; makeintatom; mapdx; mapdy; maprx; mapry; mapx; mapy; memalloc; memfree; memset; messagebox; msg; newgameframe; outputdebugstring; pausegame; peekmessage; postmessage; postquitmessage; preinitializegame; processfox; processinput; qquote; quote; readpalfile; registerclass; releasedc; reloadtiles; remind; restoregame; rgb; scrollplane; selectobject; setbkcolor; setbkmode; setcursor; setfocus; setpixel; setplaneincremx; setplaneslidex; setplanevelx; setplanex; setplaney; setrect; setspriteaccx; setspriteaccy; setspriteaction; setspriteactive; setspritebitmap; setspriteswitch; setspriteswitchdone; setspriteswitchforward; setspriteswitchtype; setspritevelx; setspritevely; setspritex; setspritey; setstretchbltmode; setsurface; settextcolor; setwindowlong; setwindowpos; setwindowtext; sounddestroyeffect; soundloadeffect; soundplayeffect; soundstopeffect; splash; stretchblt; stretchdibits; succeeded; surfaceplane; switch; systemparametersinfo; textout; tileplane; timegettime; translatemessage; unpausegame; updatewindow; va_start; waitmessage; winmain; wsprintf; wvsprintf; zeromemory
The Misc files demonstrate the following keywords:
_lclose; _lopen; _lread; addattachedsurface; addlight; addtoviewport; adjustwindowrectex; afterdevicecreated; appabout; appendmenu; appinit; apppause; attempt; beforedevicedestroyed; beginpaint; blt; bltfast; bpptoddbd; buildscene; calculateframerate; checkmenuitem; cleanupandpostquit; clear; clienttoscreen; clock; comparemodes; copymemory; cos; createclipper; createcompatibledc; created3dapp; created3drm; createdevandview; createdevicefromclipper; createdevicefromd3d; createfont; createframe; createlight; creatematerial; creatematrix; createpalette; createsurface; createviewport; createwindow; createwindowex; crossproduct; d3dappchangedriver; d3dappcheckforlostsurfaces; d3dappcreatefromhwnd; d3dappcreatesurface; d3dappdestroy; d3dappenumeratedddevices; d3dapperrortostring; d3dappfullscreen; d3dappibpptoddbd; d3dappicalldevicecreatecallback; d3dappicalldevicedestroycallback; d3dappicheckforpalettized; d3dappiclearbuffers; d3dappicopyrectlist; d3dappicreatebuffers; d3dappicreatedd; d3dappicreatedevice; d3dappicreatesurface; d3dappicreatezbuffer; d3dappiddenumcallback; d3dappienumdddevices; d3dappienumdisplaymodes; d3dappifilterdisplaymodes; d3dappigetclientwin; d3dappigetsurfdesc; d3dappigettexturehandle; d3dappihandlewm_size; d3dappimergerectlists; d3dappipickdisplaymode; d3dappipickdriver; d3dappirememberwindowsmode; d3dappirestoredispmode; d3dappisetclientsize; d3dappisetcooplevel; d3dappisetdefaults; d3dappisetdisplaymode; d3dappiseterrorstring; d3dappisetrenderstate; d3dappivalidatedirtyrects; d3dappiverifydriverandmode; d3dapplasterrorstring; d3dapppause; d3dappshowbackbuffer; d3dapptotalvideomemory; d3dappwindow; d3dappwindowproc; d3drmerrortostring; d3dval; ddcolormatch; ddcolormatch2; ddcopybitmap; ddcopybitmap2; ddloadbitmap; ddloadbitmap2; ddloadpalette; ddloadpalette2; ddreloadbitmap; ddreloadbitmap2; ddsetcolorkey; ddsetcolorkey2; declare_handle; declare_handle32; defined; defwindowproc; deletedc; deletelight; deletemenu; deleteobject; destroyd3dapp; destroywindow; dialogbox; direct3drmcreate; directdrawcreate; directdrawcreateclipper; directdrawcreatefromdevice; directdrawcreatefromwindow; directdrawdevicefromwindow; directdrawenumerate; directionallight; dispatchmessage; displayframerate; dpf; dsfillsoundbuffer; dsgetwaveresource; dsloadsoundbuffer; dsparsewaveresource; dsreloadsoundbuffer; enablemenuitem; enddialog; endpaint; enumdevicefunc; enumdevices; enumdisplaymodes; enumdisplaymodescallback; enumdisplaymonitors; exttextout; fabs; failed; finddevicecallback; findresource; float; forceupdate; free; freelibrary; getalpha; getambient; getattachedsurface; getattenuation; getcaps; getclientrect; getclipbox; getcolor; getdc; getdevicecaps; getdiffuse; getdirection; getdisplaymode; getdither; getdxversion; getemissive; geterrorstring; getfalloff; getflags; gethandle; getheight; getmenu; getmodulehandle; getmonitorinfo; getobject; getpenumbra; getpixel; getposition; getpower; getprocaddress; getquality; getrampsize; getrange; getspecular; getstockobject; getsubmenu; getsurfacedesc; getsystemmetrics; getsystempaletteentries; gettextextentpoint; gettextextentpoint32; gettexturehandle; gettexturequality; gettrianglesdrawn; getumbra; getupdaterect; getversionex; getwidth; getwindowinstance; getwindowlong; getwindowrect; handleactivate; handlepaint; identitymatrix; idirectsound_createsoundbuffer; idirectsound_duplicatesoundbuffer; idirectsoundbuffer_getstatus; idirectsoundbuffer_lock; idirectsoundbuffer_play; idirectsoundbuffer_release; idirectsoundbuffer_restore; idirectsoundbuffer_setcurrentposition; idirectsoundbuffer_stop; idirectsoundbuffer_unlock; initapp; initfontandtextbuffers; initglobals; initmultiplemonitorstubs; insertmenu; intersectrect; islost; lbclear; lbcreate; lbprintf; lbprintfddrc; lbsize; light; line_list_data; loadaccelerators; loadcursor; loadicon; loadimage; loadlibrary; loadresource; localalloc; localfree; lock; lockresource; lpfnenumproc; lstrcat; lstrcmp; lstrcmpi; lstrcpy; lstrlen; lubksb; ludcmp; make_matrix; malloc; mapwindowpoints; material; matrix_multiply_data; matrixinverse; matrixmult; matrixtranspose; memcpy; memset; merge; messagebox; mmiofourcc; move; movewindow; msg; normalize; onemonitorcallback; onemonitorfromwindow; op_branch_forward; op_exit; op_line_list; op_matrix_multiply; op_nop; op_point_list; op_process_vertices; op_set_status; op_span_list; op_state_light; op_state_render; op_state_transform; op_triangle_list; op_triangleex_list; outputdebugstring; overridedefaults; parallelpointlight; peekmessage; pointlight; postquitmessage; processvertices_data; projectionmatrix; putd3dinstruction; qsort; queryinterface; qword_aligned; rand; readmouse; registerclass; release; releasedc; releasefontandtextbuffers; removefromviewport; render; renderloop; reportd3dapperror; resetframerate; restore; restoredisplaymode; restoresurfaces; ret; rgb; rgb_make; rnd; rotatexmatrix; rotateymatrix; rotatezmatrix; scalematrix; selectobject; sendmessage; set; setalpha; setambient; setasbackground; setascurrent; setattenuation; setback; setbackground; setbkcolor; setbkmode; setbuffercount; setclipper; setcolor; setcolorkey; setcooperativelevel; setdefaulttexturecolors; setdefaulttextureshades; setdiffuse; setdirection; setdisplaymode; setdither; setemissive; setfalloff; setflags; sethwnd; setlight; setlightstate; setmaterial; setmatrix; setpalette; setpenumbra; setpixel; setposition; setpower; setquality; setrampsize; setrange; setrect; setrectempty; setrenderstate; setshades; setspecular; settextcolor; settexturehandle; settexturequality; setumbra; setwindowpos; showwindow; sin; sndobjcreate; sndobjdestroy; sndobjgetfreebuffer; sndobjplay; sndobjstop; spotlight; state_data; stretchblt; strtok; succeeded; switch; systemparametersinfo; text; transformnormal; transformvector; translateaccelerator; translatematrix; translatemessage; triangle_list_data; triangleex_list_data; unlock; update; updatewindow; va_end; va_start; vertex_data; view; viewmatrix; waitmessage; windowfromdc; windowproc; winmain; writeframeratebuffer; writeinfobuffer; wsprintf; wvsprintf; xenumdisplaymonitors; xgetmonitorinfo; xgetsystemmetrics; xmonitorfrompoint; xmonitorfromrect; xmonitorfromwindow; zeromatrix; zeromem; zeromemory