8000 GitHub - apetbrz/csclub_2d_game: Welcome! This is a little project I started to introduce game development to the USC Upstate Spring 2024 Computer Science Club
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Welcome! This is a little project I started to introduce game development to the USC Upstate Spring 2024 Computer Science Club

Notifications You must be signed in to change notification settings

apetbrz/csclub_2d_game

Repository files navigation

csclub_2d_game

Welcome! This is a little project I started to introduce game development to the USC Upstate Spring 2024 Computer Science Club
I know this could be better encapsulated, it's a work-in-progress!

CONTROLS:

WASD for movement
IJKL for camera panning
SPACE to snap camera to player

Files:

  • Main: the entrypoint to the game.
  • Game: the game object, what actually gets "ran".
  • GameState: holds all data and functionality relevant to the game's functionality.
  • GamePanel: the "screen" that the game is rendered to.
  • ControlHandler: listens to the keyboard/mouse, to enable controls.
  • FileHandler: does the loading of files for the other files.
  • Logger: handles error message outputs for the other files.
  • Entity: the master class for all "entities": players/enemies/npcs/etc.
  • Player: the player entity
  • Map: a "map" object, storing relevant data for loaded maps.
  • Tile: each square in a map
  • TileType: used for translating map file data to Tile information
  • RNG: used wherever random numbers are wanted, has specific tools

Folders:

  • main/: where all the code is located.
  • maps/: where map files are located.
  • textures/: where texture files are located.
  • entities/: where entity types are located.

Notable locations:

  • map selection: Main.MAP_SELECTION
  • example map (with comments): maps/default.txt

About

Welcome! This is a little project I started to introduce game development to the USC Upstate Spring 2024 Computer Science Club

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0